Skip to main content
Pricing

Design Tokens

Complete token reference — CSS custom properties, naming conventions, and theme mapping.

Token Architecture

Lexicon uses a 3-layer token system. Each layer builds on the one below, creating a chain from raw values to component-specific styles that can be themed and customised.

1Primitives102 tokens

Raw colour values — the full palette of hues and shades. These are never used directly in components.

slate-50, blue-600, red-500

2Semantics111 tokens

Purpose-based aliases that map primitives to meaning. They resolve differently per theme (light/dark).

text/default → slate-900 (light) → slate-100 (dark)

3Component89 tokens

Component-specific tokens that reference semantics. Scoped to a single component for precise control.

button/primary/background → brand-bold → blue-600

Token Naming Convention

All tokens follow a consistent category/group/modifier pattern:

colors/text/defaultDefault text colour
colors/button/primary/backgroundButton primary fill
spacing/1616px spacing unit
radius/mdMedium border radius

Token Reference

Complete reference of all 302 design tokens grouped by collection. Values shown as {light} / {dark} for theme-aware tokens.

Primitives

(102)
VariableTypeValueScope
colors/slate/50color#f8fafcall
colors/slate/100color#f1f5f9all
colors/slate/200color#e2e8f0all
colors/slate/300color#cbd5e1all
colors/slate/400color#94a3b8all
colors/slate/500color#64748ball
colors/slate/600color#475569all
colors/slate/700color#334155all
colors/slate/800color#1e293ball
colors/slate/900color#0f172aall
colors/slate/950color#020617all
colors/blue/500color#3b82f6all
colors/blue/600color#2563eball
colors/green/500color#22c55eall
colors/red/500color#ef4444all
colors/amber/500color#f59e0ball
colors/violet/600color#7c3aedall
colors/whitecolor#ffffffall
colors/blackcolor#000000all

Alpha

(11)
VariableTypeValueScope
alpha/white/8colorrgba(255,255,255,0.08)all
alpha/white/12colorrgba(255,255,255,0.12)all
alpha/white/16colorrgba(255,255,255,0.16)all
alpha/white/20colorrgba(255,255,255,0.20)all
alpha/black/4colorrgba(0,0,0,0.04)all
alpha/black/8colorrgba(0,0,0,0.08)all
alpha/black/12colorrgba(0,0,0,0.12)all
alpha/black/16colorrgba(0,0,0,0.16)all
alpha/slate-900/8colorrgba(15,23,42,0.08)all
alpha/slate-900/12colorrgba(15,23,42,0.12)all
alpha/slate-950/8colorrgba(2,6,23,0.08)all

Size Units

(48)
VariableTypeValueScope
spacing/0number0gap, padding, margin
spacing/4number4pxgap, padding, margin
spacing/8number8pxgap, padding, margin
spacing/12number12pxgap, padding, margin
spacing/16number16pxgap, padding, margin
spacing/20number20pxgap, padding, margin
spacing/24number24pxgap, padding, margin
spacing/32number32pxgap, padding, margin
spacing/40number40pxgap, padding, margin
spacing/48number48pxgap, padding, margin
spacing/64number64pxgap, padding, margin
spacing/80number80pxgap, padding, margin
spacing/96number96pxgap, padding, margin
radius/nonenumber0border-radius
radius/xxxsnumber2pxborder-radius
radius/xxsnumber4pxborder-radius
radius/xsnumber6pxborder-radius
radius/smnumber8pxborder-radius
radius/mdnumber10pxborder-radius
radius/lgnumber12pxborder-radius
radius/xlnumber16pxborder-radius
radius/2xlnumber20pxborder-radius
radius/3xlnumber24pxborder-radius
radius/pillnumber999pxborder-radius
icon-size/xxsnumber8pxwidth, height
icon-size/xsnumber12pxwidth, height
icon-size/smnumber16pxwidth, height
icon-size/mdnumber20pxwidth, height
icon-size/lgnumber24pxwidth, height
icon-size/xlnumber32pxwidth, height
icon-size/2xlnumber40pxwidth, height
icon-size/3xlnumber48pxwidth, height

Semantic Colours

(111)
VariableTypeValueScope
colors/bg/canvascolor{slate/50} / {slate/950}fill
colors/bg/surfacecolor{white} / {slate/900}fill
colors/bg/surface-subtlecolor{slate/50} / {slate/800}fill
colors/bg/surface-raisedcolor{white} / {slate/800}fill
colors/bg/brand-subtlecolor{violet/50} / {violet/950}fill
colors/bg/brand-boldcolor{violet/600}fill
colors/text/defaultcolor{slate/900} / {slate/100}fill
colors/text/subtlecolor{slate/700} / {slate/300}fill
colors/text/mutedcolor{slate/500} / {slate/400}fill
colors/text/disabledcolor{slate/400} / {slate/600}fill
colors/text/inversecolor{white} / {slate/900}fill
colors/text/brandcolor{violet/600} / {violet/400}fill
colors/text/successcolor{green/600} / {green/500}fill
colors/text/warningcolor{amber/600} / {amber/500}fill
colors/text/dangercolor{red/600} / {red/500}fill
colors/text/infocolor{blue/600} / {blue/500}fill
colors/border/defaultcolor{alpha/black/8} / {alpha/white/8}stroke
colors/border/subtlecolor{alpha/black/4} / {alpha/white/6}stroke
colors/border/brandcolor{violet/600}stroke
colors/border/focuscolor{violet/600} / {violet/400}stroke
colors/state/hovercolor{alpha/black/4} / {alpha/white/4}fill
colors/state/pressedcolor{alpha/black/8} / {alpha/white/8}fill

Typography

(30)
VariableTypeValueScope
font-family/displaystringSatoshi Variablefont-family
font-family/bodystringDM Sansfont-family
font-family/monostringJetBrains Monofont-family
font-size/xsnumber12pxfont-size
font-size/smnumber14pxfont-size
font-size/mdnumber16pxfont-size
font-size/lgnumber18pxfont-size
font-size/xlnumber20pxfont-size
font-size/2xlnumber24pxfont-size
font-size/3xlnumber30pxfont-size
font-size/4xlnumber32pxfont-size
font-size/5xlnumber40pxfont-size
font-size/6xlnumber48pxfont-size
font-size/7xlnumber60pxfont-size
font-weight/regularnumber400font-weight
font-weight/mediumnumber500font-weight
font-weight/semiboldnumber600font-weight
font-weight/boldnumber700font-weight
line-height/tightnumber16pxline-height
line-height/snugnumber20pxline-height
line-height/normalnumber24pxline-height
line-height/relaxednumber28pxline-height
line-height/loosenumber32pxline-height
line-height/displaynumber36pxline-height
letter-spacing/tightnumber-0.02emletter-spacing
letter-spacing/normalnumber0emletter-spacing
letter-spacing/widenumber0.05emletter-spacing
letter-spacing/widernumber0.1emletter-spacing

Showing representative tokens from each collection. Full set available in the exported token files.

Installation

Clone the Lexicon repository and copy the token files you need into your project. Available as CSS custom properties, a Tailwind preset, and raw JSON.

Get the files

git clone https://github.com/jpace-cloud/lexicon.git

CSS Custom Properties

/* Copy css/lexicon.css into your project */
@import './path/to/lexicon.css';

Tailwind Preset

// Copy tailwind/lexicon-preset.js into your project
// tailwind.config.js
module.exports = {
  presets: [require('./lexicon-preset')],
}