Depending on your application type, choose one of the following import strategies:
Single color scheme
For merchant-facing apps with one scheme, import @sumup-oss/design-tokens/light.css or @sumup-oss/design-tokens/dark.css. For consumer-facing apps, import @sumup-oss/design-tokens/consumer.css. Tokens are defined on :root.
Scoped color scheme
To apply a scheme to a specific subset of your app, import the -scoped versions: @sumup-oss/design-tokens/light-scoped.css, @sumup-oss/design-tokens/dark-scoped.css, or @sumup-oss/design-tokens/consumer-scoped.css. These use the data-color-scheme attribute. Note: You must also import a full theme to ensure all other tokens are defined.
Multiple color schemes (Dynamic)
For apps that switch between light and dark, import @sumup-oss/design-tokens/dynamic.css. This includes :root tokens, dark tokens scoped to prefers-color-scheme: dark, and the scoped themes. You can manually set the scheme by adding the data-color-scheme attribute to the document root.