Skip to main content
HahlexMillarv0.1.0 Draft
FoundationsDraftDTCG 2025.1068 shown@hahlex/millar-tokens

Design Tokens (W3C DTCG 2025.10)

Single Source of Truth token compiler outputting CSS custom properties, Tailwind CSS v4 @theme inline, literal Ant Design 6 mirrors, and machine-readable JSON for the Millar MCP Server.

CSS VariableResolved ValueCategoryDescription
#ffffffcolorMain viewport canvas (Product default).
#faf8f5colorSidebar navigation rail surface.
#ffffffcolorDefault card, table, input, and dialog surface.
#f9f5efcolorWarm-sand inset surface for table headers, filter wells, and code blocks.
#ffffffcolorFloating overlays, popovers, and dropdown menus.
#f5efe6colorInteractive row, menu item, and control hover fill.
#faf8f5colorMarketing editorial primary paper canvas anchored to App Warm Sand (#faf8f5).
#faf3eacolorMarketing alternating warm cream section canvas anchored to App --hah-cream (#faf3ea).
#f2e6cdcolorMarketing warm sand feature card anchored to App --hah-sand (#f2e6cd).
#1a130dcolorMarketing dark espresso showcase stage harmonized with App Charcoal (#2b1f16) and Espresso (#3d2a1c).
#120c08colorMarketing deepest espresso backdrop/footer.
#2a2018colorCard surface seated inside dark editorial stages.
#2b1f16colorPrimary heading & body ink (16.03:1 on white).
#5f4f40colorSecondary prose, form labels, and table headers (7.84:1 on white).
#715f4dcolorCaptions, placeholders, and metadata (>= 5.33:1 across all light surfaces).
#fafaf9colorHigh-contrast warm white ink on dark espresso stages anchored to App dark ink (17.8:1 AAA).
#d6d3d1colorMuted warm stone prose on dark espresso stages anchored to App dark muted ink (12.3:1 AAA).
#d6b48acolorApp Soft Sand (#d6b48a) brand highlight on dark espresso stages (9.6:1 AAA).
#b3121bcolorHahlex Crimson (#b3121b, App --hah-crimson) editorial accent for Marketing tension, pain metrics, quote marks, and Before/After friction (< 1.5% surface area; never for primary CTAs).
#fcefeecolorSoft crimson callout wash anchored to App --status-error-soft (#fcefee).
#f1c4c2colorCrisp 1px crimson callout border anchored to App --status-error-border (#f1c4c2).
#f0857fcolorHahlex Crimson highlight (#f0857f, App dark crimson) on dark espresso stages for tension stats and quote markers (7.8:1 AAA).
#f3eee6colorSubtle internal row divider.
#ebe3d7colorCanonical 1px warm-sand border.
#b5a48ecolorControl hover/active border.
#3e3128colorHairline border inside dark editorial stages.
#4a3022colorPrimary CTA button fill (12.09:1 AAA with white label).
#362218colorPrimary CTA hover fill (15.01:1 AAA with white label).
#4a3022colorEditorial primary CTA fill unified with App --hah-cta-brown (#4a3022, 12.09:1 AAA with white).
#362218colorEditorial CTA hover fill unified with App --hah-cta-brown-hover (#362218, 15.01:1 AAA with white).
#6b4d35colorHigh-contrast warm bronze CTA fill on always-dark espresso showcase stages (7.67:1 AAA with white).
#ffffffcolorInk on primary and editorial CTA buttons.
#d6b48acolorTheme-invariant soft sand chip fill.
#362218colorRequired ink on accent-soft chips and active toggles (7.69:1 AAA; fixes 1.00:1 dark toggle bug).
#6b4d35colorBrand ink for links, active indicators, eyebrows, and icons on light surfaces.
#4a3022colorHover ink for brand links.
#4a3022color2px high-contrast keyboard focus ring (>= 3:1 across all surfaces).
#4f7a34colorSuccess text and solid status fill.
#f1f6eacolorSuccess soft wash.
#cfe0bdcolorSuccess border.
#4f7a34colorSolid success button fill.
#ffffffcolorInk on solid success button.
#965a14colorWarning text and icon.
#fdf4e6colorWarning soft wash.
#f0d4a8colorWarning border.
#b3121bcolorError, destructive action, and problem metric ink.
#fcefeecolorError soft wash.
#f1c4c2colorError border.
#a56b23colorNon-skill brand bronze indicator.
#faf3eacolorBrand soft wash for active nav & badges.
#e4cbafcolorBrand soft border.
#6b4d35colorBrand badge foreground ink.
#d1a068colorSand indicator accent.
#f2e6cdcolorSand soft badge wash.
#e4cbafcolorSand badge border.
#6b4d35colorSand badge foreground ink.
#4f7d6ecolorSupporting sage category indicator.
#eef5f2colorSage soft wash.
#c4dcd3colorSage border.
#3a6154colorSage badge ink.
#3d2a1ccolorPrimary single-series data-viz fill.
#938c87colorNeutral comparison series.
#965eaccolorMulti-series slot 1 (Plum).
#359d87colorMulti-series slot 2 (Teal).
#304a96colorMulti-series slot 3 (Ink Blue).
#d1a068colorTarget guide ring.
0 1px 3px rgba(61, 42, 28, 0.06)shadowWarm-tinted whisper shadow for lifted cards.
0 1px 3px rgba(61, 42, 28, 0.10), 0 8px 24px rgba(61, 42, 28, 0.16)shadowWarm-tinted overlay elevation for popovers, menus, and dialogs.

Tailwind v4 & Ant Design 6 Integration

Tailwind v4 uses @theme inline so scoped [data-theme='dark'] subtrees resolve dynamically; AntD 6 uses generated literal mirrors.

All 8 downstream output artifacts compile in one pass via pnpm run compile from tokens/millar.resolver.json.

Tailwind v4 & Ant Design 6 Integration
/* Tailwind CSS v4 (globals.css) */
@import "tailwindcss";
@import "@hahlex/millar-tokens/tailwind";

/* Ant Design 6 Theme Adapter (App.tsx) */
import { ConfigProvider } from "antd";
import { createMillarAntdTheme } from "@hahlex/millar-ui";

<ConfigProvider theme={createMillarAntdTheme("light")}>...</ConfigProvider>