Files
KDCDesignSystem/design.md
T
Paul Roberts 6593bdf689 feat: design system v1.0.0 — reconcile tokens from cross-repo audit
Extracted real production usage from 8 KDC repos and consolidated the
consensus (kdcsurveyadd / kdcvault / kdc_void_planner) into the canonical
design.md + tokens.

Highlights:
- brand.ink #000000 -> #1A1530 (purple-tinted, matches real usage)
- brand.canvas #F5F4F0 -> #F7F4ED (warm)
- neutral ramp rebuilt around ink (purple-tinted, not cold slate)
- semantic palette retuned for warm canvas + soft tints
- elevation shadows retinted with brand-ink rgb
- new accent.gold (product) and accent.mint (marketing) tokens
- real themes/light, themes/dark, themes/high-contrast
- fleshed out every component + foundation README
- docs/consolidation-2026-05.md captures the full audit + drift inventory

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:51:39 +00:00

13 KiB
Raw Blame History

version, name, description, colors, elevation, typography, rounded, spacing, components
version name description colors elevation typography rounded spacing components
1.0.0 Kode Design Consultants Ltd Design System The official design system for Kode Design Consultants — tokens, components, and guidelines for building consistent KDC product and brand experiences. Reconciled 2026-05-17 from production usage across kdcsurveyadd, kdcvault, kdc_void_planner and k-d-c-workspace.
brand.primary brand.primaryHover brand.primaryPressed brand.primaryLight brand.primarySoft brand.ink brand.canvas brand.canvasCool accent.gold accent.goldStrong accent.goldSoft accent.mint neutral.0 neutral.50 neutral.100 neutral.150 neutral.200 neutral.300 neutral.400 neutral.500 neutral.600 neutral.700 neutral.800 neutral.900 neutral.1000 semantic.success semantic.successSoft semantic.warning semantic.warningSoft semantic.danger semantic.dangerSoft semantic.info surface.background surface.canvas surface.subtle surface.muted text.default text.soft text.muted text.disabled text.inverse text.brand border.default border.strong border.subtle
#6B35A7 #5C2D90 #45216E #8456C2 #F1E9F8 #1A1530 #F7F4ED #F7F6FB #C9892B #A86F1F #F5E9D2 #46C194 #FFFFFF #FBF8F1 #F7F4ED #ECE9F3 #E6E0D2 #D4CCB8 #A39DB0 #8C869C #6B647A #4A4360 #3A2D5A #1A1530 #000000 #2F7A5A #E2F0E8 #C9892B #F5E9D2 #B0382F #F7E4E1 #5C2D90 {colors.neutral.0} {colors.brand.canvas} {colors.neutral.50} {colors.brand.primarySoft} {colors.brand.ink} {colors.neutral.700} {colors.neutral.600} {colors.neutral.400} {colors.neutral.0} {colors.brand.primary} {colors.neutral.200} {colors.neutral.300} {colors.neutral.150}
0 1 2 3 4 focusRing
none 0 1px 2px rgba(26,21,48,0.04) 0 4px 12px -4px rgba(26,21,48,0.08) 0 16px 40px -16px rgba(26,21,48,0.18) 0 24px 80px -24px rgba(26,21,48,0.22) 0 0 0 3px rgba(107,53,167,0.18)
display wordmarkSecondary headingXL headingL headingM headingS bodyL bodyM bodyS caption mono
fontFamily fontSize fontWeight lineHeight letterSpacing
Opificio 72px 700 80px -0.01em
fontFamily fontSize fontWeight lineHeight letterSpacing
Manrope 20px 200 28px 0.04em
fontFamily fontSize fontWeight lineHeight
Manrope 32px 700 40px
fontFamily fontSize fontWeight lineHeight
Manrope 24px 600 32px
fontFamily fontSize fontWeight lineHeight
Manrope 20px 600 28px
fontFamily fontSize fontWeight lineHeight
Manrope 16px 600 24px
fontFamily fontSize fontWeight lineHeight
Manrope 18px 400 28px
fontFamily fontSize fontWeight lineHeight
Manrope 16px 400 24px
fontFamily fontSize fontWeight lineHeight
Manrope 14px 400 20px
fontFamily fontSize fontWeight lineHeight letterSpacing
Manrope 12px 500 16px 0.02em
fontFamily fontSize fontWeight lineHeight
Roboto Mono 14px 400 20px
none xs sm md lg xl 2xl full
0px 2px 4px 8px 12px 16px 24px 9999px
0 1 2 3 4 5 6 8 10 12 16 20 24
0px 4px 8px 12px 16px 20px 24px 32px 40px 48px 64px 80px 96px
button.primary button.primaryHover button.primaryPressed button.accent button.secondary button.ghost button.outline input.default card.default card.elevated badge.default badge.success badge.warning badge.danger modal.default
backgroundColor textColor typography rounded padding height shadow
{colors.brand.primary} {colors.text.inverse} {typography.bodyM} {rounded.md} 10px 16px 40px {elevation.1}
backgroundColor textColor
{colors.brand.primaryHover} {colors.text.inverse}
backgroundColor textColor
{colors.brand.primaryPressed} {colors.text.inverse}
backgroundColor textColor typography rounded padding height description
{colors.accent.gold} {colors.text.inverse} {typography.bodyM} {rounded.md} 10px 16px 40px Submit / emphasis button. Used sparingly — one per surface.
backgroundColor textColor borderColor typography rounded padding height
{colors.surface.subtle} {colors.text.default} {colors.border.default} {typography.bodyM} {rounded.md} 10px 16px 40px
backgroundColor textColor typography rounded padding height
transparent {colors.brand.primary} {typography.bodyM} {rounded.md} 10px 16px 40px
backgroundColor textColor borderColor typography rounded padding height
transparent {colors.text.default} {colors.border.strong} {typography.bodyM} {rounded.md} 10px 16px 40px
backgroundColor textColor borderColor typography rounded padding height focusRing
{colors.surface.background} {colors.text.default} {colors.border.default} {typography.bodyM} {rounded.md} 8px 12px 40px {elevation.focusRing}
backgroundColor textColor borderColor rounded padding shadow
{colors.surface.background} {colors.text.default} {colors.border.default} {rounded.lg} 24px {elevation.1}
backgroundColor rounded padding shadow
{colors.surface.background} {rounded.xl} 28px {elevation.3}
backgroundColor textColor typography rounded padding height
{colors.brand.primarySoft} {colors.brand.primaryHover} {typography.caption} {rounded.full} 2px 10px 22px
backgroundColor textColor
{colors.semantic.successSoft} {colors.semantic.success}
backgroundColor textColor
{colors.semantic.warningSoft} {colors.semantic.warning}
backgroundColor textColor
{colors.semantic.dangerSoft} {colors.semantic.danger}
backgroundColor textColor rounded padding width shadow
{colors.surface.background} {colors.text.default} {rounded.xl} 24px 480px {elevation.4}

Overview

The KDC Design System (KDS) is the source of truth for the visual and interaction language across all KDC products, marketing, and brand surfaces. It exists to make consistency cheap, accessibility default, and good design fast.

Brand pillars

  • Clear — communication is direct and free of jargon.
  • Confident — strong typography, decisive color, generous whitespace.
  • Human — warm accents and approachable voice balance the precision.

KDS targets WCAG 2.2 AA at minimum across all components and themes.

Colors

Color is organized in four layers:

  1. Brand — Kode purple (brand.primary #6B35A7) plus its hover / pressed / light / soft variants, anchored by a purple-tinted ink (brand.ink #1A1530 — never pure black) and the warm off-white canvas (brand.canvas #F7F4ED).
  2. Accentaccent.gold (#C9892B) is the product emphasis colour for submit / commit actions; accent.mint (#46C194) is reserved for marketing surfaces (workspace dashboard, decks). Use one accent per surface — never both.
  3. Neutral — a purple-tinted 13-step ramp (neutral.0neutral.1000). The ramp deliberately walks toward the brand ink rather than a cold grey, so muted text and borders stay on-brand. neutral.50 is a warm inset surface, neutral.100 aliases brand.canvas, neutral.900 aliases brand.ink.
  4. Semanticsuccess / warning / danger / info plus matching *Soft background tints, tuned to sit calmly on the warm canvas (e.g. success is #2F7A5A, not the louder #16A34A).

Always reference role tokens (text.default, surface.canvas, border.default) in product code — never raw palette values — so themes can swap without churn.

Contrast minimums:

  • Body text on background: ≥ 4.5:1
  • Large text and UI icons: ≥ 3:1
  • Disabled/decorative content is exempt but should still be perceivable.

Typography

KDS uses two brand typefaces:

  • Opificio Bold — reserved for the kode wordmark and headline display moments. Available in Bold, Rounded, and Regular cuts; Bold is the canonical brand weight.
  • Manrope — the working typeface for all UI: headings, body, captions, and the secondary wordmark line ("design consultants"). Use the full weight ramp: ExtraLight (200), Light (300), Regular (400), Medium (500), SemiBold (600), Bold (700), ExtraBold (800).

The wordmark lockup pairs them: primary line in Opificio Bold (72pt, 52pt spacing), secondary line in Manrope ExtraLight (20pt, 76pt spacing).

The UI scale is a modular 8-step ramp (captiondisplay). Use semantic tokens (headingL, bodyM) — never hardcode font-size. Body copy defaults to bodyM/16px with a 1.5 line-height for readability.

A monospace stack (Roboto Mono fallback to system mono) is available for code and tabular figures only — it is not part of the brand identity.

Web fonts are self-hosted from assets/fonts/ and preloaded for Manrope Regular (400) and SemiBold (600), plus Opificio Bold for the wordmark.

Layout

KDS is built on a 4px base unit. All spacing, sizing, and layout dimensions are multiples of 4. The spacing scale exposes the curated set most commonly needed (124).

Grid

  • 12-column responsive grid.
  • Gutters: 16px (mobile) / 24px (tablet) / 32px (desktop).
  • Max content width: 1200px, centered.

Breakpoints

Token Min width
sm 640px
md 768px
lg 1024px
xl 1280px
2xl 1536px

Layouts should be mobile-first and use logical properties (inline-start, block-end) for RTL readiness.

Elevation & Depth

Elevation is conveyed through a small set of layered shadows plus subtle background shifts. Avoid using elevation for decoration — reserve it for affordance and hierarchy.

Level Use Shadow
0 flush surfaces, page background none
1 cards, list rows, buttons 0 1px 2px rgba(26,21,48,0.04)
2 dropdowns, popovers 0 4px 12px -4px rgba(26,21,48,0.08)
3 modals, dialogs 0 16px 40px -16px rgba(26,21,48,0.18)
4 toasts, command bars 0 24px 80px -24px rgba(26,21,48,0.22)
focusRing any focusable element 0 0 0 3px rgba(107,53,167,0.18)

Shadows are tinted with the brand ink (rgb(26 21 48)) — not cold slate — so they read warm against the canvas. In dark theme, shadows are de-emphasized and elevation is communicated primarily through lighter surface tints.

Shapes

Corner radius is calibrated to component density:

  • xs (2px) — chips, inline tags
  • sm (4px) — inputs, small controls
  • md (8px) — buttons, default surfaces
  • lg (12px) — cards, sections
  • xl (16px) — modals, sheets
  • 2xl (24px) — marketing surfaces, feature panels
  • full — pills, avatars, circular buttons

Avoid mixing more than two radii in a single composition.

Components

The component library lives under components/ with one folder per primitive. Each folder ships:

  • A spec (README.md) documenting variants, states, props, and a11y notes.
  • Anatomy SVG/PNG.
  • Implementation references (web/mobile, where applicable).

Core primitives shipped today:

  • Buttons — primary, secondary, ghost, destructive; sizes sm/md/lg; loading & disabled states.
  • Inputs — text, textarea, select, checkbox, radio, switch.
  • Cards — default, elevated, outlined.
  • Modals — dialog, sheet, drawer.
  • Navigation — top bar, side nav, tabs, breadcrumbs, pagination.
  • Forms — field, label, helper text, error message, fieldset.
  • Tables — sortable, selectable, paginated.
  • Badges — neutral, success, warning, danger, info.
  • Tooltips, Alerts, Tabs, Dropdowns.

Every interactive component must define: default, hover, focus-visible, active/pressed, disabled, and (where relevant) loading.

Do's and Don'ts

Do

  • Use role tokens (text.default) over palette tokens (neutral.900).
  • Pair every color with a contrast check before shipping.
  • Lean on whitespace before adding rules, borders, or shadows.
  • Keep motion under 250ms for UI feedback; ease-out for entrances, ease-in for exits.
  • Provide focus-visible styles on every interactive element.

Don't

  • Don't introduce off-system colors, fonts, or radii in product UI.
  • Don't use color alone to convey meaning — always pair with icon or text.
  • Don't stack more than two elevation levels in a single composition.
  • Don't override component internals; extend via documented props/slots.
  • Don't ship animations longer than 400ms on transactional UI.