0.8.0 • Published 1 year ago

@amalitech-design-system/design-tokens v0.8.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Amalitech Design Tokens

Design tokens serve as variables for our designs, storing values such as colors, typography, spacing, and radii. Unlike hard-coded values, they promote consistency in product development. By using predefined token packages, developers can easily select the appropriate token, reducing the risk of errors when translating designs into code. Additionally, tokens can be updated globally, automatically reflecting changes across all projects.

Setting things up

Install our design tokens in your project with npm, yarn or pnpm:

npm install @amalitech-design-system/design-tokens
yarn add @amalitech-design-system/design-tokens
pnpm add @amalitech-design-system/design-tokens

How designers work with design tokens

We have converted the design tokens into color, text, and shadow styles for Figma. As a designer, you can work like you always have, using styles for your designs. Using semantic token names like Text & Icon or Link will make it easier to understand and remember what to use specific styles for. With the help of the tokens, you can also easily change the designs to ensure consistency. When we update the tokens, you just need to accept the update, and everything will update automatically.

How developers work with design tokens

As a developer, you can include the tokens as CSS variables or Javascript objects. This way, you can easily implement the styles you receive from the designers. By using the correct tokens, no extra implementation is needed. Whenever a token needs to update, all you have to do is pull in the latest changes from GitHub or npm, and your code will update automatically. You can find the core and semantics tokens in the @amalitech-design-system/design-tokens repo (folder: src). By using the design tokens repository, you only need to take care of the semantic tokens.

Color Tokens

Spacing

Typography

For more information view our full documentation on Storybook

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.3

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.2

1 year ago