Sass
A CSS preprocessor whose SCSS syntax adds variables, nesting and functions and compiles to plain CSS.
In more detail
SCSS files use a .scss extension and look like CSS with extras. Sass variables such as $brand-blue are replaced with their values at build time, so they cannot change in the browser the way CSS custom properties can. Style Dictionary can still output SCSS variables for older codebases.
Related terms
- CSS preprocessor — A tool such as Sass or Less that takes an extended stylesheet language and compiles it into plain CSS before the browser sees it.
- CSS custom property — A value you name yourself in CSS, such as --color-primary: #2563eb, and use elsewhere with var(--color-primary).
- Style Dictionary — An open-source build tool that reads design token files and generates code for each platform, such as CSS, TypeScript, Swift and Android resources.
Taught in
- Token Transformation: Style Dictionary & Multi-Platform Outputs — Design Systems & Component Engineering
- CSS Custom Properties & Dynamic Theming Architecture — Design Systems & Component Engineering