Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 956 Bytes

README.md

File metadata and controls

50 lines (32 loc) · 956 Bytes

Atomium - Tokens

This is the tokens of the Atomium design system using CSS Variables to be used in any Framework or Vanilla JS

You should see all the tokens in the Tokens section of the Storybook

Getting Started

Installation

npm i @juntossomosmais/atomium-tokens

Basic Usage

CSS

The variables can be used in CSS

import '@juntossomosmais/atomium-tokens/tokens.css'
.my-element {
  color: var(--color-brand-primary-regular);
}

JavaScript

You can also use the variables in JavaScript

import * as tokens from '@juntossomosmais/atomium-tokens'
primary: tokens.colorBrandPrimaryDark1;

Json

We also provide a JSON file with tokens. It is useful for using to compare tokens in Stylelint, for example.

import tokens from '@juntossomosmais/atomium-tokens/tokens.json'