Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cnamts/design-tokens

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cnamts/design-tokens

Design Tokens for the French Health Insurance

  • 2.16.13
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Design Tokens

Design Tokens of our Design System

Installation

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

Usage

Only custom tokens are contained in this package, for default ones like font size or elevation, we use the helper classes from Vuetify.

TypeScript

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';

JavaScript

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';

Sass

In Sass, Design Tokens names are formatted in kebab-case.

@import '@cnamts/design-tokens/dist/tokens';

.pro {
	color: $vd-risque-pro; // #ef6c00
}

JSON

In JSON, Design Tokens names are also formatted in kebab-case.

const { tokens } = require('@cnamts/design-tokens');
console.log(tokens['page-width']); // 1440px

Keywords

FAQs

Package last updated on 18 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc