fune/toolkit/themes/shared/design-system/package.json
Mark Striemer 68b2a33f07 Bug 1850611 - Create a JSON file source of truth for our design tokens. r=reusable-components-reviewers,desktop-theme-reviewers,hjones,dao
* Add light-dark transformer for generating web CSS
* Use value object in design-tokens.json
* Add HCM media queries to built CSS
* Add MPL license and how to edit file header
* Strip '-default' from token names and values
* Refactor generated media query placement within file.
* generate multiple CSS files from a single JSON file.
* add the :host(.anonymous-content-host) selector to the built CSS
* Output tokens in pre-defined order
* Generate CSS layer declarations and relevant selectors
* Sort tokens by t-shirt size and state semantically not alphabetically
* Add remaining tokens to design-tokens.json
* Add design tokens JSON docs

---------

Co-authored-by: Jules Simplicio <jsimplicio@mozilla.com>
Co-authored-by: Hanna Jones <hjones@mozilla.com>
Co-authored-by: Mark Striemer <mstriemer@mozilla.com>
Co-authored-by: Tim Giles <tgiles@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D204108
2024-03-26 16:56:06 +00:00

12 lines
354 B
JSON

{
"name": "design-system",
"version": "1.0.0",
"description": "Package file for node modules used to create our CSS tokens from a JSON source of truth.",
"license": "MPL-2.0",
"scripts": {
"build": "(npm ls || npm ci) && style-dictionary build --config ./tokens-config.js"
},
"devDependencies": {
"style-dictionary": "^3.9.2"
}
}