remarque-tokens 0.11.0 → 0.12.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,35 @@ All notable changes to `remarque-tokens` are documented here. Token value
4
4
  changes always state the design rationale — downstream sites pin against
5
5
  these entries when syncing.
6
6
 
7
+ ## 0.12.0 — 2026-07-23
8
+
9
+ TypeScript types and a README "Used By" section (closes #34, closes #35).
10
+
11
+ ### Added
12
+ - **`tokens.d.ts`** — generated from `tokens.json` by `scripts/tokens-json.mjs`
13
+ (regenerates in the same run as `tokens.json`; `--check` verifies both are
14
+ fresh, wired into the same `deploy.yml` CI step). Ships literal-union types
15
+ for every token name (`RemarqueCoreToken`, `RemarquePaletteToken`,
16
+ `RemarqueToken`), a `RemarqueCssVar` template-literal type
17
+ (`` `--${RemarqueToken}` ``), structural interfaces matching tokens.json's
18
+ actual shape (`RemarqueTokensFile`, `RemarqueCoreTokenEntry`,
19
+ `RemarquePaletteTokenEntry`), a `RemarqueTokenValues` interface with the
20
+ live value of every token as a literal type, and an ambient
21
+ `declare module 'remarque-tokens/tokens.json'` so
22
+ `import tokens from 'remarque-tokens/tokens.json'` is precisely typed
23
+ without depending on the consumer's `resolveJsonModule`. This package has
24
+ no JS entry point — the types exist for editors/TS consumers who author
25
+ Remarque token names or read `tokens.json` programmatically.
26
+ `package.json` wires `types`, an `./tokens.d.ts` export, and a `types`
27
+ condition on the existing `./tokens.json` export; `scripts/test-types.mjs`
28
+ gates token-name coverage, the exported type surface, and the
29
+ `package.json` wiring (string assertions, no `typescript` dependency
30
+ added).
31
+ - **README "Used By" section** — the demo site, `williamzujkowski.github.io`
32
+ (core-tier npm consumer), `tsundoku` (full-palette npm consumer, custom
33
+ accent hue), and `remarque-starter` (template repo), one line each on how
34
+ they consume the package.
35
+
7
36
  ## 0.11.0 — 2026-07-23
8
37
 
9
38
  Palette golden gate: the default palette is now bound, by CI, to the
package/README.md CHANGED
@@ -19,6 +19,13 @@ Most developer sites inherit the visual language of SaaS dashboards or component
19
19
  - **Self-hosted fonts** — no Google CDN dependency. Strict CSP. GDPR-compliant.
20
20
  - **AI-native** — designed to be consumed by Claude Code, Cursor, Copilot, and other AI coding tools with zero aesthetic drift.
21
21
 
22
+ ## Used By
23
+
24
+ - **[Remarque demo site](https://williamzujkowski.github.io/remarque/)** — the `site/` directory in this repo; reference implementation of all four demoed archetypes, deployed to GitHub Pages.
25
+ - **[williamzujkowski.github.io](https://github.com/williamzujkowski/williamzujkowski.github.io)** — flagship personal site; core-tier npm consumer (`remarque-tokens/core` from npm, hand-authored palette layer on top).
26
+ - **[tsundoku](https://github.com/williamzujkowski/tsundoku)** — bookshelf/reading-log site; full-palette npm consumer, custom terracotta "book cloth" accent hue over the default palette for its card-catalog identity.
27
+ - **[remarque-starter](https://github.com/williamzujkowski/remarque-starter)** — template repo; Astro scaffold pulling `remarque-tokens` from npm with the audit wired into CI, meant to be forked.
28
+
22
29
  ## Install
23
30
 
24
31
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remarque-tokens",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "homepage": "https://williamzujkowski.github.io/remarque/",
23
23
  "main": "tokens.css",
24
+ "types": "./tokens.d.ts",
24
25
  "bin": {
25
26
  "remarque-audit": "scripts/audit.mjs",
26
27
  "remarque-drift": "scripts/drift-check.mjs",
@@ -43,7 +44,10 @@
43
44
  }
44
45
  },
45
46
  "exports": {
46
- ".": "./tokens.css",
47
+ ".": {
48
+ "types": "./tokens.d.ts",
49
+ "default": "./tokens.css"
50
+ },
47
51
  "./tokens": "./tokens.css",
48
52
  "./tokens.css": "./tokens.css",
49
53
  "./core": "./tokens-core.css",
@@ -55,7 +59,11 @@
55
59
  "./tailwind": "./tailwind.config.js",
56
60
  "./theme.css": "./theme.css",
57
61
  "./theme": "./theme.css",
58
- "./tokens.json": "./tokens.json",
62
+ "./tokens.json": {
63
+ "types": "./tokens.d.ts",
64
+ "default": "./tokens.json"
65
+ },
66
+ "./tokens.d.ts": "./tokens.d.ts",
59
67
  "./prose": "./prose.css",
60
68
  "./prose.css": "./prose.css",
61
69
  "./print": "./print.css",
@@ -80,6 +88,7 @@
80
88
  "CHANGELOG.md",
81
89
  "theme.css",
82
90
  "tokens.json",
91
+ "tokens.d.ts",
83
92
  "scripts/tokens-json.mjs",
84
93
  "prose.css",
85
94
  "print.css",
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
- * Generates tokens.json (W3C design-tokens flavored) FROM the CSS —
4
- * tokens-core.css and tokens-palette.css remain the single source of
5
- * truth; this file is derived output for tooling and AI agents.
3
+ * Generates tokens.json (W3C design-tokens flavored) and tokens.d.ts
4
+ * (TypeScript literal-union types) FROM the CSS — tokens-core.css and
5
+ * tokens-palette.css remain the single source of truth; both files
6
+ * here are derived output for tooling, AI agents, and TS editors.
6
7
  *
7
- * node scripts/tokens-json.mjs # (re)write tokens.json
8
- * node scripts/tokens-json.mjs --check # exit 1 if tokens.json is stale (CI)
8
+ * node scripts/tokens-json.mjs # (re)write tokens.json + tokens.d.ts
9
+ * node scripts/tokens-json.mjs --check # exit 1 if either is stale (CI)
9
10
  *
10
11
  * Multi-theme values use per-token light/dark groups with $value on each
11
12
  * (the W3C spec has no native theming; this follows its $extensions
@@ -70,14 +71,159 @@ for (const [name, value] of Object.entries(lightDecls)) {
70
71
 
71
72
  const json = JSON.stringify(out, null, 2) + '\n';
72
73
 
74
+ /* ── tokens.d.ts ──────────────────────────────────────────────────────
75
+ * Literal-union types + a typed shape for tokens.json, generated from
76
+ * the same in-memory `out` object that produces tokens.json — so the
77
+ * two derived files can never disagree with each other, only (briefly,
78
+ * until regenerated) with the CSS. The package ships no JS entry point;
79
+ * this file exists purely for editors/TS consumers that either author
80
+ * Remarque token names (`RemarqueToken`, `RemarqueCssVar`) or read
81
+ * tokens.json programmatically (`RemarqueTokensFile`, wired via the
82
+ * ambient `declare module 'remarque-tokens/tokens.json'` below).
83
+ */
84
+ function tsLiteral(value) {
85
+ return typeof value === 'number' ? String(value) : JSON.stringify(value);
86
+ }
87
+
88
+ function renderDts(tokens, pkgVersion) {
89
+ const coreNames = Object.keys(tokens.core);
90
+ const paletteNames = Object.keys(tokens.palette);
91
+
92
+ const coreUnion = coreNames.map((n) => ` | '${n}'`).join('\n');
93
+ const paletteUnion = paletteNames.map((n) => ` | '${n}'`).join('\n');
94
+
95
+ const coreValues = coreNames
96
+ .map((n) => ` readonly '${n}': ${tsLiteral(tokens.core[n].$value)};`)
97
+ .join('\n');
98
+ const paletteValues = paletteNames
99
+ .map((n) => {
100
+ const t = tokens.palette[n];
101
+ return ` readonly '${n}': {\n readonly light: ${tsLiteral(t.light.$value)};\n readonly dark: ${tsLiteral(t.dark.$value)};\n };`;
102
+ })
103
+ .join('\n');
104
+
105
+ return `/*
106
+ * Remarque design tokens — GENERATED from tokens.json by
107
+ * scripts/tokens-json.mjs (v${pkgVersion}). Do not edit — the CSS
108
+ * (tokens-core.css + tokens-palette.css) is the source of truth;
109
+ * tokens.json is the intermediate machine-readable form this file is
110
+ * generated from. Regenerate with: node scripts/tokens-json.mjs
111
+ *
112
+ * This package has no JS entry point — these types exist for editors
113
+ * and TypeScript consumers that either author Remarque token names
114
+ * (RemarqueToken, RemarqueCssVar) or read tokens.json programmatically
115
+ * (RemarqueTokensFile / RemarqueTokenValues, and the ambient module
116
+ * declaration below for \`import tokens from 'remarque-tokens/tokens.json'\`).
117
+ */
118
+
119
+ /** All core-tier token names (tokens-core.css). Never overridden. */
120
+ export type RemarqueCoreToken =
121
+ ${coreUnion};
122
+
123
+ /** All palette-tier token names (tokens-palette.css). The sanctioned personalization surface. */
124
+ export type RemarquePaletteToken =
125
+ ${paletteUnion};
126
+
127
+ /** Every Remarque token name, core + palette. */
128
+ export type RemarqueToken = RemarqueCoreToken | RemarquePaletteToken;
129
+
130
+ /** A Remarque token name as its CSS custom-property form, e.g. \`--text-body\`. */
131
+ export type RemarqueCssVar = \`--${'$'}{RemarqueToken}\`;
132
+
133
+ /** W3C design-tokens \`$type\` values used across tokens.json. */
134
+ export type RemarqueTokenType =
135
+ | 'color'
136
+ | 'dimension'
137
+ | 'number'
138
+ | 'fontFamily'
139
+ | 'fontWeight'
140
+ | 'duration'
141
+ | 'string';
142
+
143
+ /** Shape of a single core-tier entry in tokens.json's \`core\` map. */
144
+ export interface RemarqueCoreTokenEntry {
145
+ readonly $value: string | number;
146
+ readonly $type: RemarqueTokenType;
147
+ }
148
+
149
+ /** Shape of one theme side (\`light\`/\`dark\`) of a palette-tier entry. */
150
+ export interface RemarquePaletteTokenSideValue {
151
+ readonly $value: string | number;
152
+ readonly $extensions?: {
153
+ readonly remarque?: {
154
+ readonly inheritedFromLight?: boolean;
155
+ };
156
+ };
157
+ }
158
+
159
+ /** Shape of a single palette-tier entry in tokens.json's \`palette\` map. */
160
+ export interface RemarquePaletteTokenEntry {
161
+ readonly $type: RemarqueTokenType;
162
+ readonly light: RemarquePaletteTokenSideValue;
163
+ readonly dark: RemarquePaletteTokenSideValue;
164
+ }
165
+
166
+ /**
167
+ * Typed shape of tokens.json's default export — the whole generated
168
+ * file, structurally. Use this when reading tokens.json dynamically
169
+ * (\`JSON.parse\`, a bundler JSON import without the ambient module
170
+ * below applying, etc).
171
+ */
172
+ export interface RemarqueTokensFile {
173
+ readonly $description: string;
174
+ readonly $extensions: {
175
+ readonly remarque: {
176
+ readonly version: string;
177
+ readonly tiers: {
178
+ readonly core: string;
179
+ readonly palette: string;
180
+ };
181
+ };
182
+ };
183
+ readonly core: { readonly [K in RemarqueCoreToken]: RemarqueCoreTokenEntry };
184
+ readonly palette: { readonly [K in RemarquePaletteToken]: RemarquePaletteTokenEntry };
185
+ }
186
+
187
+ /**
188
+ * The actual current value of every token, as literal types — precise
189
+ * autocomplete for "what is \`--text-body\` right now", not just "what
190
+ * are its shape and type". Regenerated alongside tokens.json, so these
191
+ * literals track the live CSS across releases.
192
+ */
193
+ export interface RemarqueTokenValues {
194
+ readonly core: {
195
+ ${coreValues}
196
+ };
197
+ readonly palette: {
198
+ ${paletteValues}
199
+ };
200
+ }
201
+
202
+ // Precise types for \`import tokens from 'remarque-tokens/tokens.json'\`
203
+ // (and any other bundler-JSON-import path resolving through this
204
+ // subpath) without depending on the consumer's \`resolveJsonModule\`.
205
+ declare module 'remarque-tokens/tokens.json' {
206
+ const tokens: RemarqueTokensFile;
207
+ export default tokens;
208
+ }
209
+ `;
210
+ }
211
+
212
+ const dts = renderDts(out, version);
213
+
73
214
  if (process.argv.includes('--check')) {
74
- const current = existsSync('tokens.json') ? readFileSync('tokens.json', 'utf8') : '';
75
- if (current !== json) {
76
- console.error('tokens.json is stale run: node scripts/tokens-json.mjs');
215
+ const currentJson = existsSync('tokens.json') ? readFileSync('tokens.json', 'utf8') : '';
216
+ const currentDts = existsSync('tokens.d.ts') ? readFileSync('tokens.d.ts', 'utf8') : '';
217
+ const staleJson = currentJson !== json;
218
+ const staleDts = currentDts !== dts;
219
+ if (staleJson || staleDts) {
220
+ if (staleJson) console.error('tokens.json is stale — run: node scripts/tokens-json.mjs');
221
+ if (staleDts) console.error('tokens.d.ts is stale — run: node scripts/tokens-json.mjs');
77
222
  process.exit(1);
78
223
  }
79
- console.log('tokens.json is fresh ✓');
224
+ console.log('tokens.json and tokens.d.ts are fresh ✓');
80
225
  } else {
81
226
  writeFileSync('tokens.json', json);
82
- console.log(`tokens.json written — ${Object.keys(out.core).length} core + ${Object.keys(out.palette).length} palette tokens (v${version})`);
227
+ writeFileSync('tokens.d.ts', dts);
228
+ console.log(`tokens.json + tokens.d.ts written — ${Object.keys(out.core).length} core + ${Object.keys(out.palette).length} palette tokens (v${version})`);
83
229
  }
package/tokens.d.ts ADDED
@@ -0,0 +1,299 @@
1
+ /*
2
+ * Remarque design tokens — GENERATED from tokens.json by
3
+ * scripts/tokens-json.mjs (v0.12.0). Do not edit — the CSS
4
+ * (tokens-core.css + tokens-palette.css) is the source of truth;
5
+ * tokens.json is the intermediate machine-readable form this file is
6
+ * generated from. Regenerate with: node scripts/tokens-json.mjs
7
+ *
8
+ * This package has no JS entry point — these types exist for editors
9
+ * and TypeScript consumers that either author Remarque token names
10
+ * (RemarqueToken, RemarqueCssVar) or read tokens.json programmatically
11
+ * (RemarqueTokensFile / RemarqueTokenValues, and the ambient module
12
+ * declaration below for `import tokens from 'remarque-tokens/tokens.json'`).
13
+ */
14
+
15
+ /** All core-tier token names (tokens-core.css). Never overridden. */
16
+ export type RemarqueCoreToken =
17
+ | 'text-display'
18
+ | 'text-title'
19
+ | 'text-section'
20
+ | 'text-body-lg'
21
+ | 'text-body'
22
+ | 'text-meta'
23
+ | 'text-micro'
24
+ | 'leading-display'
25
+ | 'leading-title'
26
+ | 'leading-section'
27
+ | 'leading-body'
28
+ | 'leading-meta'
29
+ | 'tracking-display'
30
+ | 'tracking-title'
31
+ | 'tracking-body'
32
+ | 'tracking-meta'
33
+ | 'tracking-caps'
34
+ | 'weight-regular'
35
+ | 'weight-medium'
36
+ | 'weight-semibold'
37
+ | 'space-1'
38
+ | 'space-2'
39
+ | 'space-3'
40
+ | 'space-4'
41
+ | 'space-5'
42
+ | 'space-6'
43
+ | 'space-7'
44
+ | 'space-8'
45
+ | 'space-9'
46
+ | 'space-10'
47
+ | 'space-11'
48
+ | 'space-12'
49
+ | 'content-standard'
50
+ | 'content-wide'
51
+ | 'radius-sm'
52
+ | 'radius-md'
53
+ | 'radius-none'
54
+ | 'border-width'
55
+ | 'border-style'
56
+ | 'motion-fast'
57
+ | 'motion-normal'
58
+ | 'motion-easing';
59
+
60
+ /** All palette-tier token names (tokens-palette.css). The sanctioned personalization surface. */
61
+ export type RemarquePaletteToken =
62
+ | 'font-display'
63
+ | 'font-body'
64
+ | 'font-mono'
65
+ | 'content-reading'
66
+ | 'weight-display'
67
+ | 'color-bg'
68
+ | 'color-bg-subtle'
69
+ | 'color-fg'
70
+ | 'color-fg-muted'
71
+ | 'color-muted'
72
+ | 'color-border'
73
+ | 'color-border-bold'
74
+ | 'color-surface'
75
+ | 'color-accent'
76
+ | 'color-accent-hover'
77
+ | 'color-accent-subtle'
78
+ | 'color-link'
79
+ | 'color-link-hover'
80
+ | 'color-focus-ring'
81
+ | 'color-selection-bg'
82
+ | 'color-selection-fg'
83
+ | 'color-code-bg'
84
+ | 'color-code-fg';
85
+
86
+ /** Every Remarque token name, core + palette. */
87
+ export type RemarqueToken = RemarqueCoreToken | RemarquePaletteToken;
88
+
89
+ /** A Remarque token name as its CSS custom-property form, e.g. `--text-body`. */
90
+ export type RemarqueCssVar = `--${RemarqueToken}`;
91
+
92
+ /** W3C design-tokens `$type` values used across tokens.json. */
93
+ export type RemarqueTokenType =
94
+ | 'color'
95
+ | 'dimension'
96
+ | 'number'
97
+ | 'fontFamily'
98
+ | 'fontWeight'
99
+ | 'duration'
100
+ | 'string';
101
+
102
+ /** Shape of a single core-tier entry in tokens.json's `core` map. */
103
+ export interface RemarqueCoreTokenEntry {
104
+ readonly $value: string | number;
105
+ readonly $type: RemarqueTokenType;
106
+ }
107
+
108
+ /** Shape of one theme side (`light`/`dark`) of a palette-tier entry. */
109
+ export interface RemarquePaletteTokenSideValue {
110
+ readonly $value: string | number;
111
+ readonly $extensions?: {
112
+ readonly remarque?: {
113
+ readonly inheritedFromLight?: boolean;
114
+ };
115
+ };
116
+ }
117
+
118
+ /** Shape of a single palette-tier entry in tokens.json's `palette` map. */
119
+ export interface RemarquePaletteTokenEntry {
120
+ readonly $type: RemarqueTokenType;
121
+ readonly light: RemarquePaletteTokenSideValue;
122
+ readonly dark: RemarquePaletteTokenSideValue;
123
+ }
124
+
125
+ /**
126
+ * Typed shape of tokens.json's default export — the whole generated
127
+ * file, structurally. Use this when reading tokens.json dynamically
128
+ * (`JSON.parse`, a bundler JSON import without the ambient module
129
+ * below applying, etc).
130
+ */
131
+ export interface RemarqueTokensFile {
132
+ readonly $description: string;
133
+ readonly $extensions: {
134
+ readonly remarque: {
135
+ readonly version: string;
136
+ readonly tiers: {
137
+ readonly core: string;
138
+ readonly palette: string;
139
+ };
140
+ };
141
+ };
142
+ readonly core: { readonly [K in RemarqueCoreToken]: RemarqueCoreTokenEntry };
143
+ readonly palette: { readonly [K in RemarquePaletteToken]: RemarquePaletteTokenEntry };
144
+ }
145
+
146
+ /**
147
+ * The actual current value of every token, as literal types — precise
148
+ * autocomplete for "what is `--text-body` right now", not just "what
149
+ * are its shape and type". Regenerated alongside tokens.json, so these
150
+ * literals track the live CSS across releases.
151
+ */
152
+ export interface RemarqueTokenValues {
153
+ readonly core: {
154
+ readonly 'text-display': "clamp(2.75rem, 5.5vw, 5rem)";
155
+ readonly 'text-title': "clamp(1.875rem, 3.5vw, 3rem)";
156
+ readonly 'text-section': "clamp(1.375rem, 2.25vw, 2rem)";
157
+ readonly 'text-body-lg': "1.1875rem";
158
+ readonly 'text-body': "1.0625rem";
159
+ readonly 'text-meta': "0.875rem";
160
+ readonly 'text-micro': "0.8125rem";
161
+ readonly 'leading-display': 1.05;
162
+ readonly 'leading-title': 1.15;
163
+ readonly 'leading-section': 1.2;
164
+ readonly 'leading-body': 1.75;
165
+ readonly 'leading-meta': 1.5;
166
+ readonly 'tracking-display': "-0.02em";
167
+ readonly 'tracking-title': "-0.015em";
168
+ readonly 'tracking-body': "0em";
169
+ readonly 'tracking-meta': "0.02em";
170
+ readonly 'tracking-caps': "0.06em";
171
+ readonly 'weight-regular': 400;
172
+ readonly 'weight-medium': 500;
173
+ readonly 'weight-semibold': 600;
174
+ readonly 'space-1': "0.25rem";
175
+ readonly 'space-2': "0.5rem";
176
+ readonly 'space-3': "0.75rem";
177
+ readonly 'space-4': "1rem";
178
+ readonly 'space-5': "1.5rem";
179
+ readonly 'space-6': "2rem";
180
+ readonly 'space-7': "3rem";
181
+ readonly 'space-8': "4rem";
182
+ readonly 'space-9': "6rem";
183
+ readonly 'space-10': "8rem";
184
+ readonly 'space-11': "10rem";
185
+ readonly 'space-12': "12rem";
186
+ readonly 'content-standard': "72rem";
187
+ readonly 'content-wide': "88rem";
188
+ readonly 'radius-sm': "0.25rem";
189
+ readonly 'radius-md': "0.5rem";
190
+ readonly 'radius-none': "0";
191
+ readonly 'border-width': "1px";
192
+ readonly 'border-style': "solid";
193
+ readonly 'motion-fast': "120ms";
194
+ readonly 'motion-normal': "180ms";
195
+ readonly 'motion-easing': "ease-out";
196
+ };
197
+ readonly palette: {
198
+ readonly 'font-display': {
199
+ readonly light: "\"Newsreader\", Georgia, \"Times New Roman\", serif";
200
+ readonly dark: "\"Newsreader\", Georgia, \"Times New Roman\", serif";
201
+ };
202
+ readonly 'font-body': {
203
+ readonly light: "\"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif";
204
+ readonly dark: "\"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif";
205
+ };
206
+ readonly 'font-mono': {
207
+ readonly light: "\"JetBrains Mono\", ui-monospace, \"Cascadia Code\", \"Fira Code\", monospace";
208
+ readonly dark: "\"JetBrains Mono\", ui-monospace, \"Cascadia Code\", \"Fira Code\", monospace";
209
+ };
210
+ readonly 'content-reading': {
211
+ readonly light: "46rem";
212
+ readonly dark: "46rem";
213
+ };
214
+ readonly 'weight-display': {
215
+ readonly light: 400;
216
+ readonly dark: 500;
217
+ };
218
+ readonly 'color-bg': {
219
+ readonly light: "oklch(0.975 0.005 80)";
220
+ readonly dark: "oklch(0.16 0.01 80)";
221
+ };
222
+ readonly 'color-bg-subtle': {
223
+ readonly light: "oklch(0.955 0.005 80)";
224
+ readonly dark: "oklch(0.19 0.01 80)";
225
+ };
226
+ readonly 'color-fg': {
227
+ readonly light: "oklch(0.18 0.01 80)";
228
+ readonly dark: "oklch(0.90 0.005 80)";
229
+ };
230
+ readonly 'color-fg-muted': {
231
+ readonly light: "oklch(0.43 0.015 80)";
232
+ readonly dark: "oklch(0.70 0.01 80)";
233
+ };
234
+ readonly 'color-muted': {
235
+ readonly light: "oklch(0.54 0.01 80)";
236
+ readonly dark: "oklch(0.60 0.01 80)";
237
+ };
238
+ readonly 'color-border': {
239
+ readonly light: "oklch(0.88 0.005 80)";
240
+ readonly dark: "oklch(0.25 0.005 80)";
241
+ };
242
+ readonly 'color-border-bold': {
243
+ readonly light: "oklch(0.62 0.01 80)";
244
+ readonly dark: "oklch(0.50 0.01 80)";
245
+ };
246
+ readonly 'color-surface': {
247
+ readonly light: "oklch(0.965 0.005 80)";
248
+ readonly dark: "oklch(0.19 0.01 80)";
249
+ };
250
+ readonly 'color-accent': {
251
+ readonly light: "oklch(0.50 0.14 250)";
252
+ readonly dark: "oklch(0.68 0.12 250)";
253
+ };
254
+ readonly 'color-accent-hover': {
255
+ readonly light: "oklch(0.42 0.11 250)";
256
+ readonly dark: "oklch(0.75 0.12 250)";
257
+ };
258
+ readonly 'color-accent-subtle': {
259
+ readonly light: "oklch(0.95 0.02 250)";
260
+ readonly dark: "oklch(0.22 0.04 250)";
261
+ };
262
+ readonly 'color-link': {
263
+ readonly light: "var(--color-accent)";
264
+ readonly dark: "var(--color-accent)";
265
+ };
266
+ readonly 'color-link-hover': {
267
+ readonly light: "var(--color-accent-hover)";
268
+ readonly dark: "var(--color-accent-hover)";
269
+ };
270
+ readonly 'color-focus-ring': {
271
+ readonly light: "var(--color-accent)";
272
+ readonly dark: "var(--color-accent)";
273
+ };
274
+ readonly 'color-selection-bg': {
275
+ readonly light: "oklch(0.92 0.04 250)";
276
+ readonly dark: "oklch(0.30 0.06 250)";
277
+ };
278
+ readonly 'color-selection-fg': {
279
+ readonly light: "var(--color-fg)";
280
+ readonly dark: "oklch(0.92 0.005 80)";
281
+ };
282
+ readonly 'color-code-bg': {
283
+ readonly light: "oklch(0.945 0.005 80)";
284
+ readonly dark: "oklch(0.20 0.005 80)";
285
+ };
286
+ readonly 'color-code-fg': {
287
+ readonly light: "var(--color-fg)";
288
+ readonly dark: "oklch(0.88 0.005 80)";
289
+ };
290
+ };
291
+ }
292
+
293
+ // Precise types for `import tokens from 'remarque-tokens/tokens.json'`
294
+ // (and any other bundler-JSON-import path resolving through this
295
+ // subpath) without depending on the consumer's `resolveJsonModule`.
296
+ declare module 'remarque-tokens/tokens.json' {
297
+ const tokens: RemarqueTokensFile;
298
+ export default tokens;
299
+ }
package/tokens.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$description": "Remarque design tokens — GENERATED from tokens-core.css + tokens-palette.css by scripts/tokens-json.mjs. Do not edit; the CSS is the source of truth.",
3
3
  "$extensions": {
4
4
  "remarque": {
5
- "version": "0.11.0",
5
+ "version": "0.12.0",
6
6
  "tiers": {
7
7
  "core": "immutable identity — overriding forks the system",
8
8
  "palette": "sanctioned personalization surface — override freely, then run remarque-audit"