You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@canonical/design-tokens

Package Overview
Dependencies
Maintainers
25
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/design-tokens

Canonical design tokens (DTCG format) with CSS custom property output.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
289
Maintainers
25
Weekly downloads
 
Created
Source

@canonical/design-tokens

Design tokens for the Canonical design system. Token definitions follow the DTCG Community Group specification.

Installation

bun add @canonical/design-tokens

Usage

Import the CSS output in your application entry point:

@import "@canonical/design-tokens/dist/tokens.css";

Tokens are available as CSS custom properties:

.card {
  background: var(--color-background-default);
  padding: var(--spacing-medium);
  border-radius: var(--radius-default);
}

Token Tiers

TierPathDescription
Primitivetokens/canonical/global/primitive/Raw values for colour, dimension, number, and typography. Not intended for direct use in application code.
Semantictokens/canonical/global/semantic/Aliased tokens referencing primitives. These encode design intent and are the tokens consumed by components.

Building

bun run build

This runs the Terrazzo pipeline with @canonical/terrazzo-plugin-css and produces CSS files and a tokens.json artifact in dist/.

Keywords

design-tokens

FAQs

Package last updated on 11 Mar 2026

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