
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.
mineral-ui-tokens
Advanced tools
npm install --save mineral-ui-tokens
or
yarn add mineral-ui-tokens
All Tokens and their corresponding values can be viewed on the Mineral UI Tokens page.
This package uses the same import syntax as the mineral-ui library.
Token names use a [target]_[property]_[variation]_[state] naming scheme.
target - the type of element targeted by the token, e.g. "input" or "panel"property (required) - the CSS property of the token, e.g. "backgroundColor"variation - any differentiating aspect of the token that isn't state, e.g.
"brand", "primary", "success"state - state-dependent aspects, e.g. "focus", "selected"JavaScript token names are formatted in "pseudo_camelCase", e.g. boxShadow_1
import tokens from 'mineral-ui-tokens';
import { palette, magenta, boxShadow_1 } from 'mineral-ui-tokens';
import 'mineral-ui-tokens/index.scss';
Sass token names are formatted in "pseudoKebab-case", with a prefix, e.g.
$mnrl-boxShadow-1
@import '<path_to_node_modules>/mineral-ui-tokens/index.scss';
Check the project root's changelog for updates.
This package uses Theo to generate output in a variety of formats. The
source tokens are located in the tokens directory. Theo recognizes
values like "{!blue_60}" as aliases. Check the aliases and/or
imports properties in the containing file to find the alias definition(s).
After changing the tokens source, generate the new output with
npm run build:tokens, which you can run from either the project root or the
mineral-ui/packages/mineral-ui-tokens directory.
Format your commit messages appropriately, using
mineral-ui-tokens for your scope.
Then submit a PR, including both your token source changes and the generated files, for review.
mineral-ui-tokens packagecd mineral-ui/packages/mineral-ui-tokens (if not already there)npm run build:tokensnpm run formatnpm version minor
npm run buildcd dist && npm publishFAQs
Mineral UI Design Tokens
The npm package mineral-ui-tokens receives a total of 470 weekly downloads. As such, mineral-ui-tokens popularity was classified as not popular.
We found that mineral-ui-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.