This repository is used as an example for the article Od design tokenów do zmiennych, czyli Style Dictionary w akcji (in Polish) published on the PGS software blog.
The project uses @wryrych/design-tokens-example npm npm package as a dependency. Each scss
file has an access to design tokens.
module.exports = {
pluginOptions: {
"style-resources-loader": {
preProcessor: "scss",
patterns: [
path.resolve(
__dirname,
"node_modules/@wryrych/design-tokens-example/dist/scss/_variables.scss"
),
],
},
},
…
yarn
yarn serve