Socket
Book a DemoInstallSign in
Socket

@shopware-ag/meteor-tokens

Package Overview
Dependencies
Maintainers
10
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-ag/meteor-tokens

Design Tokens for the Meteor Design System used at shopware

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
10
Created
Source

This repository contains the Design Tokens for the Meteor Design System at shopware.

Installation

npm install @shopware-ag/meteor-tokens

Usage

This packages exposes a handful of files to consume:

  • Primitive tokens
  • Tokens for the Shopware 6 Administration (light & dark)

As an example we'll show you how to make use of the tokens for the Shopware 6 Administration.

Import the CSS files that contain the corresponding tokens.

import '@shopware-ag/meteor-tokens/administration/light.css';

// If you want to support dark mode
import '@shopware-ag/meteor-tokens/administration/dark.css';

Now, you're able to make use of the Design Tokens trough CSS custom properties, like this:

.sw-button {
  background-color: var(--color-interaction-primary-default);
}

To switch to the dark mode add the attribute data-theme="dark" to a DOM element as far up in the DOM tree as possible.

<body data-theme="dark">
  <!-- Your application -->
</body>

License

Shopware 6 is completely free and released under the MIT License.

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts