Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@kaizen/design-tokens

Package Overview
Dependencies
Maintainers
6
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaizen/design-tokens

Tokens used in the Kaizen Design System

latest
Source
npmnpm
Version
11.0.0
Version published
Maintainers
6
Created
Source

Kaizen Tokens

Design tokens for all platforms.

About

Design tokens are named and stored visual design traits, including colors, typography, and animation timings. Design Tokens are the heart of every Design System.

The tokens represented here are platform-agnostic (JS object), as this will help us contribute to & facilitate the maintenance of living style guides. This package defines all the option tokens in Kaizen.

In its current state this package supports Sass and Less variables, generated from a JS tokens file.

Note that as we employ CSS Variables, when consuming tokens in SASS/LESS you should assume they will contain values such as var(--color-...), rather than concrete values such as 1.5rem or #fff.

Installation

pnpm add @kaizen/design-tokens

Usage

Much of this assumes that consuming repos have setup the KaizenProvider - refer to the App Starter guide for more.

SCSS

@import '~@kaizen/design-tokens/sass/[color/depth/layout/spacing/typography]';

Or use the CSS variables directly (Recommended).

.myCustomClassName {
  background-color: vars(--color-gray-100);
}

Read more in How to use design tokens in SAAS

Less

@import '~@kaizen/design-tokens/less/[color/depth/layout/spacing/typography]';

JavaScript

import { tokens } from '@kaizen/design-tokens/js'

Read more in Access tokens via JS

Where possible, we keep things unitless.

When adding support for another target the transformation should add the appropriate unit to the artefact. For example, converting typography sizes to Sass/Less should add REM.

Web

All values in tokens are represented as rem, em or px.

  • Use REMs for sizes and spacing.
  • Use EMs for media queries.
  • Use px for borders.

Contributing

See CONTRIBUTING.md

FAQs

Package last updated on 01 Sep 2025

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