Generate OKLCH Color Palette & Design Tokens
ink_generate_palette_tokensGenerate WCAG AAA-compliant OKLCH color ramps and fluid typography scales for design systems, with layered shadow elevations and ready-to-use CSS variables.
Instructions
PURPOSE: Generate bespoke OKLCH color token ramps, layered shadow elevations, and fluid clamp() typography scales tailored to a creative aesthetic mood and base hue.
BEHAVIOR: Synthesizes CSS custom property tokens and typography steps purely in-memory. Zero filesystem writes and zero external network access. Guarantees WCAG AAA contrast compliance across all text/surface pairings with mathematical delta-E verification.
USAGE GUIDELINES:
When to use: Use when creating or refining a design system's color foundation, fluid typographic scales, or dark/light mode surface tokens.
When NOT to use: Do NOT use to extract colors from an existing live website (use ink_inspect_website_style instead) or to scaffold an entire project skeleton (use ink_create_base instead).
Alternatives: Use ink_inspect_website_style to reverse-engineer design tokens from existing sites; use ink_create_base for full-page scaffolding.
RETURNS: ResultEnvelope containing semantic OKLCH token map, computed contrast analysis, fluid typography scales, and a ready-to-use CSS :root variable stylesheet string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mood | No | Creative aesthetic mood determining surface depths, text luminance steps, and brand accents | editorial |
| baseHue | No | Optional hue angle (0-360) on OKLCH color wheel (e.g., 210 for cyan, 260 for indigo, 30 for warm bronze, 145 for emerald) | |
| includeTypography | No | When true, calculates fluid clamp() typography scale tokens (steps -1 through 5) | |
| includeArabicTokens | No | When true, includes Arabic line-height ratios (1.7-1.85) and font fallback variables |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Domain-specific typed payload returned by the tool | |
| status | Yes | Execution outcome status | |
| summary | Yes | Concise, human-readable executive summary of the tool outcome | |
| evidence | No | Audit trail, source references, and generated artifact locations | |
| warnings | Yes | Operational cautions, craft advice, or non-blocking warnings | |
| nextActions | No | Actionable sequential recommendations or subsequent tool suggestions |