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.
@cnamts/design-tokens
Advanced tools
Design Tokens of our Design System
The Design Tokens are available in TypeScript, JavaScript and SCSS.
To install the tokens, you need to use yarn or npm:
yarn add @cnamts/design-tokens
# OR
npm install @cnamts/design-tokens
Only custom tokens are contained in this package, for default ones like font size or elevation, we use the helper classes from Vuetify.
In TypeScript, Design Tokens names are formatted in camelCase
.
import { tokens } from '@cnamts/design-tokens';
console.log(tokens.pageWidth); // 1440px
You can also import only the color theme:
import { colorTheme } from '@cnamts/design-tokens/src/colors';
In JavaScript, Design Tokens names are also formatted in camelCase
.
const { tokens } = require('@cnamts/design-tokens');
console.log(tokens.pageWidth); // 1440px
You can also use the import
syntax:
import { tokens } from '@cnamts/design-tokens';
In Sass, Design Tokens names are formatted in kebab-case
.
@import '@cnamts/design-tokens/dist/tokens';
.pro {
color: $vd-risque-pro; // #ef6c00
}
In JSON, Design Tokens names are also formatted in kebab-case
.
const { tokens } = require('@cnamts/design-tokens');
console.log(tokens['page-width']); // 1440px
FAQs
Design Tokens for the French Health Insurance
The npm package @cnamts/design-tokens receives a total of 119 weekly downloads. As such, @cnamts/design-tokens popularity was classified as not popular.
We found that @cnamts/design-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.