Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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:tokens
npm run format
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 447 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.