Tokens

Design tokens are all the values needed to construct and maintain a design system — spacing, colour, typography, object styles, animation, etc.

These can represent anything defined by design: colour as a HEX value, opacity as a number, and animation ease as Bezier coordinates.

They're used in place of hard-coded values to ensure flexibility and unity across all multi-product experiences.

Design tokens are directly integrated into our component libraries. They cover the various options of platform scales, colour themes, and more.

How to create your custom theme based and use it for your product.

  • Create your product theme template file.
  • Check the guide for colours.
  • Replace colour values one by one.
  • Change the values to your product ones.
  • Publish your changes.
  • Share tokens with your product front-end developers.
  • Enjoy your new theme! 🎉
Tokens

Border radius

PropertyCSS VariableClassnameValue
XS interactive border radius--radius-i-xsrounded-moon-i-xs4px
SM interactive border radius--radius-i-smrounded-moon-i-sm8px
MD interactive border radius--radius-i-mdrounded-moon-i-md12px
XS surface border radius--radius-s-xsrounded-moon-s-xs4px
SM surface border radius--radius-s-smrounded-moon-s-sm8px
MD surface border radius--radius-s-mdrounded-moon-s-md12px
LG surface border radius--radius-s-lgrounded-moon-s-lg16px

Box shadow

PropertyCSS VariableClassnameValue
XS box shadow--shadow-xsshadow-moon-xs0 4px 12px -6px rgb(0 0 0 / 0.06)
SM box shadow--shadow-smshadow-moon-sm0 6px 6px -6px rgb(0 0 0 / 0.16), 0 0 1px rgb(0 0 0 / 0.4)
MD box shadow--shadow-mdshadow-moon-md0 12px 12px -6px rgb(0 0 0 / 0.16), 0 0 1px rgb(0 0 0 / 0.4)
LG box shadow--shadow-lgshadow-moon-lg0 8px 24px -6px rgb(0 0 0 / 0.16), 0 0 1px rgb(0 0 0 / 0.4)
XL box shadow--shadow-xlshadow-moon-xl0 32px 32px -8px rgb(0 0 0 / 0.08), 0 0 32px -8px rgb(0 0 0 / 0.12), 0 0 1px rgb(0 0 0 / 0.2)

Opacity

PropertyCSS VariableClassnameValue
Opacity--opacity-moonopacity-moon0.6