Kredal Docs
Reference

Design Tokens

The v2 warm ink/cream colour, typography, spacing, and risk tokens used across Kredal.

Kredal's Visual Identity v2 is a warm ink/cream system derived from a full design-token extraction of cursor.com, adapted for Kredal (see ADR 0010). Tokens are CSS variables in kredal-app/src/app/globals.css (Tailwind v4, @theme). The canonical rulebook is the repo-root design.md; the living showcase is the public /styleguide page.

Colour — light theme (default)

TokenValueRole
background#f7f7f4Page canvas (warm paper)
foreground#26251eInk text, primary buttons
card#fdfdfcElevated cards
muted#f2f1edWells, code bg, table heads
card-02 / card-03#ebeae5 / #e6e5e0Tint ladder
card-warm#f3ede6Warm feature card
border#e6e5e0Hairlines
brand#f54e00Orange accent — CTAs, focus ring, links
muted-foreground#6b6a61Secondary text

Colour — dark theme (warm ink)

TokenValue
background#14120b
foreground#edecec
card / hover#1b1913 / #201e18
border#2c2a23
primary buttoncream #edecec on ink, hover #d7d6d5

Risk semantics (fixed meaning)

Risk colours mean risk level only — never decorative — and always pair with an icon and label. The band→risk mapping lives solely in src/lib/scoring/risk.ts.

RiskScore bandLightDark
Low80–100#1f8a65#3fbd90
Medium55–79#b45309#f2b13e
High0–54#cf2d56#f47b96

Badge backgrounds are soft tints (risk-*-bg) with AA-checked foregrounds (risk-*-foreground).

Typography

Inter (grotesque tuning: tracking −0.01em body, −0.02em ≥ h2; buttons 400–500, never bold). Geist Mono for code and tabular numbers.

StyleSize / lineWeight
display2.8rem / 1.04700 (marketing may use 500)
h12rem / 1.1700
h21.5rem / 1.15600
h31.125rem / 1.2600
body1rem / 1.5400
body-sm0.875rem / 1.45400
caption0.75rem / 1.35400–500
score-xl3.5rem / 1.05700 tabular — the readiness score only

Shape, spacing, motion

  • Spacing: 4px base scale (4·8·12·16·24·32·48·64); marketing sections use 96–128px vertical rhythm.
  • Radius: cards 8–16px (--radius 10px base); buttons and badges are full pills.
  • Elevation: borders + tint ladder first; soft warm shadows xs→xl sparingly.
  • Motion: 0.14s ease-out for hovers/toggles; 0.4s reserved for the score gauge fill; prefers-reduced-motion honoured.

Charts

Categorical pastels: #dfa88f · #9fc9a2 · #9fbbe0 · #c0a8dd · warm grey. Risk colours appear in charts only when encoding risk.

Accessibility rules

  • WCAG AA in both themes; ink-on-cream is 13.9:1.
  • Orange #f54e00 is ≈3.4:1 on cream — CTAs, large text, and icons only; never body text.
  • Risk is never colour-only; focus rings visible everywhere; touch targets ≥ 44px.

On this page