
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@uncharted.software/design-tokens
Advanced tools
Design tokens are the atomic key-value pairs that represent design decisions. The equivalent of a single property+value in CSS, not a class or a component. Tokens can then be used as part of a design system to build higher level concepts. The tokens will capture colors, spacing, typography, etc.
The tokens in this package are for use in Uncharted products and are published by the Uncharted Design team.
To use the tokens in your project, install it:
yarn add @uncharted.software/design-tokens
# or
npm install @uncharted.software/design-tokens
Then include whichever files you need in your project. Currently supported:
./node_modules/@uncharted.software/design-tokens/build/css/uncharted-tokens.css./node_modules/@uncharted.software/design-tokens/build/scss/_uncharted-variables.css./node_modules/@uncharted.software/design-tokens/build/js/commonjs/uncharted-tokens[.cjs|.d.ts]
./node_modules/@uncharted.software/design-tokens/build/js/es6/uncharted-tokens[.cjs|.d.ts]
While the initial focus is on JS-based projects, other languages are absolutely possible and could be added upon request. StyleDictionary supports a number of other formats out of the box.
When new tokens in JSON format are pushed from Figma, this project will transform them to various formats to support various frontends (i.e. CSS, SCSS, iOS, android.) The format, while in a (W3C draft) standard format, will expect specific custom types from the plugin.
Workflow:
tokens/w3c-tokens.json fileflowchart LR
userExport([User: Dispatch JSON via Figma Design Tokens])
userPush([User: Push via Git])
githubActionAcceptDispatch[GH Action - Accept and commit JSON]
githubActionTransform[GH Action: Transform]
userExport-->githubActionAcceptDispatch
githubActionAcceptDispatch-->githubActionTransform
userPush-->githubActionTransform
sd[Style-Dictionary]
subgraph t [Transform]
githubActionTransform-->sd
sd-->css[/CSS/]
sd-->scss[/SCSS/]
sd-->js[/JS/JSON/]
end
A GitHub action, on push, (/.github/workflows/transform-tokens.yml) will normally be doing all the work.
To test configuration changes though, we can run transformations locally:
This project uses yarn.
yarn install
This step uses Style Dictionary to create the different formats. It uses the configuration found in config.js.
# tokens/w3c-tokens.json -> build/**
yarn build
Thanks goes to the open-source projects by Lukas Oppermann (Design Tokens plugin and design-tokens-transforms) from which this work was adapted.
FAQs
Uncharted Software's Design Tokens
We found that @uncharted.software/design-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.