Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
mineral-ui-tokens
Advanced tools
npm install --save mineral-ui-tokens
or
yarn add mineral-ui-tokens
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/dist/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 projects/mineral-ui/packages/mineral-ui-tokens
(if not already there)npm run build:tokens
npm version minor
npm run build
cd dist && npm publish
FAQs
Mineral UI Design Tokens
The npm package mineral-ui-tokens receives a total of 504 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.