Meteor Design System is distributed as multiple packages, allowing you to install only what you need. This guide covers installation for all available packages.
@shopware-ag/meteor-admin-sdk - SDK for Shopware 6 Administration
@shopware-ag/meteor-icon-kit - Icon library
@shopware-ag/meteor-tokens - Design tokens
The component library automatically includes the icon kit and tokens as dependencies, so you only need to install it separately if you’re using them without the components.
import * as sw from '@shopware-ag/meteor-admin-sdk';// Use SDK featuressw.notification.dispatch({ title: 'My first notification', message: 'This was really easy to do'});
Or import specific modules:
import { notification, context } from '@shopware-ag/meteor-admin-sdk';// Throw a notificationnotification.dispatch({ title: 'Success!', message: 'Your changes have been saved'});// Get context informationconst currency = await context.getCurrency();
You can also use the Admin SDK directly from a CDN without installation:
<!-- Latest version --><script src="https://unpkg.com/@shopware-ag/meteor-admin-sdk/cdn"></script><!-- Specific version (recommended for production) --><script src="https://unpkg.com/@shopware-ag/meteor-admin-sdk@6.5.1/cdn"></script>
Then access it via the global sw variable:
sw.notification.dispatch({ title: 'My first notification', message: 'This was really easy to do'});
The CDN approach is perfect for quick prototypes or simple apps, but we recommend using the npm package for production applications to benefit from tree-shaking and better build optimization.
Icons are available in both regular and solid variants:
import checkIcon from '@shopware-ag/meteor-icon-kit/icons/regular/check.svg';import checkIconSolid from '@shopware-ag/meteor-icon-kit/icons/solid/check.svg';
The exact usage depends on your build setup. Most modern bundlers can handle SVG imports directly.