kebab-case, camelCase and snake_case
Ways of writing multi-word names without spaces: kebab-case uses hyphens, camelCase capitalises each later word, snake_case uses underscores.
In more detail
Each platform has its habit: CSS custom properties use kebab-case (--color-primary), JavaScript and TypeScript use camelCase (colorPrimary), and Android resources use snake_case (color_primary). Style Dictionary name transforms convert one token name into each style.
Related terms
- token transform — A Style Dictionary step that changes one token at a time, such as converting 16px to 1rem or renaming a token to camelCase.
- CSS custom property — A value you name yourself in CSS, such as --color-primary: #2563eb, and use elsewhere with var(--color-primary).
Taught in
- Token Transformation: Style Dictionary & Multi-Platform Outputs — Design Systems & Component Engineering