Packages
#
ToolsIn addition to a CLI, Tempera offers other tools to improve design tokens adoption.
#
stylelint-tokensA Stylelint plugin that helps avoid the adoption of unofficial design specifications.
#
Installation#
UsageInstall Stylelint and update your configuration file to utilize the plugin.
#
TokensThe plugin expects these tokens to be in the javascript/es6 format which you can generate using Style Dictionary except exported as CommonJS modules.
In other words, flat CommonJS modules in PascalCase are expected.
Example:
Support for tokens in ES6 format is on the roadmap.
#
Supporting PackagesThe underlying packages that support Tempera are publicly accessible.
You are welcome and encouraged to use these packages directly should you need a custom solution.
🚀 Contributing to these packages is also welcome.
#
css-typesUtilities to categorize your CSS.
#
Installation#
Usage#
postcss-scorecardA PostCSS plugin that exposes hooks into design token adoption validation.
#
Installation#
Usage#
SpecsThe plugin expects these specs/tokens to be in the javascript/es6 format which you can generate using Style Dictionary except exported as CommonJS modules.
In other words, flat CommonJS modules in PascalCase are expected.
Example:
Support for tokens in ES6 format is on the roadmap.
#
tailwind-configAn API that generates a Tailwind configuration from a set of design tokens.
#
Installation#
Usage#
TokensThe plugin expects these specs/tokens to be in the javascript/es6 format which you can generate using Style Dictionary.
In other words, flat modules in PascalCase are expected.
Example:
#
twindAn API that generates a Twind instance from a set of design tokens.
#
Installation#
Usage#
TokensThe plugin expects these specs/tokens to be in the javascript/es6 format which you can generate using Style Dictionary.
In other words, flat modules in PascalCase are expected.
Example:
#
stitchesAn API that generates twind/style shapes from a set of design tokens.
#
Demo#
Installation#
Usage#
TokensThe plugin expects these specs/tokens to be in the javascript/es6 format which you can generate using Style Dictionary.
In other words, flat modules in PascalCase are expected.
The tokens should follow the following format:
Examples: