1.10.1 • Published 3 days ago

@otto-de/b2b-tokens v1.10.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 days ago

B2B DESIGN TOKENS

Design tokens represent atomic design decisions that can be centralised and easily change. Our components use design tokens, and we recommend teams to also use them when building components of their own.

We use the tool Style Dictionary to generate automatically token outputs. The tokens are structured and written as .json files, and the build.js file parse them and outputs the build .css tokens.

We have 3 categories for tokens: colors font size

When adding new tokens try to follow the patterns already present:

base file

This file contains raw values and can be extended if there are new values that need to be added

.default files

This files will output the default tokens for a normal theme*.

.dark files

Part of the POC for theming*. Only button and font may be extended to keep the POC alive.

  • About theming: the current theming (dark) is just a proof of concept that was implemented to validate the tool we are using. You do not have to implement a dark version of your tokens when working in extending them.

Build tokens

npm run build

This will generate new .css files that at already consumed by the core library.

1.10.1

3 days ago

1.10.0

5 days ago

1.9.0

3 months ago

1.8.2

5 months ago

1.8.1

6 months ago

1.8.0

6 months ago

1.7.0

7 months ago

1.6.1

9 months ago

1.9.0-beta.2

6 months ago

1.6.0

9 months ago

1.9.0-beta.1

6 months ago

1.5.0

10 months ago

1.3.3-beta.1

11 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.1

1 year ago

1.4.0-beta.1

11 months ago

1.3.3

11 months ago

1.3.2

11 months ago

1.4.0

11 months ago

1.3.0

11 months ago

1.0.0

1 year ago