Inkwell Design System

The visual language for Inkwell \u2014 an AI-native screenwriting IDE. Built on DTCG tokens, oklch color science, dark-first design, and semantic layering that adapts across 5 theme presets and all accessibility modes.

Tailwind v4DTCG FormatoklchDark-first5 PresetsWCAG 2.2Style Dictionary v5

Token Architecture

Tier 1 \u2014 Core Palette

Raw color values, spacing scale, typography, shadows, motion, z-index. Built by Style Dictionary into CSS custom properties and TypeScript constants.

packages/design-tokens/src/tokens/core/

Tier 2 \u2014 Semantic Tokens

Mode-aware mappings (:root, .dark, [data-theme]) that reference Tier 1 values. Hand-authored in globals.css for selector control Style Dictionary cannot provide.

packages/ui/src/styles/globals.css

Tier 3 \u2014 Component Tokens

CVA variants and component-level custom properties that consume Tier 2 tokens. Scoped to individual components.

packages/ui/src/components/ui/*.tsx

Provisional Tokens

The tokens in this design system are scaffolding, not a finished design. A dedicated design research phase is required before these values are final. Components should consume tokens (never hardcode values), but aesthetic judgment calls should not be based on provisional values. See Inkwell_UI_System.md \u00a72.