Geeklego logoGeeklego

Design System

A three-tier token architecture built on Tailwind CSS v4 — from primitive values to semantic aliases to component-scoped tokens.

Architecture

Three-Tier Token System

Every design decision flows through three layers — raw values become purposeful semantics, which compose into component-specific tokens.

TIER1

Primitive

--color-neutral-900#141619

Raw, unaliased values — hex codes, rems, and unitless numbers. Never referenced directly by components.

TIER2

Semantic

--color-text-primaryvar(--color-neutral-900)

Purpose-driven aliases that give intent to a primitive. Respond automatically to theme switching.

TIER3

Component

--button-primary-bgvar(--color-action-primary)

Component-scoped tokens that consume a semantic. Isolated to a single component surface.

Foundations

Color

Eight primitive palettes and a full set of semantic aliases that respond to light and dark themes automatically.

Primitive Palettes

Neutral

Cool gray with a slight blue undertone

Brand

Zinc scale — black primary

Accent

Orange — secondary accent

Success

Green — positive states

Warning

Amber — cautionary states

Error

Red — destructive states

Info

Blue — informational states

Semantic Tokens

Background

--color-bg-primary

Page background

--color-bg-secondary

Subtle panels

--color-bg-tertiary

Muted areas

--color-bg-inverse

Dark overlay

Surface

--color-surface-default

Cards, panels

--color-surface-raised

Elevated surfaces

--color-surface-overlay

Modal scrim

Text

--color-text-primary

Body text

--color-text-secondary

Secondary labels

--color-text-tertiary

Placeholder text

--color-text-disabled

Disabled state

--color-text-inverse

Light on dark

--color-text-accent

Accent highlights

Border

--color-border-default

Default borders

--color-border-subtle

Subtle dividers

--color-border-strong

Emphasis borders

--color-border-focus

Focus rings

--color-border-error

Error state

Action

--color-action-primary

Primary button

--color-action-primary-hover

Primary hover

--color-action-secondary

Secondary button

--color-action-secondary-hover

Secondary hover

--color-action-destructive

Destructive actions

--color-action-disabled

Disabled actions

Status

--color-status-success

Success

--color-status-success-subtle

Success background

--color-status-warning

Warning

--color-status-warning-subtle

Warning background

--color-status-error

Error

--color-status-error-subtle

Error background

--color-status-info

Info

--color-status-info-subtle

Info background

Foundations

Typography

A 28-step type scale spanning display, heading, body, label, caption, overline, and code styles — all mapped to semantic tokens.

DISPLAY

Aa
.text-display-hero96px700
Aa
.text-display-3xl80px700
Aa
.text-display-2xl72px700
Aa
.text-display-xl64px700
Aa Bb Cc
.text-display-lg56px700
Aa Bb Cc
.text-display-md48px700
Aa Bb Cc
.text-display-sm40px700

HEADING

Aa Bb Cc
.text-heading-h136px700
Aa Bb Cc
.text-heading-h232px700
Aa Bb Cc
.text-heading-h328px600
Aa Bb Cc
.text-heading-h424px600
Aa Bb Cc
.text-heading-h520px600

BODY

Aa Bb Cc
.text-body-lg20px400
Aa Bb Cc
.text-body-md16px400
Aa Bb Cc
.text-body-sm14px400
Aa Bb Cc
.text-body-xs12px400
Aa Bb Cc
.text-body-2xs10px400

LABEL

Aa Bb Cc
.text-label-md14px500
Aa Bb Cc
.text-label-sm12px500
Aa Bb Cc
.text-label-xs10px500

CAPTION

Aa Bb Cc
.text-caption-md12px400
Aa Bb Cc
.text-caption-sm10px400

OVERLINE

Aa Bb Cc
.text-overline-md12px500

CODE

Aa Bb Cc
.text-code-md16px400
Aa Bb Cc
.text-code-sm14px400
Aa Bb Cc
.text-code-xs12px400
Aa Bb Cc
.text-code-2xs10px400

Foundations

Spacing, Radius & Shadows

A rem-based spacing scale, a nine-step border-radius ramp, shadow elevations, and component size tokens.

Spacing Scale

--spacing-1
0.25rem / 4px
--spacing-2
0.5rem / 8px
--spacing-3
0.75rem / 12px
--spacing-4
1rem / 16px
--spacing-5
1.25rem / 20px
--spacing-6
1.5rem / 24px
--spacing-8
2rem / 32px
--spacing-10
2.5rem / 40px
--spacing-12
3rem / 48px
--spacing-16
4rem / 64px
--spacing-20
5rem / 80px
--spacing-24
6rem / 96px
--spacing-32
8rem / 128px
--spacing-40
10rem / 160px
--spacing-48
12rem / 192px

Border Radius

None0px
SM2px
Base4px
MD6px
LG8px
XL12px
2XL16px
3XL24px
Full9999px

Shadows

SMSubtle lift
MDCard elevation
LGDropdown / popover
XLModal / dialog
Inset SMPressed / input

Component Sizes

XS1.5rem
SM2rem
MD2.5rem
LG3rem
XL3.5rem
2XL4rem
XS0.75rem
SM1rem
MD1.25rem
LG1.5rem
XL2rem
2XL3rem

Coming Soon

Component Tokens

The third tier — scoped to a single component and always resolved through semantic tokens. Inspect the full resolution chain for any token.

Component tokens are the third tier — scoped directly to a single UI element and always resolved through semantic tokens. The upcoming component token explorer will let you inspect every token for any component and trace its full resolution chain.

Preview
Button/Card
Primary
Card title
Body content goes here.
TokensButton+Card
Button
--button-primary-bg#09090b
--button-primary-text#ffffff
--button-radius6px
--button-height-md40px
Card
--card-outlined-bg#ffffff
--card-outlined-border#d5d6dc
--card-radius8px
--card-elevated-shadow0 1px 2px …

Filterable by component·Full resolution chain·Live theme preview