UNPKG

style-dictionary

Version:

Style once, use everywhere. A build system for creating cross-platform styles.

108 lines (107 loc) 2.48 kB
{ "source": ["tokens/**/*.json"], "platforms": { "scss": { "transformGroup": "scss", "buildPath": "build/scss/", "files": [ { "destination": "colors.scss", "format": "scss/variables", "filter": { "type": "color" } }, { "destination": "sizes.scss", "format": "scss/variables", "filter": { "type": "fontSize" } } ] }, "json": { "transformGroup": "web", "buildPath": "build/json/", "files": [ { "destination": "variables.json", "format": "json/flat" } ] }, "assets/embed/scss": { "transforms": ["attribute/cti", "name/kebab", "asset/base64"], "buildPath": "build/scss/", "files": [ { "destination": "assets_icons.scss", "format": "scss/variables", "filter": { "attributes": { "category": "asset", "type": "icon" } } }, { "destination": "assets_images.scss", "format": "scss/variables", "filter": { "attributes": { "category": "asset", "type": "image" } } }, { "destination": "assets_fonts.scss", "format": "scss/variables", "filter": { "attributes": { "category": "asset", "type": "font" } } } ] }, "assets/embed/json": { "transforms": ["attribute/cti", "name/kebab", "asset/base64"], "buildPath": "build/json/", "files": [ { "destination": "assets_icons.json", "format": "json/flat", "filter": { "attributes": { "category": "asset", "type": "icon" } } }, { "destination": "assets_images.json", "format": "json/flat", "filter": { "attributes": { "category": "asset", "type": "image" } } }, { "destination": "assets_fonts.json", "format": "json/flat", "filter": { "attributes": { "category": "asset", "type": "font" } } } ] } } }