arkaos 4.29.0 → 4.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/THE-ARKAOS-GUIDE.md +1 -1
  2. package/VERSION +1 -1
  3. package/config/claude-agents/conversion-strategist.md +1 -1
  4. package/config/claude-agents/extraction-script-writer.md +1 -1
  5. package/config/claude-agents/frontend-dev.md +1 -1
  6. package/config/claude-agents/landing-cro-specialist.md +1 -1
  7. package/config/claude-agents/visual-designer.md +1 -1
  8. package/config/skills-provenance.yaml +17 -3
  9. package/departments/brand/agents/design-ops/extraction-script-writer.yaml +1 -0
  10. package/departments/brand/agents/visual-designer.yaml +1 -0
  11. package/departments/brand/references/uiux-knowledge-and-tools.md +13 -1
  12. package/departments/brand/skills/colors/SKILL.md +9 -1
  13. package/departments/brand/skills/colors/references/hallmark.LICENSE +21 -0
  14. package/departments/brand/skills/colors/references/impeccable.LICENSE +191 -0
  15. package/departments/brand/skills/colors/references/oklch-theme.md +563 -0
  16. package/departments/brand/skills/design-system/SKILL.md +34 -0
  17. package/departments/brand/skills/design-system/references/design-dna-study.md +512 -0
  18. package/departments/brand/skills/design-system/references/design-md-spec.md +454 -0
  19. package/departments/brand/skills/design-system/references/hallmark.LICENSE +21 -0
  20. package/departments/brand/skills/design-system/references/impeccable.LICENSE +191 -0
  21. package/departments/brand/skills/design-system/references/interaction-states.md +306 -0
  22. package/departments/brand/skills/design-system/references/themes/carnival.md +303 -0
  23. package/departments/brand/skills/design-system/references/themes/cobalt.md +148 -0
  24. package/departments/brand/skills/design-system/references/themes/hum.md +405 -0
  25. package/departments/brand/skills/design-system/references/themes/lumen.md +480 -0
  26. package/departments/brand/skills/design-system/references/typography-craft.md +319 -0
  27. package/departments/brand/skills/mockup-generate/SKILL.md +4 -1
  28. package/departments/brand/skills/wireframe/SKILL.md +5 -0
  29. package/departments/dev/agents/frontend-dev.yaml +1 -0
  30. package/departments/dev/skills/animated-website/SKILL.md +10 -0
  31. package/departments/dev/skills/animated-website/references/hallmark.LICENSE +21 -0
  32. package/departments/dev/skills/animated-website/references/impeccable.LICENSE +191 -0
  33. package/departments/dev/skills/animated-website/references/motion-recipes.md +546 -0
  34. package/departments/dev/skills/evaluator-build-loop/SKILL.md +5 -0
  35. package/departments/landing/agents/conversion-strategist.yaml +1 -0
  36. package/departments/landing/agents/cro-specialist.yaml +1 -0
  37. package/departments/landing/skills/landing-gen/SKILL.md +16 -5
  38. package/departments/landing/skills/page-architect/SKILL.md +25 -1
  39. package/departments/landing/skills/page-architect/references/component-cookbook.md +265 -0
  40. package/departments/landing/skills/page-architect/references/components/c1-outlined-chip.md +14 -0
  41. package/departments/landing/skills/page-architect/references/components/c2-inline-form-as-cta.md +19 -0
  42. package/departments/landing/skills/page-architect/references/components/c3-typographic-link.md +11 -0
  43. package/departments/landing/skills/page-architect/references/components/c4-sticky-bottom-bar.md +17 -0
  44. package/departments/landing/skills/page-architect/references/components/f1-bento-grid.md +22 -0
  45. package/departments/landing/skills/page-architect/references/components/f2-sticky-scroll-stack.md +23 -0
  46. package/departments/landing/skills/page-architect/references/components/f3-tabular-spec-sheet.md +14 -0
  47. package/departments/landing/skills/page-architect/references/components/f4-step-sequence.md +14 -0
  48. package/departments/landing/skills/page-architect/references/components/f5-annotated-screenshot.md +14 -0
  49. package/departments/landing/skills/page-architect/references/components/f6-product-card-grid.md +42 -0
  50. package/departments/landing/skills/page-architect/references/components/ft1-mast-headed.md +15 -0
  51. package/departments/landing/skills/page-architect/references/components/ft2-inline-rule-single-line.md +13 -0
  52. package/departments/landing/skills/page-architect/references/components/ft3-index-style-category-list.md +15 -0
  53. package/departments/landing/skills/page-architect/references/components/ft4-dense-typographic.md +13 -0
  54. package/departments/landing/skills/page-architect/references/components/ft5-statement.md +24 -0
  55. package/departments/landing/skills/page-architect/references/components/ft6-letter-close.md +22 -0
  56. package/departments/landing/skills/page-architect/references/components/ft7-newsletter-first.md +30 -0
  57. package/departments/landing/skills/page-architect/references/components/ft8-marquee-scroll.md +26 -0
  58. package/departments/landing/skills/page-architect/references/components/h1-marquee.md +17 -0
  59. package/departments/landing/skills/page-architect/references/components/h2-split-diptych.md +18 -0
  60. package/departments/landing/skills/page-architect/references/components/h3-quote-led.md +14 -0
  61. package/departments/landing/skills/page-architect/references/components/h4-stat-led.md +17 -0
  62. package/departments/landing/skills/page-architect/references/components/h5-letter-hero.md +14 -0
  63. package/departments/landing/skills/page-architect/references/components/h6-photographic-fold.md +19 -0
  64. package/departments/landing/skills/page-architect/references/components/h7-demo-video-clipped-by-viewport-edge.md +30 -0
  65. package/departments/landing/skills/page-architect/references/components/h8-mockup-split-browser-framed.md +26 -0
  66. package/departments/landing/skills/page-architect/references/components/h9-custom-illustration-centerpiece.md +28 -0
  67. package/departments/landing/skills/page-architect/references/components/n1-wordmark-2-links.md +14 -0
  68. package/departments/landing/skills/page-architect/references/components/n10-floating-on-scroll-morph.md +20 -0
  69. package/departments/landing/skills/page-architect/references/components/n11-mega-menu.md +43 -0
  70. package/departments/landing/skills/page-architect/references/components/n12-banner-retract.md +37 -0
  71. package/departments/landing/skills/page-architect/references/components/n13-inline-cmdk-pill.md +42 -0
  72. package/departments/landing/skills/page-architect/references/components/n1b-saas-three-section.md +38 -0
  73. package/departments/landing/skills/page-architect/references/components/n2-floating-chip.md +17 -0
  74. package/departments/landing/skills/page-architect/references/components/n3-side-rail.md +17 -0
  75. package/departments/landing/skills/page-architect/references/components/n4-hidden-behind-k.md +12 -0
  76. package/departments/landing/skills/page-architect/references/components/n5-floating-pill.md +31 -0
  77. package/departments/landing/skills/page-architect/references/components/n6-newspaper-masthead.md +27 -0
  78. package/departments/landing/skills/page-architect/references/components/n7-brutal-slab.md +25 -0
  79. package/departments/landing/skills/page-architect/references/components/n8-terminal-command.md +24 -0
  80. package/departments/landing/skills/page-architect/references/components/n9-edge-aligned-minimal.md +20 -0
  81. package/departments/landing/skills/page-architect/references/components/s1-left-margin-numbered.md +17 -0
  82. package/departments/landing/skills/page-architect/references/components/s2-hanging.md +16 -0
  83. package/departments/landing/skills/page-architect/references/components/s3-sticky-pinned.md +22 -0
  84. package/departments/landing/skills/page-architect/references/components/s4-inline-no-break.md +14 -0
  85. package/departments/landing/skills/page-architect/references/components/s5-bottom-anchored.md +14 -0
  86. package/departments/landing/skills/page-architect/references/components/t1-pull-quote-with-marginalia.md +14 -0
  87. package/departments/landing/skills/page-architect/references/components/t2-logo-wall-hairline.md +22 -0
  88. package/departments/landing/skills/page-architect/references/components/t3-single-huge-quote.md +14 -0
  89. package/departments/landing/skills/page-architect/references/components/t4-numbered-stat-strip.md +15 -0
  90. package/departments/landing/skills/page-architect/references/floating-nav.md +91 -0
  91. package/departments/landing/skills/page-architect/references/hallmark.LICENSE +21 -0
  92. package/departments/landing/skills/page-architect/references/hero-enrichment.md +477 -0
  93. package/departments/landing/skills/page-architect/references/impeccable.LICENSE +191 -0
  94. package/departments/landing/skills/page-architect/references/layout-craft.md +236 -0
  95. package/departments/landing/skills/page-architect/references/macrostructures/01-bento-grid.md +37 -0
  96. package/departments/landing/skills/page-architect/references/macrostructures/02-long-document.md +36 -0
  97. package/departments/landing/skills/page-architect/references/macrostructures/03-marquee-hero.md +33 -0
  98. package/departments/landing/skills/page-architect/references/macrostructures/04-stat-led.md +36 -0
  99. package/departments/landing/skills/page-architect/references/macrostructures/05-workbench.md +34 -0
  100. package/departments/landing/skills/page-architect/references/macrostructures/06-conversational-faq.md +35 -0
  101. package/departments/landing/skills/page-architect/references/macrostructures/07-manifesto.md +34 -0
  102. package/departments/landing/skills/page-architect/references/macrostructures/08-photographic.md +36 -0
  103. package/departments/landing/skills/page-architect/references/macrostructures/09-quote-led.md +34 -0
  104. package/departments/landing/skills/page-architect/references/macrostructures/10-specimen.md +34 -0
  105. package/departments/landing/skills/page-architect/references/macrostructures/11-catalogue.md +25 -0
  106. package/departments/landing/skills/page-architect/references/macrostructures/12-letter.md +25 -0
  107. package/departments/landing/skills/page-architect/references/macrostructures/13-index-first.md +25 -0
  108. package/departments/landing/skills/page-architect/references/macrostructures/14-narrative-workflow.md +25 -0
  109. package/departments/landing/skills/page-architect/references/macrostructures/15-split-studio.md +25 -0
  110. package/departments/landing/skills/page-architect/references/macrostructures/16-feature-stack.md +25 -0
  111. package/departments/landing/skills/page-architect/references/macrostructures/17-type-specimen.md +25 -0
  112. package/departments/landing/skills/page-architect/references/macrostructures/18-portfolio-grid.md +25 -0
  113. package/departments/landing/skills/page-architect/references/macrostructures/19-map-diagram.md +25 -0
  114. package/departments/landing/skills/page-architect/references/macrostructures/20-ecosystem-index.md +25 -0
  115. package/departments/landing/skills/page-architect/references/macrostructures/21-component-playground.md +25 -0
  116. package/departments/landing/skills/page-architect/references/macrostructures.md +91 -0
  117. package/departments/landing/skills/page-architect/references/ui-copy.md +75 -0
  118. package/harness/codex/AGENTS.md +1 -1
  119. package/harness/copilot/copilot-instructions.md +1 -1
  120. package/harness/cursor/rules/arkaos.mdc +2 -2
  121. package/harness/gemini/GEMINI.md +1 -1
  122. package/harness/opencode/AGENTS.md +1 -1
  123. package/harness/zed/.rules +1 -1
  124. package/knowledge/agents-registry-v2.json +9 -4
  125. package/knowledge/skills-manifest.json +10 -4
  126. package/package.json +1 -1
  127. package/pyproject.toml +1 -1
@@ -0,0 +1,454 @@
1
+ # design.md — portable design-system spec + exports
2
+
3
+ > Source: merge of `references/design-md.md` + `references/export-formats.md` from the **hallmark** skill repo (MIT — see `hallmark.LICENSE` in this references directory). Adapted for ArkaOS; an ArkaOS bridge paragraph closes the file.
4
+
5
+ `design.md` is the opt-in portable design system: loaded ONLY when the user explicitly asks to lock the current build's design system into a portable file. The default build flow does NOT auto-emit `design.md`. The user iterates freely until they say the system is settled, then asks for it.
6
+
7
+ This spec is **also** used by [`design-dna-study.md`](design-dna-study.md) when the user — after a successful `study` diagnosis — asks for the DNA to be emitted as a portable system. The format below is shared between the two paths; the only differences are spelled out in § Two emission paths (default vs study) and in [`design-dna-study.md`](design-dna-study.md) § Emitting a `design.md` from `study`.
8
+
9
+ ## Triggers (phrase-only — no new verb)
10
+
11
+ Fire ONLY when the user says one of:
12
+
13
+ - *"lock the system"* / *"lock the design system"* / *"lock the DNA"* / *"lock this DNA"*
14
+ - *"give me a design.md"* / *"write a design.md"* / *"export this as a design.md"*
15
+ - *"extract this to a design system"* / *"extract the tokens"* / *"extract the DNA"*
16
+ - *"make this portable"* / *"make the DNA portable"*
17
+ - *"I want to use this in another project"*
18
+
19
+ For everything else — including the default build, a redesign of a single page, and free iteration on the same brief — skip. Single-page work stays token-portable via `tokens.css`; `design.md` is the explicit lock-in step.
20
+
21
+ ## Two emission paths (default vs study)
22
+
23
+ The same `design.md` format is emitted from two different entry points. They differ in which signals seed the file and in how strict the refusal layer is.
24
+
25
+ | | **Default-build path** (lock the system) | **Study path** (lock the DNA) |
26
+ | --- | --- | --- |
27
+ | **Trigger context** | After at least one build the user has iterated on and is satisfied with | After a successful `study` diagnosis (image or URL) |
28
+ | **Source of tokens** | The build's in-memory token state | The studied DNA — exact from CSS in URL mode, estimated from bands in image mode |
29
+ | **Refusal layer** | None — the user owns the build they iterated on | Tighter — see [`design-dna-study.md`](design-dna-study.md) § Emission-refusal layer. URL mode requires attestation; third-party URLs are refused |
30
+ | **`## Provenance` block** | Omitted (the system is the user's own work) | Required — records source mode, URL or "image", date, attestation answer, confidence note |
31
+ | **`## Notes` block** | Optional — covers any decisions worth remembering | Required — carries the diagnosis's "anti-patterns to NOT carry over" list |
32
+
33
+ Both paths produce a `design.md` that subsequent runs can read; the file format is uniform once written.
34
+
35
+ ## Scope
36
+
37
+ - **Page-builds only.** Skip on component-scope — a single component is too small to be a system.
38
+ - **Multi-page redesign keeps existing behaviour.** A multi-page redesign produces the heavyweight `design.md` as part of its own flow (upstream: `verbs/redesign.md` § Multi-page flow — unported). That flow already implies a locked system, so the rule there is unchanged.
39
+ - **No-overwrite policy.** If `design.md` already exists at the project root, do NOT overwrite. Refresh its `## Exports` section instead and emit one line: *"design.md detected — refreshed Exports, system unchanged."*
40
+
41
+ ## CTA — surface the offer in the build preview
42
+
43
+ After every default + redesign page-build, append one quiet line at the bottom of the preview block:
44
+
45
+ > *System portable? Say `lock the system` to extract this build's tokens + voice into a `design.md`.*
46
+
47
+ Skip the CTA when (a) the build is component-scope, or (b) `design.md` already exists in the project (system is already locked).
48
+
49
+ ## Format (the tight version)
50
+
51
+ Write the file at the project root. Match the project's case convention (`design.md` or `DESIGN.md`). Target ~45 lines — enough to seed a real app, not so much that it becomes a wiki to maintain. The format:
52
+
53
+ ````markdown
54
+ # Design — <Project name>
55
+
56
+ Locked design system. Future runs read this file first; pages defer
57
+ to it. Amend intentionally — the file is the rule.
58
+
59
+ ## System
60
+ - Genre · <editorial / modern-minimal / atmospheric / playful>
61
+ - Macrostructure · <name>
62
+ - Theme · <catalog: NAME · or · custom (vibe: "<4–8 words>")>
63
+ - Axes · <paper-band> / <display-style> / <accent-hue>
64
+
65
+ ## Tokens (canonical · `tokens.css` is the source of truth)
66
+ ```css
67
+ :root {
68
+ --color-paper: oklch(<L> <C> <H>);
69
+ --color-paper-2: oklch(<L> <C> <H>);
70
+ --color-ink: oklch(<L> <C> <H>);
71
+ --color-ink-2: oklch(<L> <C> <H>);
72
+ --color-rule: oklch(<L> <C> <H>);
73
+ --color-accent: oklch(<L> <C> <H>);
74
+ --color-accent-ink: oklch(<L> <C> <H>);
75
+ --color-focus: oklch(<L> <C> <H>);
76
+
77
+ --font-display: "<face>", ...;
78
+ --font-body: "<face>", ...;
79
+ --font-mono: "<face>", ...;
80
+
81
+ /* 4-pt spacing scale, named: --space-3xs … --space-4xl. See tokens.css. */
82
+ /* Type scale, 1.25 (major-third) ratio: --text-xs … --text-display. */
83
+
84
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
85
+ --dur-fast: 180ms; --dur-base: 240ms; --dur-slow: 320ms;
86
+
87
+ --radius-card: <px>; --radius-pill: <px>; --radius-input: <px>;
88
+ }
89
+ ```
90
+
91
+ ## CTA voice
92
+ - Primary · <fill colour> · <radius> · <padding rhythm>
93
+ - Secondary · <outline / ghost> · <same radius>
94
+
95
+ ## Motion stance
96
+ - <silent · 1–2 reveal primitives · motion-cut>
97
+ - Reduced-motion fallback · ≤150 ms opacity crossfade.
98
+
99
+ ## Exports
100
+ `tokens.css` (in this project) is the source of truth. For Tailwind v4
101
+ `@theme`, DTCG `tokens.json`, or shadcn/ui CSS variables, ask *"extend
102
+ design.md with Tailwind exports"* (or the format you want) — they will
103
+ be appended per § Export formats below.
104
+ ````
105
+
106
+ State the picks aloud BEFORE writing the file. *"Genre: editorial. Macrostructure: Long Document. Theme: catalog Editorial. Locking this as the project's system."* Then write.
107
+
108
+ ## After the file is written
109
+
110
+ Once `design.md` exists, the pre-flight scan detects it on every subsequent run. From that point on:
111
+
112
+ - All future runs READ `design.md` first; subsequent picks (genre / theme / typography / motion / CTA voice) defer to it.
113
+ - The diversification rule INVERTS — pages must SHARE the system, not differ from each other.
114
+ - If a future page genuinely needs a different system, AMEND `design.md` with a `## Variants` section rather than overriding locally — the file evolves; per-page overrides do not.
115
+
116
+ ## Why opt-in (not auto-emit)
117
+
118
+ Briefs iterate. The first build is rarely the settled design. Auto-emitting `design.md` on every default build would either churn the file across iterations or lock a weak system before the user has reviewed it. Opt-in mirrors how design teams actually work — formalise the system after the patterns hold, not on day one. The CTA in the preview block keeps the feature discoverable without forcing it.
119
+
120
+ ---
121
+
122
+ # Export formats
123
+
124
+ Loaded when emitting the design system as portable tokens. Defines the four canonical formats every emission writes:
125
+
126
+ 1. **`tokens.css`** — the source of truth. Always emitted alongside the page CSS.
127
+ 2. **Tailwind v4 `@theme`** — for projects on Tailwind. Emitted into `design.md`'s Exports section on multi-page projects.
128
+ 3. **DTCG `tokens.json`** — for projects using a token pipeline (Style Dictionary, Token Studio, Cobalt). Emitted into `design.md`.
129
+ 4. **shadcn/ui CSS variables** — for projects using shadcn/ui's component library. Emitted into `design.md`.
130
+
131
+ The output rule: `tokens.css` is always written. The other three live inline in `design.md` so the user copies whichever they need into a new project. **No new verb.** This is a side effect of every build.
132
+
133
+ ---
134
+
135
+ ## Token taxonomy — the source of truth
136
+
137
+ Every build writes these tokens (or a subset, if the page doesn't use one). The names are the source; every other format is a translation.
138
+
139
+ | Token | Type | Example value |
140
+ | --- | --- | --- |
141
+ | `--color-paper` | colour | `oklch(96% 0.018 80)` |
142
+ | `--color-paper-2` | colour | `oklch(94% 0.020 80)` |
143
+ | `--color-paper-3` | colour | `oklch(91% 0.022 80)` |
144
+ | `--color-ink` | colour | `oklch(15% 0.012 80)` |
145
+ | `--color-ink-2` | colour | `oklch(28% 0.014 80)` |
146
+ | `--color-rule` | colour | `oklch(86% 0.018 80)` |
147
+ | `--color-rule-2` | colour | `oklch(72% 0.020 80)` |
148
+ | `--color-muted` | colour | `oklch(50% 0.014 80)` |
149
+ | `--color-neutral` | colour | `oklch(38% 0.012 80)` |
150
+ | `--color-accent` | colour | `oklch(58% 0.16 70)` |
151
+ | `--color-accent-ink` | colour | (text on accent fill, ≥ APCA 7:1) |
152
+ | `--color-focus` | colour | (often = accent at higher chroma) |
153
+ | `--font-display` | font | `"Fraunces", ui-serif, Georgia, serif` |
154
+ | `--font-body` | font | `"Geist", ui-sans-serif, system-ui, sans-serif` |
155
+ | `--font-outlier` | font | `"Geist Mono", ui-monospace, monospace` |
156
+ | `--space-3xs` … `--space-5xl` | length | 4-pt scale: `0.25rem` … `8rem` |
157
+ | `--text-xs` … `--text-display` | length | 1.25 (major-third) ratio scale |
158
+ | `--ease-out` / `--ease-in` / `--ease-in-out` | easing | `cubic-bezier(0.16, 1, 0.3, 1)` etc. |
159
+ | `--dur-micro` / `--dur-short` / `--dur-long` | time | `120ms` / `220ms` / `420ms` |
160
+ | `--rule-hair` / `--rule-fine` | length | `1px` / `2px` |
161
+ | `--radius-card` / `--radius-pill` / `--radius-input` | length | varies per theme |
162
+ | `--shadow-card` | shadow | varies per theme |
163
+
164
+ If the page introduces *additional* tokens, name them by role and add to `tokens.css`. Don't make up token names downstream that aren't in `tokens.css` — the source of truth is the source of truth.
165
+
166
+ ---
167
+
168
+ ## Format 1 — `tokens.css`
169
+
170
+ The source. Plain CSS custom properties at `:root`. Every page CSS imports this file at the top:
171
+
172
+ ```css
173
+ @import "tokens.css";
174
+ /* page CSS continues — uses var(--color-paper), never raw values */
175
+ ```
176
+
177
+ Or, if the project uses a CSS bundler / framework that doesn't honour bare `@import`, the project's existing entry-point imports `tokens.css` before the page CSS that consumes it (keep it among the other top-of-file `@import`s, never above or in place of `@import "tailwindcss"`). The page CSS still references tokens by name, never by raw value.
178
+
179
+ **Worked example — editorial theme (Specimen-like):**
180
+
181
+ ```css
182
+ :root {
183
+ --color-paper: oklch(96% 0.018 80);
184
+ --color-paper-2: oklch(94% 0.020 80);
185
+ --color-paper-3: oklch(91% 0.022 80);
186
+ --color-rule: oklch(86% 0.020 78);
187
+ --color-rule-2: oklch(72% 0.022 78);
188
+ --color-muted: oklch(50% 0.018 78);
189
+ --color-neutral: oklch(38% 0.014 76);
190
+ --color-ink-2: oklch(28% 0.012 75);
191
+ --color-ink: oklch(15% 0.010 75);
192
+ --color-accent: oklch(58% 0.16 60);
193
+ --color-accent-ink: oklch(98% 0.012 75);
194
+ --color-focus: oklch(58% 0.16 60);
195
+
196
+ --font-display: "Fraunces", "Cardo", ui-serif, Georgia, serif;
197
+ --font-body: "Geist", "Söhne", ui-sans-serif, system-ui, sans-serif;
198
+ --font-outlier: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
199
+
200
+ --display-weight: 400;
201
+ --display-style: italic;
202
+ --tracking-display: -0.02em;
203
+ --tracking-label: 0.10em;
204
+
205
+ --text-xs: 0.75rem;
206
+ --text-sm: 0.875rem;
207
+ --text-md: 1.125rem;
208
+ --text-lg: 1.375rem;
209
+ --text-xl: 1.75rem;
210
+ --text-2xl: 2.25rem;
211
+ --text-display: clamp(3rem, 6vw + 1rem, 6.5rem);
212
+
213
+ --space-3xs: 0.25rem;
214
+ --space-2xs: 0.5rem;
215
+ --space-xs: 0.75rem;
216
+ --space-sm: 1rem;
217
+ --space-md: 1.5rem;
218
+ --space-lg: 2rem;
219
+ --space-xl: 3rem;
220
+ --space-2xl: 4.5rem;
221
+ --space-3xl: 7rem;
222
+ --space-4xl: 11rem;
223
+
224
+ --rule-hair: 0.5px;
225
+ --rule-fine: 1px;
226
+ --radius-card: 0;
227
+ --radius-pill: 0;
228
+ --radius-input: 0;
229
+
230
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
231
+ --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
232
+ --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
233
+
234
+ --dur-micro: 120ms;
235
+ --dur-short: 220ms;
236
+ --dur-long: 420ms;
237
+ }
238
+ ```
239
+
240
+ **Worked example — modern-minimal theme (austere, pure-white):**
241
+
242
+ ```css
243
+ :root {
244
+ --color-paper: oklch(100% 0 0);
245
+ --color-paper-2: oklch(98.5% 0 0);
246
+ --color-paper-3: oklch(96% 0 0);
247
+ --color-rule: oklch(91% 0 0);
248
+ --color-rule-2: oklch(82% 0 0);
249
+ --color-muted: oklch(55% 0 0);
250
+ --color-neutral: oklch(40% 0 0);
251
+ --color-ink-2: oklch(28% 0 0);
252
+ --color-ink: oklch(15% 0 0);
253
+ --color-accent: oklch(15% 0 0);
254
+ --color-accent-ink: oklch(100% 0 0);
255
+ --color-focus: oklch(60% 0.10 240);
256
+
257
+ --font-display: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
258
+ --font-body: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
259
+ --font-outlier: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
260
+
261
+ --display-weight: 600;
262
+ --display-style: normal;
263
+ --tracking-display: -0.025em;
264
+
265
+ --radius-card: 8px;
266
+ --radius-pill: 999px;
267
+ --radius-input: 8px;
268
+ }
269
+ ```
270
+
271
+ ---
272
+
273
+ ## Format 2 — Tailwind v4 `@theme`
274
+
275
+ Tailwind v4 reads CSS variables inside `@theme` and generates utilities (`bg-paper`, `text-ink`, etc.) automatically. The translation from the canonical tokens is direct — same variable names, same OKLCH values:
276
+
277
+ ```css
278
+ @theme {
279
+ /* Colours */
280
+ --color-paper: oklch(96% 0.018 80);
281
+ --color-paper-2: oklch(94% 0.020 80);
282
+ --color-paper-3: oklch(91% 0.022 80);
283
+ --color-rule: oklch(86% 0.020 78);
284
+ --color-rule-2: oklch(72% 0.022 78);
285
+ --color-muted: oklch(50% 0.018 78);
286
+ --color-neutral: oklch(38% 0.014 76);
287
+ --color-ink-2: oklch(28% 0.012 75);
288
+ --color-ink: oklch(15% 0.010 75);
289
+ --color-accent: oklch(58% 0.16 60);
290
+ --color-focus: oklch(58% 0.16 60);
291
+
292
+ /* Fonts */
293
+ --font-display: "Fraunces", "Cardo", ui-serif, Georgia, serif;
294
+ --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
295
+ --font-outlier: "Geist Mono", ui-monospace, monospace;
296
+
297
+ /* Spacing — Tailwind reads --spacing-* by default; we keep the --space-* names alongside */
298
+ --spacing-3xs: 0.25rem;
299
+ --spacing-2xs: 0.5rem;
300
+ --spacing-xs: 0.75rem;
301
+ --spacing-sm: 1rem;
302
+ --spacing-md: 1.5rem;
303
+ --spacing-lg: 2rem;
304
+ --spacing-xl: 3rem;
305
+ --spacing-2xl: 4.5rem;
306
+
307
+ /* Type scale — Tailwind reads --text-* */
308
+ --text-xs: 0.75rem;
309
+ --text-sm: 0.875rem;
310
+ --text-md: 1.125rem;
311
+ --text-lg: 1.375rem;
312
+ --text-xl: 1.75rem;
313
+ --text-2xl: 2.25rem;
314
+
315
+ /* Radius */
316
+ --radius-card: 0;
317
+ --radius-pill: 0;
318
+ --radius-input: 0;
319
+
320
+ /* Easings — Tailwind reads --ease-* */
321
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
322
+ --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
323
+ --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
324
+ }
325
+ ```
326
+
327
+ Notes:
328
+ - Tailwind v4 expects `--spacing-*` (with `ing`) for the spacing utilities. We mirror `--space-*` to `--spacing-*` so both names work.
329
+ - `--text-*` works as-is (Tailwind v4 picks them up for `text-md` etc.).
330
+ - `--font-*` becomes `font-display` / `font-body` / `font-outlier` utilities.
331
+ - The user's `tailwind.config.{ts,js}` may need `@source` directives but no `theme.extend` — v4 reads `@theme` directly.
332
+
333
+ ---
334
+
335
+ ## Format 3 — DTCG `tokens.json`
336
+
337
+ W3C Design Tokens Community Group format. For projects using Style Dictionary, Cobalt, or Token Studio. Path-based; OKLCH stays as a string value; `$type` is required.
338
+
339
+ ```json
340
+ {
341
+ "$schema": "https://design-tokens.github.io/community-group/format/",
342
+ "color": {
343
+ "paper": { "$value": "oklch(96% 0.018 80)", "$type": "color" },
344
+ "paper-2": { "$value": "oklch(94% 0.020 80)", "$type": "color" },
345
+ "paper-3": { "$value": "oklch(91% 0.022 80)", "$type": "color" },
346
+ "rule": { "$value": "oklch(86% 0.020 78)", "$type": "color" },
347
+ "rule-2": { "$value": "oklch(72% 0.022 78)", "$type": "color" },
348
+ "muted": { "$value": "oklch(50% 0.018 78)", "$type": "color" },
349
+ "neutral": { "$value": "oklch(38% 0.014 76)", "$type": "color" },
350
+ "ink-2": { "$value": "oklch(28% 0.012 75)", "$type": "color" },
351
+ "ink": { "$value": "oklch(15% 0.010 75)", "$type": "color" },
352
+ "accent": { "$value": "oklch(58% 0.16 60)", "$type": "color" },
353
+ "focus": { "$value": "oklch(58% 0.16 60)", "$type": "color" }
354
+ },
355
+ "font": {
356
+ "display": { "$value": "Fraunces, Cardo, ui-serif, Georgia, serif", "$type": "fontFamily" },
357
+ "body": { "$value": "Geist, ui-sans-serif, system-ui, sans-serif", "$type": "fontFamily" },
358
+ "outlier": { "$value": "Geist Mono, ui-monospace, monospace", "$type": "fontFamily" }
359
+ },
360
+ "size": {
361
+ "text-xs": { "$value": "0.75rem", "$type": "dimension" },
362
+ "text-sm": { "$value": "0.875rem", "$type": "dimension" },
363
+ "text-md": { "$value": "1.125rem", "$type": "dimension" },
364
+ "text-lg": { "$value": "1.375rem", "$type": "dimension" },
365
+ "text-xl": { "$value": "1.75rem", "$type": "dimension" },
366
+ "text-2xl": { "$value": "2.25rem", "$type": "dimension" },
367
+ "text-display": { "$value": "6rem", "$type": "dimension" }
368
+ },
369
+ "space": {
370
+ "3xs": { "$value": "0.25rem", "$type": "dimension" },
371
+ "2xs": { "$value": "0.5rem", "$type": "dimension" },
372
+ "xs": { "$value": "0.75rem", "$type": "dimension" },
373
+ "sm": { "$value": "1rem", "$type": "dimension" },
374
+ "md": { "$value": "1.5rem", "$type": "dimension" },
375
+ "lg": { "$value": "2rem", "$type": "dimension" },
376
+ "xl": { "$value": "3rem", "$type": "dimension" },
377
+ "2xl": { "$value": "4.5rem", "$type": "dimension" },
378
+ "3xl": { "$value": "7rem", "$type": "dimension" },
379
+ "4xl": { "$value": "11rem", "$type": "dimension" }
380
+ },
381
+ "duration": {
382
+ "micro": { "$value": "120ms", "$type": "duration" },
383
+ "short": { "$value": "220ms", "$type": "duration" },
384
+ "long": { "$value": "420ms", "$type": "duration" }
385
+ }
386
+ }
387
+ ```
388
+
389
+ Notes:
390
+ - DTCG accepts `oklch(...)` strings on modern tooling. If the user's pipeline doesn't, convert to hex (lossy — flag this) or to `color(oklch ...)` (CSS Color 4).
391
+ - The `text-display` value uses a fixed `6rem` for portability — the responsive `clamp(...)` belongs in CSS, not in token JSON.
392
+
393
+ ---
394
+
395
+ ## Format 4 — shadcn/ui CSS variables
396
+
397
+ shadcn/ui's component library reads CSS custom properties with specific names, in a specific shape. The values are **space-separated** triples (no `oklch()` wrapper, no commas) so shadcn can compose them with `oklch(<value> / <alpha>)`.
398
+
399
+ The translation from the canonical tokens:
400
+
401
+ ```css
402
+ :root {
403
+ --background: 96% 0.018 80; /* paper */
404
+ --foreground: 15% 0.010 75; /* ink */
405
+
406
+ --card: 94% 0.020 80; /* paper-2 */
407
+ --card-foreground: 15% 0.010 75; /* ink */
408
+
409
+ --popover: 94% 0.020 80; /* paper-2 */
410
+ --popover-foreground: 15% 0.010 75; /* ink */
411
+
412
+ --primary: 58% 0.16 60; /* accent */
413
+ --primary-foreground: 98% 0.012 75; /* accent-ink */
414
+
415
+ --secondary: 91% 0.022 80; /* paper-3 */
416
+ --secondary-foreground: 28% 0.012 75; /* ink-2 */
417
+
418
+ --muted: 86% 0.020 78; /* rule */
419
+ --muted-foreground: 50% 0.018 78; /* muted */
420
+
421
+ --accent: 58% 0.16 60; /* accent (same as primary in this taxonomy) */
422
+ --accent-foreground: 98% 0.012 75;
423
+
424
+ --destructive: 58% 0.20 25; /* warm red, fixed */
425
+ --destructive-foreground: 98% 0.012 75;
426
+
427
+ --border: 86% 0.020 78; /* rule */
428
+ --input: 86% 0.020 78; /* rule */
429
+ --ring: 58% 0.16 60; /* focus */
430
+
431
+ --radius: 0; /* radius-card; shadcn uses one value */
432
+ }
433
+ ```
434
+
435
+ Then the user's `tailwind.config.ts` (or v4 `@theme`) reads them with `oklch(var(--background))`. The accent → shadcn's primary is the canonical mapping; secondary → paper-3.
436
+
437
+ If the user wants a dark variant, mirror with dark theme tokens under a `.dark` selector (a dark catalog theme — e.g. [lumen Night Foundry](themes/lumen.md) — supplies the values).
438
+
439
+ ---
440
+
441
+ ## Output rule
442
+
443
+ When emitting exports:
444
+
445
+ 1. **Always** write `tokens.css` next to the page CSS (or in the project root for multi-file projects). Format 1.
446
+ 2. **On `design.md`-managed projects** (multi-page), embed all four formats inline in `design.md`'s Exports section. The user copies whichever they need.
447
+ 3. **On Tailwind projects** (detected at pre-flight), additionally surface the Tailwind `@theme` block in the build output so the user knows where to paste it (typically into `app/globals.css` or the equivalent).
448
+ 4. **Merge into an existing entry stylesheet; never overwrite it.** When the target project already has `app/globals.css` (or `src/index.css`, `src/styles/global.css`): keep its existing `@import "tailwindcss"` / `@tailwind base|components|utilities` directives exactly as they are, append the `:root` tokens and base rules *after* them, and keep any `@import "tokens.css"` at the very top of the file (CSS parses `@import` only before other rules, so a misplaced one is silently dropped and your tokens vanish). If the project already defines brand tokens (`--background`, `--foreground`, a Tailwind `@theme`), map the roles onto those names rather than adding a parallel set, or scope the tokens under a wrapper class. Replace the file outright only when the user has asked for a full takeover.
449
+
450
+ Don't blanket-emit tokens.json or shadcn variables on single-page projects — the user can copy them out of `design.md` if they upgrade to a multi-page system.
451
+
452
+ ---
453
+
454
+ ArkaOS bridge: when a project declares `design-system.yaml` (rule `design-system-locked`), mirror the emitted tokens into the token source named by the `[arka:design] tokens=` marker field; the per-project linter (`core.governance.design_system_lint`) stays advisory. The emitted file lives at the project root as `design.md`.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hallmark contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,191 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright
52
+ owner or by an individual or Legal Entity authorized to submit on
53
+ behalf of the copyright owner. For the purposes of this definition,
54
+ "submitted" means any form of electronic, verbal, or written
55
+ communication sent to the Licensor or its representatives, including
56
+ but not limited to communication on electronic mailing lists, source
57
+ code control systems, and issue tracking systems that are managed by,
58
+ or on behalf of, the Licensor for the purpose of discussing and
59
+ improving the Work, but excluding communication that is conspicuously
60
+ marked or otherwise designated in writing by the copyright owner as
61
+ "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025 Paul Bakaus
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.