@zooui/theme-forest 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,281 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Forest — specimen</title>
6
+ <link rel="stylesheet" href="styles.css">
7
+ <style>
8
+ body { padding: 0 0 64px; }
9
+ .wrap { max-width: 980px; margin: 0 auto; padding: 0 32px; }
10
+ section { padding: 32px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
11
+ .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
12
+ .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
13
+ .swatches { display: flex; gap: 6px; flex-wrap: wrap; }
14
+ .sw { display: flex; flex-direction: column; gap: 4px; min-width: 58px; }
15
+ .sw > i { height: 34px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--border-strong); }
16
+ .sw > span { font: var(--type-code-sm); color: var(--fg-muted); }
17
+ h2 { font: var(--type-h2); letter-spacing: var(--tracking-display); }
18
+ </style>
19
+ <style>
20
+ /* header: wrap rather than overflow; the scheme links shrink and scroll */
21
+ .ui-nav { flex-wrap: wrap; height: auto; min-height: var(--row-h); padding-top: 6px; padding-bottom: 6px; column-gap: var(--space-4); row-gap: 6px; }
22
+ .ui-nav > .links { min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
23
+ .ui-nav > .links::-webkit-scrollbar { display: none; }
24
+ .ui-nav > .right { flex: none; margin-left: auto; }
25
+ </style>
26
+ </head>
27
+ <body>
28
+ <nav class="ui-nav">
29
+ <a class="brand" href="#"><span class="br">[</span><span class="wm">pine</span><span class="br">]</span></a>
30
+ <div class="links"><a href="index.html" aria-current="page">Teal</a><a href="index-slate-cobalt.html">Cobalt</a><a href="index-graphite-violet.html">Violet</a><a href="index-paper-olive.html">Olive</a><a href="index-ink-indigo.html">Indigo</a><a href="index-ink-indigo-authored.html">Indigo+</a><a href="index-ember.html">Ember</a></div>
31
+ <div class="right">
32
+ <div class="ui-seg" role="group" aria-label="Corners">
33
+ <button type="button" data-corners-set="soft" aria-pressed="true">Soft</button>
34
+ <button type="button" data-corners-set="tight" aria-pressed="false">Tight</button>
35
+ <button type="button" data-corners-set="flat" aria-pressed="false">Flat</button>
36
+ </div>
37
+ <div class="ui-seg" role="group" aria-label="Theme">
38
+ <button type="button" data-set="light" aria-pressed="true">Light</button>
39
+ <button type="button" data-set="dark" aria-pressed="false">Dark</button>
40
+ <button type="button" data-set="system" aria-pressed="false">System</button>
41
+ </div>
42
+ </div>
43
+ </nav>
44
+
45
+ <div class="wrap">
46
+
47
+ <section>
48
+ <div class="ui-kicker">the system</div>
49
+ <h1 style="font: var(--type-display); letter-spacing: var(--tracking-display); max-width: 20ch;">Ink, one accent, and a terminal.</h1>
50
+ <p style="color: var(--fg-muted); max-width: 62ch;">Every component below is a class in <code class="ui-ident" data-kind="plain">styles.css</code>. Switch the theme in the header — nothing in the markup changes.</p>
51
+ </section>
52
+
53
+ <section>
54
+ <div class="ui-kicker">color · neutrals</div>
55
+ <div class="swatches">
56
+ <div class="sw"><i style="background:var(--pine-0)"></i><span>0</span></div>
57
+ <div class="sw"><i style="background:var(--pine-50)"></i><span>50</span></div>
58
+ <div class="sw"><i style="background:var(--pine-100)"></i><span>100</span></div>
59
+ <div class="sw"><i style="background:var(--pine-150)"></i><span>150</span></div>
60
+ <div class="sw"><i style="background:var(--pine-200)"></i><span>200</span></div>
61
+ <div class="sw"><i style="background:var(--pine-300)"></i><span>300</span></div>
62
+ <div class="sw"><i style="background:var(--pine-400)"></i><span>400</span></div>
63
+ <div class="sw"><i style="background:var(--pine-500)"></i><span>500</span></div>
64
+ <div class="sw"><i style="background:var(--pine-600)"></i><span>600</span></div>
65
+ <div class="sw"><i style="background:var(--pine-700)"></i><span>700</span></div>
66
+ <div class="sw"><i style="background:var(--pine-800)"></i><span>800</span></div>
67
+ <div class="sw"><i style="background:var(--pine-900)"></i><span>900</span></div>
68
+ <div class="sw"><i style="background:var(--pine-950)"></i><span>950</span></div>
69
+ </div>
70
+ <div class="ui-kicker">color · accent and signals</div>
71
+ <div class="swatches">
72
+ <div class="sw"><i style="background:var(--teal-100)"></i><span>teal 100</span></div>
73
+ <div class="sw"><i style="background:var(--teal-300)"></i><span>300</span></div>
74
+ <div class="sw"><i style="background:var(--teal-500)"></i><span>500</span></div>
75
+ <div class="sw"><i style="background:var(--teal-700)"></i><span>700</span></div>
76
+ <div class="sw"><i style="background:var(--teal-900)"></i><span>900</span></div>
77
+ <div class="sw"><i style="background:var(--amber-300)"></i><span>amber 300</span></div>
78
+ <div class="sw"><i style="background:var(--amber-500)"></i><span>500</span></div>
79
+ <div class="sw"><i style="background:var(--red-300)"></i><span>red 300</span></div>
80
+ <div class="sw"><i style="background:var(--red-500)"></i><span>500</span></div>
81
+ </div>
82
+ </section>
83
+
84
+ <section>
85
+ <div class="ui-kicker">type</div>
86
+ <div style="font: var(--type-h1); letter-spacing: var(--tracking-display);">Display — the display face, 500</div>
87
+ <h3>UI heading — the sans face, 600</h3>
88
+ <p style="max-width: 62ch;">Body copy at 14/1.5. The feed is over its storage quota, so new publishes are refused. Installs and restores continue as normal.</p>
89
+ <p style="font: var(--type-body-sm); color: var(--fg-muted); max-width: 62ch;">Small body, muted — table meta, timestamps, hints.</p>
90
+ <div style="font: var(--type-code);">$ pine build --watch <span style="color: var(--accent-text);">--token=tk_a8f3…c21e</span></div>
91
+ <div class="row" style="gap:8px;"><span class="ui-ident">@scope/package-name</span><span class="ui-ident" data-kind="version">2.3.1</span><span class="ui-ident" data-kind="hash">sha256:9f2a…e77b</span></div>
92
+ </section>
93
+
94
+ <section id="components">
95
+ <h2>Buttons</h2>
96
+ <div class="row">
97
+ <button class="ui-btn" data-variant="primary" type="button">Primary action</button>
98
+ <button class="ui-btn" data-variant="secondary" type="button">Secondary</button>
99
+ <button class="ui-btn" data-variant="ghost" type="button">Ghost</button>
100
+ <button class="ui-btn" data-variant="danger" type="button">Delete</button>
101
+ <button class="ui-btn" data-variant="primary" data-size="sm" type="button">Small</button>
102
+ <button class="ui-btn" data-variant="secondary" data-size="lg" type="button">Large</button>
103
+ <button class="ui-btn" data-variant="secondary" data-icon="true" type="button" title="More">⋯</button>
104
+ <button class="ui-btn" data-variant="secondary" type="button" disabled>Disabled</button>
105
+ </div>
106
+ </section>
107
+
108
+ <section>
109
+ <h2>Code</h2>
110
+ <div class="ui-code" data-wrap="true">
111
+ <span class="prompt">$</span>
112
+ <pre>pine deploy --source https://acme.example/t/<span class="tok">tk_a8f3c21e9d4b7f01</span>/main/
113
+ <span class="cmt"># then, as before:</span>
114
+ pine status</pre>
115
+ <button class="copy" type="button">Copy</button>
116
+ </div>
117
+ <div class="ui-code">
118
+ <span class="lang">.config</span>
119
+ <pre>registry=https://acme.example/t/tk_a8f3c21e9d4b7f01/npm/
120
+ always-auth=true</pre>
121
+ <button class="copy" type="button">Copy</button>
122
+ </div>
123
+ <p style="font: var(--type-body-sm); color: var(--fg-muted);">Inline: install <code class="ui-ident">@acme/ui-kit</code> at <code class="ui-ident" data-kind="version">2.3.1</code>.</p>
124
+ </section>
125
+
126
+ <section>
127
+ <h2>Meter and status</h2>
128
+ <div class="grid3">
129
+ <span class="ui-meter"><span class="track"><span class="fill" style="width:32%"></span><span class="mark" style="left:80%"></span></span><span class="value">3.2 / 10 GB</span></span>
130
+ <span class="ui-meter" data-level="warn"><span class="track"><span class="fill" style="width:91%"></span><span class="mark" style="left:80%"></span></span><span class="value">9.1 / 10 GB</span></span>
131
+ <span class="ui-meter" data-level="over" data-hatch="true"><span class="track"><span class="fill" style="width:100%"></span></span><span class="value">10 / 10 GB</span></span>
132
+ </div>
133
+ <span class="ui-meter" data-size="lg"><span class="track"><span class="fill" style="width:82%"></span><span class="mark" style="left:80%"></span></span><span class="value">41 / 50 GB</span></span>
134
+ <div class="row" style="gap:20px;">
135
+ <span class="ui-status" data-state="healthy"><span class="glyph"></span>Healthy</span>
136
+ <span class="ui-status" data-state="warn"><span class="glyph"></span>Near limit</span>
137
+ <span class="ui-status" data-state="suspended"><span class="glyph"></span>Stopped</span>
138
+ <span class="ui-status" data-state="unreachable"><span class="glyph"></span>Unreachable</span>
139
+ <span class="ui-status" data-state="quiet"><span class="glyph"></span>Quiet</span>
140
+ <span class="ui-status" data-state="warn" data-pill="true"><span class="glyph"></span>91% used</span>
141
+ </div>
142
+ </section>
143
+
144
+ <section>
145
+ <h2>Table</h2>
146
+ <div class="row">
147
+ <div class="ui-tabs" role="tablist">
148
+ <button role="tab" aria-selected="true" type="button">Packages</button>
149
+ <button role="tab" aria-selected="false" type="button">Tokens <span style="margin-left:6px;font:var(--type-code-sm);color:var(--fg-subtle)">3</span></button>
150
+ <button role="tab" aria-selected="false" type="button">Activity</button>
151
+ </div>
152
+ <span style="flex:1"></span>
153
+ <div class="ui-seg" role="group" aria-label="Filter">
154
+ <button type="button" aria-pressed="true">All</button>
155
+ <button type="button" aria-pressed="false">Recent</button>
156
+ <button type="button" aria-pressed="false">Large</button>
157
+ </div>
158
+ </div>
159
+ <table class="ui-table">
160
+ <thead><tr><th>Name</th><th>Latest</th><th class="num">Versions</th><th class="num">On disk</th><th>Last publish</th></tr></thead>
161
+ <tbody>
162
+ <tr><td><span class="ui-ident" data-kind="plain">@acme/ui-kit</span></td><td><span class="ui-ident" data-kind="version">2.3.1</span></td><td class="num">14</td><td class="num">48 MB</td><td style="color:var(--fg-muted)">2h ago</td></tr>
163
+ <tr><td><span class="ui-ident" data-kind="plain">Acme.Core</span></td><td><span class="ui-ident" data-kind="version">5.0.2</span></td><td class="num">31</td><td class="num">312 MB</td><td style="color:var(--fg-muted)">yesterday</td></tr>
164
+ <tr><td><span class="ui-ident" data-kind="plain">Acme.Installer</span></td><td><span class="ui-ident" data-kind="version">1.9.0</span></td><td class="num">6</td><td class="num">1.4 GB</td><td style="color:var(--fg-muted)">3d ago</td></tr>
165
+ </tbody>
166
+ </table>
167
+ </section>
168
+
169
+ <section>
170
+ <h2>Forms</h2>
171
+ <div class="grid3">
172
+ <div class="ui-field"><label for="f1">Name</label><input class="ui-input" id="f1" placeholder="acme-internal"><div class="hint">Lowercase, dashes.</div></div>
173
+ <div class="ui-field"><label for="f2">Quota</label><select class="ui-input ui-select" id="f2"><option>10 GB</option><option>50 GB</option><option>250 GB</option></select><div class="hint">Taken from the account pool.</div></div>
174
+ <div class="ui-field"><label for="f3">Token</label><input class="ui-input" data-mono="true" id="f3" value="tk_a8f3c21e9d4b7f01" aria-invalid="true"><div class="hint" data-error="true">This token was revoked.</div></div>
175
+ </div>
176
+ <div class="row">
177
+ <label style="display:inline-flex;align-items:center;gap:8px;font:var(--type-body-sm);cursor:pointer;"><button class="ui-switch" type="button" role="switch" aria-checked="true"></button><span>Email me at 90% of quota</span></label>
178
+ <span class="ui-tag" data-tone="accent">read</span>
179
+ <span class="ui-tag">publish</span>
180
+ <span class="ui-tag" data-tone="warn">near limit</span>
181
+ <span class="ui-tag" data-tone="danger">stopped</span>
182
+ <span class="ui-tag" data-tone="dark">ci-main</span>
183
+ <span class="ui-tip" tabindex="0"><span class="ui-tag">hover me</span><span class="bubble" role="tooltip">Last used 2h ago</span></span>
184
+ </div>
185
+ </section>
186
+
187
+ <section id="patterns">
188
+ <h2>Notices</h2>
189
+ <div class="ui-banner" data-tone="danger" role="alert">
190
+ <div></div>
191
+ <div class="body"><div class="title">Storage limit reached — 10.0 of 10 GB</div><p>New publishes are refused. Installs and restores keep working.</p></div>
192
+ <div class="actions"><button class="ui-btn" data-variant="secondary" data-size="sm" type="button">Prune</button><button class="ui-btn" data-variant="primary" data-size="sm" type="button">Upgrade</button></div>
193
+ </div>
194
+ <div class="ui-banner" data-tone="warn" role="status">
195
+ <div></div>
196
+ <div class="body"><div class="title">91% of quota used</div><p>About 9 days of headroom at the current rate.</p></div>
197
+ <div class="actions"><button class="ui-btn" data-variant="secondary" data-size="sm" type="button">Review</button></div>
198
+ </div>
199
+ <div class="row">
200
+ <div class="ui-toast" role="status">Token revoked.</div>
201
+ <div class="ui-toast" data-tone="warn" role="status">Version 2.3.0 removed.<button class="act" type="button">Undo</button></div>
202
+ </div>
203
+ </section>
204
+
205
+ <section>
206
+ <h2>Cards and overlays</h2>
207
+ <div style="display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;">
208
+ <section class="ui-card" data-elev="sm">
209
+ <div class="kicker">usage</div>
210
+ <div class="title">3.2 GB of 10 GB</div>
211
+ <span class="ui-meter"><span class="track"><span class="fill" style="width:32%"></span></span></span>
212
+ <div style="font:var(--type-body-sm);color:var(--fg-muted)">142 packages · 1,204 versions · +180 MB this month</div>
213
+ </section>
214
+ <div class="ui-dialog" role="dialog" data-tone="danger">
215
+ <div class="title">Delete acme-internal?</div>
216
+ <p style="font:var(--type-body-sm);color:var(--fg-muted)">142 packages and 3.2 GB will be removed. Every client pointed at this feed will fail on its next restore. This cannot be undone.</p>
217
+ <input class="ui-input" data-mono="true" placeholder="type acme-internal to confirm">
218
+ <div class="actions"><button class="ui-btn" data-variant="ghost" type="button">Cancel</button><button class="ui-btn" data-variant="danger" type="button">Delete</button></div>
219
+ </div>
220
+ </div>
221
+ </section>
222
+
223
+ <section style="border-bottom:0;">
224
+ <h2>The hatch</h2>
225
+ <div class="row" style="gap:16px;">
226
+ <div style="width:120px;height:52px;color:var(--fg);background:var(--hatch);border-radius:var(--radius-sm);"></div>
227
+ <div style="width:120px;height:52px;color:var(--warn);background:var(--hatch);border-radius:var(--radius-sm);"></div>
228
+ <div style="width:120px;height:52px;color:var(--danger);background:var(--hatch);border-radius:var(--radius-sm);"></div>
229
+ <p style="font:var(--type-body-sm);color:var(--fg-muted);max-width:34ch;">Consumed, over, or blocked. The system's one texture — it reads as “filled” without relying on color.</p>
230
+ </div>
231
+ </section>
232
+
233
+ </div>
234
+
235
+ <script>
236
+ (function () {
237
+ var seg = document.querySelector('.ui-seg[aria-label="Theme"]');
238
+ var stored = null;
239
+ try { stored = localStorage.getItem('pine-theme'); } catch (e) {}
240
+ function apply(v) {
241
+ var root = document.documentElement;
242
+ if (v === 'system') root.removeAttribute('data-theme'); else root.setAttribute('data-theme', v);
243
+ seg.querySelectorAll('button').forEach(function (b) { b.setAttribute('aria-pressed', b.dataset.set === v ? 'true' : 'false'); });
244
+ try { localStorage.setItem('pine-theme', v); } catch (e) {}
245
+ }
246
+ seg.addEventListener('click', function (e) { var b = e.target.closest('button'); if (b) apply(b.dataset.set); });
247
+ var cseg = document.querySelector('.ui-seg[aria-label="Corners"]');
248
+ var cstored = null;
249
+ try { cstored = localStorage.getItem('pine-corners'); } catch (e) {}
250
+ function corners(v) {
251
+ if (v === 'soft') document.documentElement.removeAttribute('data-corners');
252
+ else document.documentElement.setAttribute('data-corners', v);
253
+ cseg.querySelectorAll('button').forEach(function (b) { b.setAttribute('aria-pressed', b.dataset.cornersSet === v ? 'true' : 'false'); });
254
+ try { localStorage.setItem('pine-corners', v); } catch (e) {}
255
+ }
256
+ cseg.addEventListener('click', function (e) { var b = e.target.closest('button'); if (b) corners(b.dataset.cornersSet); });
257
+ corners(cstored || 'soft');
258
+ apply(stored || 'light');
259
+ document.querySelectorAll('.ui-code .copy').forEach(function (btn) {
260
+ btn.addEventListener('click', function () {
261
+ var pre = btn.parentElement.querySelector('pre');
262
+ try { navigator.clipboard.writeText(pre.innerText); } catch (e) {}
263
+ btn.textContent = 'Copied'; btn.dataset.done = 'true';
264
+ setTimeout(function () { btn.textContent = 'Copy'; delete btn.dataset.done; }, 1600);
265
+ });
266
+ });
267
+ document.querySelectorAll('.ui-switch').forEach(function (s) {
268
+ s.addEventListener('click', function () { s.setAttribute('aria-checked', s.getAttribute('aria-checked') === 'true' ? 'false' : 'true'); });
269
+ });
270
+ document.querySelectorAll('.ui-seg:not([aria-label="Theme"]), .ui-tabs').forEach(function (g) {
271
+ g.addEventListener('click', function (e) {
272
+ var b = e.target.closest('button'); if (!b) return;
273
+ var attr = g.classList.contains('ui-tabs') ? 'aria-selected' : 'aria-pressed';
274
+ g.querySelectorAll('button').forEach(function (x) { x.setAttribute(attr, 'false'); });
275
+ b.setAttribute(attr, 'true');
276
+ });
277
+ });
278
+ })();
279
+ </script>
280
+ </body>
281
+ </html>
@@ -0,0 +1,168 @@
1
+ # Forest — the design source
2
+
3
+ Forest is Zoo UI's first theme. This folder is its plain-CSS and Tailwind source, for pages without Nuxt. Forest is a quiet, dense interface system for developer-facing products. Ink on a green-tinted neutral ground, one teal accent, near-black code surfaces in both themes, and a single texture. Built for interfaces whose real job is *copying a value* and *checking that a thing arrived* — dashboards, consoles, package and infrastructure tools, admin backoffices — and it holds up on marketing pages for the same products.
4
+
5
+ Link one stylesheet and you have it:
6
+
7
+ ```html
8
+ <link rel="stylesheet" href="design/styles.css">
9
+ ```
10
+
11
+ On a page with no bundler, serve the package's `design/` and `schemes/` folders side by side (copy both from
12
+ `node_modules/@zooui/theme-forest/` into the served tree): `tokens.css` imports `../schemes/ramps.css`, and a scheme is
13
+ linked as `schemes/<slug>.css`. With a bundler, `@import "@zooui/theme-forest/design/styles.css"` instead.
14
+
15
+ Tailwind v4 instead:
16
+
17
+ ```css
18
+ @import "tailwindcss";
19
+ @import "@zooui/theme-forest/design/tailwind.css";
20
+ ```
21
+
22
+ Open `index.html` to see every component at real size, light and dark.
23
+
24
+ **Building a Nuxt product?** Use neither: extend `@zooui/theme-forest` (this package: `../`), which is Nuxt UI as
25
+ it ships with Forest's colors, ground and typefaces on top ([`../README.md`](../README.md)). (`@zooui/nuxt`, which it extends, is the theme-free base: a
26
+ product that extends it alone gets none of Forest's look.) It shares Forest's raw ramps and schemes (`../schemes/`) with this folder and
27
+ leaves the design source's semantic tokens and `ui-*` classes behind — see [In a Nuxt product](#in-a-nuxt-product).
28
+
29
+ ## Fundamentals
30
+
31
+ **Never hard-code a value the tokens carry.** Colors go through semantic names (`--fg-muted`, `--bg-raised`, `--accent-text`, `--border-strong`), never the raw ramps. Spacing is a 4px scale. Type is three composite styles per role, not ad-hoc sizes.
32
+
33
+ **Theming.** `data-theme="dark"` or `"light"` on `<html>`; omit the attribute to follow the OS. Every semantic token flips; component classes and Tailwind utilities need no dark variants.
34
+
35
+ **Rebranding.** Two edits, plus one optional dial on plain-HTML and Tailwind pages (`data-corners="flat"` squares every corner in the system; Nuxt products have no dial — see Radius below). Swap the `--teal-*` ramp for your accent hue (keep nine steps, keep the light steps light), and swap the three `--zoo-font-*` families (see Typefaces below). One constraint to check: step 500 is the primary button fill with a white label on the light theme, so it must clear 4.5:1 against white — green and teal hues need a deeper 500 than blues and violets do. The neutral ramp is deliberately near-gray, so most accents sit on it without further work. Leave the semantic layer alone.
36
+
37
+ ## Typefaces
38
+
39
+ No font files ship with Forest. The faces sit behind six hooks, the same ones the Nuxt theme uses: `--zoo-font-sans`, `--zoo-font-mono`, `--zoo-font-display` and their OpenType sets `--zoo-features-sans`, `--zoo-features-mono`, `--zoo-features-display`. `tokens.css` declares them in a cascade layer, naming Inter and JetBrains Mono with system fallbacks, so a page that loads no webfont renders in the system faces, and any unlayered override wins.
40
+
41
+ - **Inter and JetBrains Mono** (SIL Open Font License), self-hosted from fontsource: `npm install @fontsource-variable/inter @fontsource-variable/jetbrains-mono` (`@zooui/theme-forest` depends on both), then `@import` their CSS beside Forest's in a Tailwind or bundled entry: `@fontsource-variable/inter/opsz.css`, `@fontsource-variable/inter/opsz-italic.css`, `@fontsource-variable/jetbrains-mono/wght.css` and `@fontsource-variable/jetbrains-mono/wght-italic.css`. With no bundler, copy each package's CSS together with its `files/` folder into the served tree (the CSS loads its fonts from `./files/`) and `<link>` it beside `styles.css`. The hooks already name them.
42
+ - **Licensed faces**: faces that are licensed separately can ship as their own package that sets the six hooks and is loaded after Forest's stylesheet, so faces and sets switch together.
43
+
44
+ ## Schemes
45
+
46
+ Forest is a family system: sibling products share the neutrals, type, spacing and components, and differ by accent ramp. Give each product its own scheme, so two products don't end up with the same accent. The scheme files are the theme's own, in `../schemes/`; there is no second copy here. The same table is in `../README.md`; `scripts/check-schemes.test.mjs` fails when the two disagree.
47
+
48
+ The neutral ramp keeps its name in every scheme: `--pine-*` (and the `pine` palette in Tailwind) is Forest's gray ramp, because a pine is a forest tree. The accent ramp is `--teal-*`, whatever its hue.
49
+
50
+ | Scheme | Accent 500 | File | Specimen |
51
+ | --- | --- | --- | --- |
52
+ | Teal | `#117d72` | `../schemes/teal.css` (the default) | `index.html` |
53
+ | Slate · Cobalt | `#2a63d8` | `../schemes/slate-cobalt.css` | `index-slate-cobalt.html` |
54
+ | Graphite · Violet | `#8c4ec6` | `../schemes/graphite-violet.css` | `index-graphite-violet.html` |
55
+ | Paper · Olive | `#40701f` | `../schemes/paper-olive.css` | `index-paper-olive.html` |
56
+ | Ink · Indigo | `#5a51d4` | `../schemes/ink-indigo.css` | `index-ink-indigo.html` |
57
+ | Ember · Amber | `#a85410` | `../schemes/ember.css` | `index-ember.html` |
58
+
59
+ `index-ink-indigo-authored.html` is **not** a scheme — it's a worked example of pushing the tokens harder (mono-led interface, display/label contrast, asymmetric column, flat corners). Read it for technique; it is not a scheme to adopt.
60
+
61
+ Using a scheme: link `../schemes/<slug>.css` after `styles.css` (a Nuxt product imports `@zooui/theme-forest/schemes/<slug>.css` instead). Nothing else changes — and because the scheme lives in one file, editing an accent updates every product using it. See `ADOPTING.md` for the layering rule and how to make a change that reaches every product.
62
+
63
+ Each scheme also declares a **success and info pair** (`--success-*`, `--info-*`) chosen to sit at least 30° of OKLCH hue away from its accent, so neither reads as the primary. The design source's own semantic tokens don't read them yet (`--ok` is still the accent); the Nuxt layer does, for Nuxt UI's `success` and `info`. `../README.md` has the pairs and how they were chosen.
64
+
65
+ ## In a Nuxt product
66
+
67
+ A Nuxt product extends `@zooui/theme-forest` (which brings the theme-free base, `@zooui/nuxt`, with it; the base alone carries none of Forest's look) and writes Nuxt UI, not the design source: no `styles.css`, no `tailwind.css`, no `ui-*` classes and no `RECIPES.md` strings. The layer takes only Forest's raw ramps (`--pine-*`, `--teal-*`, `--amber-*`, `--red-*`) and the scheme files (`../schemes/`), and points Nuxt UI's colors at them; geometry — radius, spacing, shadows, motion, focus — is Nuxt UI's. Setup is in `../README.md`, "Using it".
68
+
69
+ What follows still holds for a Nuxt product — the voice, the contrast floors, status by shape, code dark in both themes — but the vocabulary is Nuxt UI's. The nearest names:
70
+
71
+ | Design source (token · Tailwind utility) | Nuxt UI |
72
+ | --- | --- |
73
+ | `--bg` · `bg-bg` — the page ground | not a utility: the layer paints `body` with Forest's paper. Don't paint a wrapper over it |
74
+ | `--bg-raised` · `bg-raised` | `bg-default` |
75
+ | `--bg-sunken` · `bg-sunken` | `bg-elevated` |
76
+ | `--fg` · `text-fg` | `text-highlighted` (headings, values) / `text-default` (body) |
77
+ | `--fg-muted` · `text-fg-muted` | `text-muted` |
78
+ | `--fg-subtle` · `text-fg-subtle` (never text) | `text-dimmed` — the same caution applies |
79
+ | `--border` · `border-border` | `border-default` |
80
+ | `--border-strong` · `border-border-strong` | `border-accented` |
81
+ | `--accent`, `--accent-text` · `bg-accent`, `text-accent-text` | `primary`: `bg-primary`, `text-primary`, `color="primary"` |
82
+ | `--ok`, `--warn`, `--danger` · `text-ok` … | `success` (the scheme's pair, not the accent), `warning`, `error` |
83
+ | `--bg-code`, `--fg-on-code` · `bg-code`, `text-on-code` | no Nuxt UI equivalent: `<ZCodeBlock>` |
84
+ | `--radius-*`, `data-corners` · `rounded-*` | Nuxt UI's `--ui-radius` (see Radius below) |
85
+ | `type-h1` … `type-body-sm`, `features-*` | Tailwind sizes and weights (`font-display` for display); the face's OpenType set comes with the face |
86
+ | `ui-*` classes, `RECIPES.md` strings | Nuxt UI components, plus the layer's `Z*` components for what Nuxt UI lacks |
87
+
88
+ ## Contrast — which inks may carry text
89
+
90
+ The ramp supports **two** legible text tiers, not three. Both themes:
91
+
92
+ | Token | Use | Floor |
93
+ | --- | --- | --- |
94
+ | `--fg` | primary text | passes everywhere |
95
+ | `--fg-muted` | secondary and explanatory prose | ≥4.5:1 on `--bg`, `--bg-sunken`, `--bg-raised`, `--bg-code` |
96
+ | `--fg-subtle` | **never text** — rules, tick outlines, meter marks, disabled chrome | 2.9–3.7:1 · fails |
97
+
98
+ `--fg-subtle` looks like a third tier and is not one. It cannot reach 4.5:1 on any surface in
99
+ either theme, and it cannot be raised: the only value that clears the floor is `--pine-400`,
100
+ which is already `--fg-muted`. **To make prose quieter, reduce its size, not its contrast** —
101
+ 11.5px `--fg-muted` against 13px body reads as secondary and stays legible. That is also how
102
+ the rest of the system expresses rank.
103
+
104
+ One surface is not in that table on purpose: **`--bg-code-inline` takes `--fg` only.** It is a
105
+ mid-tone chip, so `--fg-muted` on it is 3.67:1 — this is why `.ui-ident[data-kind="hash"]`
106
+ separates itself by weight and tracking rather than by color.
107
+
108
+ Two habits follow: don't carry meaning in a color alone (status is shape-coded for the same
109
+ reason), and don't tint text that already sits on a tint.
110
+
111
+ ## Voice
112
+
113
+ - Plain, declarative, competent. State the fact, then the action: “Storage limit reached — 10.0 of 10 GB. Publishes are refused; installs keep working.”
114
+ - Sentence case everywhere, including buttons and table headers (the kicker style renders headers uppercase for you).
115
+ - Second person, no first-person-plural chattiness. No exclamation marks, no emoji, no “Oops”.
116
+ - Errors name the thing that failed and the request id. Irreversible actions say “This cannot be undone” in the body, not just on the button.
117
+ - Anything a person might paste is monospace and copyable. Prefer showing the line to describing it.
118
+ - Numbers are exact and tabular: “9.1 / 10 GB”, “142 packages · 1,204 versions”.
119
+
120
+ ## Visual foundations
121
+
122
+ - **Color.** A green-tinted neutral ramp (“pine”, `--pine-0…950`) with one accent, teal, used for the primary action, links, focus, and highlighted values inside code. Amber means *near a limit*, red means *danger or over*; neither is ever decorative. Everything else is ink on ground.
123
+ - **Type.** Three roles, each behind a hook: **display** (`--zoo-font-display`, 500 weight, −0.025em, headlines only), **UI** (`--zoo-font-sans`; use the named weights 400/500/600 and let `font-optical-sizing: auto` use an optical-size axis where the face has one), **code** (`--zoo-font-mono`, every identifier, kicker and code block). Each role's OpenType set travels with its face in `--zoo-features-*`: Inter `normal`, JetBrains Mono `"calt" 0` (code ligatures off so pasted text reads literally); tables add tabular figures. See [Typefaces](#typefaces).
124
+ - **Code is dark in both themes.** `--bg-code` is near-black even on the light theme. Code blocks are the signature surface; they should look like a terminal, not like a quote.
125
+ - **Spacing.** 4px scale. Rows 40px, dense 32. Controls 32, large 40. Content max 1120.
126
+ - **Radius.** 3/5/8/12 — soft, never pill-shaped. Pills only for status chips. The whole scale is driven by one dial, `--radius-scale`: leave it at `1` for soft corners, `data-corners="tight"` for half radius (1.5/2.5/4/6 — reads as a chamfer rather than a curve), or `data-corners="flat"` for square edges. Any of the three can go on `<html>` or on a single container. Two things deliberately ignore it — the status glyphs and the monogram tiles — because their shape *is* the information. The dial is the design source's, for plain-HTML and Tailwind pages: in a Nuxt product corners are Nuxt UI's `--ui-radius` (4px base, close to `tight`), set by the product if it wants squarer ones — an open decision in `packages/nuxt/docs/testing.md`.
127
+ - **Rules & edges.** 1px `--border`; table header rules use `--border-strong`. Elevation is an edge plus a soft ambient shadow, never stacked shadows.
128
+ - **The hatch.** `--hatch` (45° 1px stripes in `currentColor`) is the one texture: a consumed meter, a notice's left edge, a blocked region. It reads as “filled” without relying on color.
129
+ - **Status by shape.** Circle = healthy, triangle = near limit, square = stopped, dashed ring = unreachable, hollow ring = quiet. Color reinforces; shape carries.
130
+ - **Motion.** 120–180ms ease-out, on color and width only. No bounces, no entrance animation.
131
+ - **Focus.** A 2px accent ring offset by 2px of ground. Never the browser default.
132
+ - **Imagery.** None by default. The hero object on a marketing page is a code block, not an illustration.
133
+ - **Layout.** Flush left. Detail pages are a content column plus a narrow right rail. Tables full-width; expansion rows tinted `--bg-sunken`.
134
+
135
+ ## Do
136
+
137
+ - Let the density work: dense rows, tabular numbers, exact values.
138
+ - Use one accent, sparingly, and let the neutrals carry the page.
139
+ - Put every pasteable value in mono, with a copy affordance.
140
+ - Reinforce state with shape, so the UI survives grayscale and color-blindness.
141
+
142
+ ## Don't
143
+
144
+ - Don't tint large areas with the accent, or introduce a second hue.
145
+ - Don't use color as the only carrier of meaning.
146
+ - Don't soften code surfaces to match the page — they stay near-black.
147
+ - Don't add a shadow where an edge will do.
148
+
149
+ ## Components
150
+
151
+ Classes are `ui-*`. Every one is in `index.html`, and `RECIPES.md` gives the equivalent Tailwind utility string (plus templ snippets).
152
+
153
+ Button · Input · Select · Switch · Segmented · Tag · Kicker · Card · Tabs · Table · Dialog · Drawer · Toast · Tooltip · Banner · Nav — plus the ones that make this system what it is: **CodeBlock** (inline / single copyable line / multi-line block, with a highlighted secret), **Identifier** (a literal string someone will paste), **Meter** (usage against a limit, amber from 80%, hatched red at 100%) and **Status** (shape per state).
154
+
155
+ Product-specific parts belong in your app, not here; `RECIPES.md` ends with two worked examples of extending the system without breaking it.
156
+
157
+ ## Files
158
+
159
+ - `styles.css` — the only stylesheet: tokens, base element styles, and the `ui-*` component layer.
160
+ - `tailwind.css` — Tailwind v4 `@theme` mapping, `@utility type-*`, `hatch`, `focus-ring`, and a `dark:` variant keyed to `data-theme`.
161
+ - `RECIPES.md` — every component as a utility string, with templ snippets.
162
+ - `index.html` — the specimen sheet. Open it. `index-*.html` are alternate accent schemes (each overrides only the two ramps); `index-ink-indigo-authored.html` is a deliberately opinionated variant — mono-led interface, 76px display against 10px labels, a 640px asymmetric column, zero radius, edges instead of shadows — kept as a reference for how far the tokens stretch when you want the result to look authored rather than safe.
163
+ - `../schemes/` — one file per accent scheme; the only thing a product overrides. The theme's own folder, shared by the Nuxt theme and this design source, with `ramps.css` (the raw ramps `tokens.css` imports).
164
+ - `ADOPTING.md` — the three ways to consume Forest, the three-layer rule, and how to make a change that reaches every product.
165
+ - `CHANGELOG.md` — the design source's changelog; it versions with `@zooui/theme-forest`.
166
+ - The Nuxt layers are not here: Forest's is `@zooui/theme-forest` (`../`, the package this folder is part of), over the theme-free `@zooui/nuxt` in `packages/nuxt/`.
167
+ - `reference/` — React reference components (`*.jsx` + `.d.ts` + `.prompt.md`, from `Button` to `EcosystemMark` and `TokenReveal`) and two specimen cards that render them (`core.card.html`, `core-dark.card.html`) on `styles.css`. Read them for behavior and props; nothing imports them, and the package does not ship them. The Nuxt layer's `Z*` components are their counterparts.
168
+ - `SKILL.md` — agent skill wrapper.
@@ -0,0 +1,16 @@
1
+ /* ======================================================================
2
+ Forest — a portable interface system (Zoo UI's Forest theme, design source).
3
+
4
+ Convenience entry: tokens + the ui-* component layer.
5
+
6
+ Tailwind apps → import tailwind.css instead (tokens only, no ui-* layer)
7
+ No build step → link this file and use the ui-* classes
8
+ (Go templ, plain HTML, email)
9
+
10
+ See ADOPTING.md — pick ONE route per application, never both.
11
+ ====================================================================== */
12
+ /* Unlayered on purpose: this entry is for consumers with no Tailwind, so there
13
+ are no utilities for the base rules to override. Tailwind apps import
14
+ tailwind.css instead, which layers tokens.css into @layer base. */
15
+ @import "./tokens.css";
16
+ @import "./components.css";