@whity/tokens 1.1.0 → 1.2.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.
@@ -110,17 +110,34 @@
110
110
  --color-primary-tint: var(--primary-tint);
111
111
  --color-primary-tint-foreground: var(--primary-tint-foreground);
112
112
  --color-chart-6: var(--chart-6);
113
- --radius-sm: 4px;
114
- --radius-md: 7px;
115
- --radius-lg: 10px;
116
- --radius-xl: 12px;
117
- --radius-2xl: 16px;
118
- --radius-control-sm: 8px;
119
- --radius-control: 10px;
120
- --radius-control-lg: 11px;
121
- --radius-card: 12px;
122
- --radius-dialog: 16px;
113
+ --color-surface-1: var(--surface-1);
114
+ --color-surface-2: var(--surface-2);
115
+ --color-surface-3: var(--surface-3);
116
+ --color-surface-4: var(--surface-4);
117
+ --color-surface-5: var(--surface-5);
118
+ --color-primary-container: var(--primary-container);
119
+ --color-on-primary-container: var(--on-primary-container);
120
+ --color-secondary-container: var(--secondary-container);
121
+ --color-on-secondary-container: var(--on-secondary-container);
122
+ --color-tertiary: var(--tertiary);
123
+ --color-tertiary-foreground: var(--tertiary-foreground);
124
+ --color-tertiary-container: var(--tertiary-container);
125
+ --color-on-tertiary-container: var(--on-tertiary-container);
126
+ --radius-sm: var(--shape-radius-sm);
127
+ --radius-md: var(--shape-radius-md);
128
+ --radius-lg: var(--shape-radius-lg);
129
+ --radius-xl: var(--shape-radius-xl);
130
+ --radius-2xl: var(--shape-radius-2xl);
131
+ --radius-control-sm: var(--shape-radius-control-sm);
132
+ --radius-control: var(--shape-radius-control);
133
+ --radius-control-lg: var(--shape-radius-control-lg);
134
+ --radius-card: var(--shape-radius-card);
135
+ --radius-dialog: var(--shape-radius-dialog);
123
136
  --radius-full: 999px;
137
+ --spacing-inset-control: var(--shape-inset-control);
138
+ --radius-control-inner: var(--shape-radius-control-inner);
139
+ --radius-control-pressed: var(--shape-radius-control-pressed);
140
+ --radius-control-selected: var(--shape-radius-control-selected);
124
141
  --shadow-plane: var(--plane-rest);
125
142
  --shadow-plane-hover: var(--plane-hover);
126
143
  --shadow-plane-primary: var(--plane-primary-rest);
@@ -130,6 +147,17 @@
130
147
  }
131
148
 
132
149
  @utility plane-lift { transition: box-shadow 120ms cubic-bezier(0.2, 0, 0, 1), translate 120ms cubic-bezier(0.2, 0, 0, 1); &:hover { translate: 1px -1px; } }
150
+ @layer base { [class*="rounded-control"], [class*="rounded-card"], [class*="rounded-dialog"], [class*="rounded-sm"], [class*="rounded-md"], [class*="rounded-lg"], [class*="rounded-xl"], [class*="rounded-2xl"] { corner-shape: var(--shape-corner, round); } }
151
+ @layer base { :root, [data-theme-preview] { --shape-radius-sm: var(--wy-radius-sm, 4px); --shape-radius-md: var(--wy-radius-md, 7px); --shape-radius-lg: var(--wy-radius-lg, 10px); --shape-radius-xl: var(--wy-radius-xl, 12px); --shape-radius-2xl: var(--wy-radius-2xl, 16px); --shape-radius-control-sm: var(--wy-radius-control-sm, 8px); --shape-radius-control: var(--wy-radius-control, 10px); --shape-radius-control-lg: var(--wy-radius-control-lg, 11px); --shape-radius-card: var(--wy-radius-card, 12px); --shape-radius-dialog: var(--wy-radius-dialog, 16px); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-radius-control-pressed, var(--shape-radius-control)); --shape-radius-control-selected: var(--wy-radius-control-selected, var(--shape-radius-control-sm)); --shape-corner: var(--wy-corner-shape, round); } }
152
+ @layer base { [data-slot="button"], [data-slot="icon-button"] { --shape-radius-sm: var(--wy-buttons-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-buttons-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-buttons-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-buttons-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-buttons-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-buttons-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-buttons-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-buttons-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-buttons-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-buttons-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-buttons-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-buttons-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-buttons-corner-shape, var(--wy-corner-shape, round)); } }
153
+ @layer base { [data-slot="input"], [data-slot="textarea"], [data-slot="select-trigger"], [data-slot="search-field"], [data-slot="tag-input"], [data-slot="bilingual-input"], [data-slot="phone-input"], [data-slot="otp-input"], [data-slot="date-picker-trigger"], [data-slot="time-picker-trigger"] { --shape-radius-sm: var(--wy-fields-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-fields-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-fields-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-fields-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-fields-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-fields-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-fields-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-fields-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-fields-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-fields-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-fields-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-fields-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-fields-corner-shape, var(--wy-corner-shape, round)); } }
154
+ @layer base { [data-slot="badge"], [data-slot="actor-chip"], [data-slot="data-table-phone-chips"] { --shape-radius-sm: var(--wy-chips-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-chips-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-chips-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-chips-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-chips-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-chips-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-chips-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-chips-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-chips-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-chips-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-chips-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-chips-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-chips-corner-shape, var(--wy-corner-shape, round)); } }
155
+ @layer base { [data-slot="card"] { --shape-radius-sm: var(--wy-cards-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-cards-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-cards-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-cards-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-cards-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-cards-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-cards-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-cards-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-cards-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-cards-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-cards-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-cards-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-cards-corner-shape, var(--wy-corner-shape, round)); } }
156
+ @layer base { [data-slot="dialog-content"], [data-slot="alert-dialog-content"], [data-slot="sheet-content"], [data-slot="popover-content"], [data-slot="select-content"], [data-slot="dropdown-menu-content"], [data-slot="dropdown-menu-sub-content"], [data-slot="menu-bar-content"], [data-slot="menu-bar-sub-content"], [data-slot="command-palette"] { --shape-radius-sm: var(--wy-dialogs-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-dialogs-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-dialogs-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-dialogs-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-dialogs-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-dialogs-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-dialogs-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-dialogs-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-dialogs-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-dialogs-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-dialogs-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-dialogs-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-dialogs-corner-shape, var(--wy-corner-shape, round)); } }
157
+ @layer base { [data-slot="table-container"], [data-slot="data-table"] { --shape-radius-sm: var(--wy-tables-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-tables-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-tables-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-tables-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-tables-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-tables-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-tables-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-tables-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-tables-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-tables-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-tables-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-tables-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-tables-corner-shape, var(--wy-corner-shape, round)); } }
158
+ @layer base { [data-slot="app-sidebar-nav"], [data-slot="tabs-list"], [data-slot="toggle-group"], [data-slot="view-toggle"], [data-slot="menu-bar"] { --shape-radius-sm: var(--wy-navigation-radius-sm, var(--wy-radius-sm, 4px)); --shape-radius-md: var(--wy-navigation-radius-md, var(--wy-radius-md, 7px)); --shape-radius-lg: var(--wy-navigation-radius-lg, var(--wy-radius-lg, 10px)); --shape-radius-xl: var(--wy-navigation-radius-xl, var(--wy-radius-xl, 12px)); --shape-radius-2xl: var(--wy-navigation-radius-2xl, var(--wy-radius-2xl, 16px)); --shape-radius-control-sm: var(--wy-navigation-radius-control-sm, var(--wy-radius-control-sm, 8px)); --shape-radius-control: var(--wy-navigation-radius-control, var(--wy-radius-control, 10px)); --shape-radius-control-lg: var(--wy-navigation-radius-control-lg, var(--wy-radius-control-lg, 11px)); --shape-radius-card: var(--wy-navigation-radius-card, var(--wy-radius-card, 12px)); --shape-radius-dialog: var(--wy-navigation-radius-dialog, var(--wy-radius-dialog, 16px)); --shape-inset-control: max(0.25rem, calc(var(--shape-radius-control) * 0.3)); --shape-radius-control-inner: max(0.125rem, calc(var(--shape-radius-control) - var(--shape-inset-control))); --shape-radius-control-pressed: var(--wy-navigation-radius-control-pressed, var(--wy-radius-control-pressed, var(--shape-radius-control))); --shape-radius-control-selected: var(--wy-navigation-radius-control-selected, var(--wy-radius-control-selected, var(--shape-radius-control-sm))); --shape-corner: var(--wy-navigation-corner-shape, var(--wy-corner-shape, round)); } }
159
+ :root { --dur-morph: var(--dur-fast); }
160
+ :root[data-motion="calm"], :root[data-motion="off"] { --dur-morph: 0ms; }
133
161
  @utility bg-blueprint-grid { background-color: var(--blueprint); background-image: linear-gradient(var(--blueprint-line) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px), linear-gradient(var(--blueprint-line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint-line-strong) 1px, transparent 1px); background-size: 16px 16px, 16px 16px, 80px 80px, 80px 80px; }
134
162
 
135
163
  :root {
@@ -199,6 +227,19 @@
199
227
  --primary-tint: oklch(0.9607 0.0148 251.16);
200
228
  --primary-tint-foreground: oklch(0.5 0.16 255);
201
229
  --chart-6: oklch(0.3485 0 0);
230
+ --surface-1: oklch(1 0 0);
231
+ --surface-2: oklch(0.985 0 0);
232
+ --surface-3: oklch(0.97 0 0);
233
+ --surface-4: oklch(0.955 0 0);
234
+ --surface-5: oklch(0.94 0 0);
235
+ --primary-container: oklch(0.9 0.06 255);
236
+ --on-primary-container: oklch(0.25 0.1 255);
237
+ --secondary-container: oklch(0.92 0.05 255);
238
+ --on-secondary-container: oklch(0.25 0.05 255);
239
+ --tertiary: oklch(0.5 0.08 315);
240
+ --tertiary-foreground: oklch(1 0 0);
241
+ --tertiary-container: oklch(0.92 0.05 315);
242
+ --on-tertiary-container: oklch(0.25 0.06 315);
202
243
  --plane-rest: -3px 3px 0 0 oklch(0.5 0.16 255);
203
244
  --plane-hover: -5px 5px 0 0 oklch(0.5 0.16 255);
204
245
  --plane-primary-rest: -3px 3px 0 0 oklch(0.3 0.1 255);
@@ -335,6 +376,19 @@
335
376
  --primary-tint: oklch(0.2987 0.06 255.91);
336
377
  --primary-tint-foreground: oklch(0.6995 0.1498 255.09);
337
378
  --chart-6: oklch(0.6167 0 0);
379
+ --surface-1: oklch(0.19 0 0);
380
+ --surface-2: oklch(0.215 0 0);
381
+ --surface-3: oklch(0.24 0 0);
382
+ --surface-4: oklch(0.265 0 0);
383
+ --surface-5: oklch(0.29 0 0);
384
+ --primary-container: oklch(0.32 0.08 255);
385
+ --on-primary-container: oklch(0.92 0.04 255);
386
+ --secondary-container: oklch(0.3 0.05 255);
387
+ --on-secondary-container: oklch(0.92 0.05 255);
388
+ --tertiary: oklch(0.75 0.08 315);
389
+ --tertiary-foreground: oklch(0.205 0 0);
390
+ --tertiary-container: oklch(0.3 0.06 315);
391
+ --on-tertiary-container: oklch(0.92 0.06 315);
338
392
  --plane-rest: -3px 3px 0 0 oklch(0.7 0.15 255);
339
393
  --plane-hover: -5px 5px 0 0 oklch(0.7 0.15 255);
340
394
  --plane-primary-rest: -3px 3px 0 0 oklch(0.42 0.13 255);
@@ -416,6 +470,19 @@
416
470
  --primary-tint: oklch(0.9607 0.0148 251.16);
417
471
  --primary-tint-foreground: oklch(0.5 0.16 255);
418
472
  --chart-6: oklch(0.3485 0 0);
473
+ --surface-1: oklch(1 0 0);
474
+ --surface-2: oklch(0.985 0 0);
475
+ --surface-3: oklch(0.97 0 0);
476
+ --surface-4: oklch(0.955 0 0);
477
+ --surface-5: oklch(0.94 0 0);
478
+ --primary-container: oklch(0.9 0.06 255);
479
+ --on-primary-container: oklch(0.25 0.1 255);
480
+ --secondary-container: oklch(0.92 0.05 255);
481
+ --on-secondary-container: oklch(0.25 0.05 255);
482
+ --tertiary: oklch(0.5 0.08 315);
483
+ --tertiary-foreground: oklch(1 0 0);
484
+ --tertiary-container: oklch(0.92 0.05 315);
485
+ --on-tertiary-container: oklch(0.25 0.06 315);
419
486
  --plane-rest: -3px 3px 0 0 oklch(0.5 0.16 255);
420
487
  --plane-hover: -5px 5px 0 0 oklch(0.5 0.16 255);
421
488
  --plane-primary-rest: -3px 3px 0 0 oklch(0.3 0.1 255);
@@ -0,0 +1,120 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://whity.dev/schema/theme/v1.json",
4
+ "title": "Whity theme",
5
+ "description": "A Whity UI theme (docs/design/30-themes.md, TH.1-TH.14): choices, never CSS. Core compiles it into design tokens and runs the guard rails on the result.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "id", "version", "name"],
9
+ "$defs": {
10
+ "hex": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
11
+ "text": { "type": "string", "minLength": 1, "maxLength": 200, "pattern": "^[^<>{}]*$" },
12
+ "bilingual": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["en"],
16
+ "properties": { "en": { "$ref": "#/$defs/text" }, "ar": { "$ref": "#/$defs/text" } }
17
+ },
18
+ "roleOverrides": {
19
+ "type": "object",
20
+ "maxProperties": 64,
21
+ "propertyNames": { "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" },
22
+ "additionalProperties": { "$ref": "#/$defs/hex" }
23
+ },
24
+ "shapePreset": { "enum": ["square", "crisp", "whity", "soft", "round", "pebble", "cut"] },
25
+ "fontId": { "enum": ["noto", "plex", "readex", "cairo", "kufi", "rubik", "alexandria", "naskh", "ibm-kufi"] }
26
+ },
27
+ "properties": {
28
+ "$schema": { "type": "string", "maxLength": 200 },
29
+ "schemaVersion": { "const": 1 },
30
+ "id": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*[.][a-z0-9]+(-[a-z0-9]+)*$", "maxLength": 100 },
31
+ "version": { "type": "string", "pattern": "^(0|[1-9][0-9]*)[.](0|[1-9][0-9]*)[.](0|[1-9][0-9]*)$" },
32
+ "name": { "$ref": "#/$defs/bilingual" },
33
+ "description": { "$ref": "#/$defs/bilingual" },
34
+ "author": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["name"],
38
+ "properties": { "name": { "$ref": "#/$defs/text" } }
39
+ },
40
+ "colour": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "properties": {
44
+ "seeds": {
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "properties": {
48
+ "primary": { "$ref": "#/$defs/hex" },
49
+ "secondary": { "$ref": "#/$defs/hex" },
50
+ "tertiary": { "$ref": "#/$defs/hex" }
51
+ }
52
+ },
53
+ "scheme": { "enum": ["calm", "tonal", "vibrant", "expressive", "monochrome"] },
54
+ "neutral": { "enum": ["pure", "warm", "cool", "tinted"] },
55
+ "contrast": { "enum": ["standard", "high"] },
56
+ "overrides": {
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "properties": { "light": { "$ref": "#/$defs/roleOverrides" }, "dark": { "$ref": "#/$defs/roleOverrides" } }
60
+ }
61
+ }
62
+ },
63
+ "type": {
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "properties": {
67
+ "family": { "$ref": "#/$defs/fontId" },
68
+ "headingFamily": { "anyOf": [{ "$ref": "#/$defs/fontId" }, { "const": "same" }] },
69
+ "scale": { "enum": ["standard", "roomy", "large"] },
70
+ "titleWeight": { "enum": [500, 600] },
71
+ "emphasis": { "enum": ["quiet", "expressive"] }
72
+ }
73
+ },
74
+ "shape": {
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "properties": {
78
+ "preset": { "$ref": "#/$defs/shapePreset" },
79
+ "morph": { "enum": ["off", "on"] },
80
+ "components": {
81
+ "type": "object",
82
+ "description": "A shape preset for one component family, never pixels (TH.21).",
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "buttons": { "$ref": "#/$defs/shapePreset" },
86
+ "fields": { "$ref": "#/$defs/shapePreset" },
87
+ "chips": { "$ref": "#/$defs/shapePreset" },
88
+ "cards": { "$ref": "#/$defs/shapePreset" },
89
+ "dialogs": { "$ref": "#/$defs/shapePreset" },
90
+ "tables": { "$ref": "#/$defs/shapePreset" },
91
+ "navigation": { "$ref": "#/$defs/shapePreset" }
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "density": { "enum": ["compact", "standard", "comfortable"] },
97
+ "elevation": {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "properties": {
101
+ "style": { "enum": ["plane", "soft", "flat", "outline"] },
102
+ "float": { "enum": ["light", "standard", "strong"] }
103
+ }
104
+ },
105
+ "motion": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "properties": { "preset": { "enum": ["calm", "standard", "expressive", "brisk"] } }
109
+ },
110
+ "documents": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "properties": {
114
+ "accentUse": { "enum": ["title", "title-and-headings"] },
115
+ "titleFace": { "enum": ["readex", "noto"] },
116
+ "largePrint": { "type": "boolean" }
117
+ }
118
+ }
119
+ }
120
+ }
@@ -61,7 +61,20 @@
61
61
  "destructive-foreground": "oklch(1 0 0)",
62
62
  "primary-tint": "oklch(0.9607 0.0148 251.16)",
63
63
  "primary-tint-foreground": "oklch(0.5 0.16 255)",
64
- "chart-6": "oklch(0.3485 0 0)"
64
+ "chart-6": "oklch(0.3485 0 0)",
65
+ "surface-1": "oklch(1 0 0)",
66
+ "surface-2": "oklch(0.985 0 0)",
67
+ "surface-3": "oklch(0.97 0 0)",
68
+ "surface-4": "oklch(0.955 0 0)",
69
+ "surface-5": "oklch(0.94 0 0)",
70
+ "primary-container": "oklch(0.9 0.06 255)",
71
+ "on-primary-container": "oklch(0.25 0.1 255)",
72
+ "secondary-container": "oklch(0.92 0.05 255)",
73
+ "on-secondary-container": "oklch(0.25 0.05 255)",
74
+ "tertiary": "oklch(0.5 0.08 315)",
75
+ "tertiary-foreground": "oklch(1 0 0)",
76
+ "tertiary-container": "oklch(0.92 0.05 315)",
77
+ "on-tertiary-container": "oklch(0.25 0.06 315)"
65
78
  },
66
79
  "dark": {
67
80
  "background": "oklch(0.145 0 0)",
@@ -124,7 +137,20 @@
124
137
  "destructive-foreground": "oklch(0.1448 0 0)",
125
138
  "primary-tint": "oklch(0.2987 0.06 255.91)",
126
139
  "primary-tint-foreground": "oklch(0.6995 0.1498 255.09)",
127
- "chart-6": "oklch(0.6167 0 0)"
140
+ "chart-6": "oklch(0.6167 0 0)",
141
+ "surface-1": "oklch(0.19 0 0)",
142
+ "surface-2": "oklch(0.215 0 0)",
143
+ "surface-3": "oklch(0.24 0 0)",
144
+ "surface-4": "oklch(0.265 0 0)",
145
+ "surface-5": "oklch(0.29 0 0)",
146
+ "primary-container": "oklch(0.32 0.08 255)",
147
+ "on-primary-container": "oklch(0.92 0.04 255)",
148
+ "secondary-container": "oklch(0.3 0.05 255)",
149
+ "on-secondary-container": "oklch(0.92 0.05 255)",
150
+ "tertiary": "oklch(0.75 0.08 315)",
151
+ "tertiary-foreground": "oklch(0.205 0 0)",
152
+ "tertiary-container": "oklch(0.3 0.06 315)",
153
+ "on-tertiary-container": "oklch(0.92 0.06 315)"
128
154
  },
129
155
  "typography": {
130
156
  "fontFamily": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whity/tokens",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Design tokens (colors, typography, spacing, radius), fonts and logos for Whity products — generated from src/design/tokens/base.json and the brand handoff. No React/Next dependency: a plain JSON bundle, standalone importable Tailwind v4 theme CSS, a shadcn/Tailwind base-reset layer, self-hosted @font-face CSS, the websites' plain token CSS and the logo set.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
  "./fonts.css": "./generated/fonts.css",
16
16
  "./fonts/*": "./fonts/*",
17
17
  "./site.css": "./generated/site.css",
18
+ "./theme.schema.json": "./generated/theme.schema.json",
18
19
  "./logos/*": "./logos/*"
19
20
  },
20
21
  "files": [