
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.