@duskit/design-tokens
v0.0.1
Published
[](https://github.com/dusk-network/duskit/actions/workflows/ci.yml) [](https://www.npmjs.com/packa
Downloads
46
Readme
@duskit/design-tokens
Design tokens for styling Dusk apps.
TOC
Dev environment
This package is part of the Duskit monorepo. Please refer to the main README for monorepo usage, changeset management and installation of dependencies.
Installation and usage
npm install @duskit/design-tokens --saveUse the design tokens in your CSS files:
<link rel="stylesheet" href="@duskit/js/functional/themes/light.css" />@import url("@duskit/js/functional/themes/light.css");
main {
background-color: var(--background-color);
color: var(--on-background-color);
}NPM scripts
npm run build- builds the tokens into platform filesnpm run checks- runs all health checks (formatting)npm run clean- removes thenode_modulesfoldernpm run format- fixes the formatting in all filesnpm run format:check- performs the formatting check
