@aurea-uds/tokens 0.24.0 → 0.25.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.
@@ -46,6 +46,7 @@
46
46
  --focus-width:2px;
47
47
  --focus-offset:2px;
48
48
  --opacity-disabled:0.5;
49
+ --shadow-sm:0 2px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.06);
49
50
  --shadow-md:0 16px 42px rgba(0,0,0,0.28);
50
51
  --shadow-lg:0 28px 80px rgba(0,0,0,0.42);
51
52
  --duration-fast:120ms;
@@ -175,6 +176,7 @@
175
176
  --primary-hover:oklch(0.835 0.19 89);
176
177
  --primary-active:oklch(0.74 0.17 84);
177
178
  --secondary-hover:oklch(0.31 0.006 286.033);
179
+ --segment:oklch(0.3964 0.01 285.93);
178
180
  --focus:var(--primary);
179
181
  --focus-strong:var(--primary);
180
182
  --primary-emphasis:var(--primary);
@@ -245,6 +247,7 @@
245
247
  --primary-hover:oklch(0.835 0.19 89);
246
248
  --primary-active:oklch(0.74 0.17 84);
247
249
  --secondary-hover:var(--surface-hover);
250
+ --segment:oklch(1 0 0);
248
251
  --focus:var(--primary);
249
252
  --focus-strong:var(--brand-yellow-foreground);
250
253
  --primary-emphasis:var(--brand-yellow-text);
@@ -294,6 +297,7 @@
294
297
  --secondary:oklch(0.245 0.02 250);
295
298
  --secondary-foreground:oklch(0.96 0.006 250);
296
299
  --secondary-hover:oklch(0.28 0.02 250);
300
+ --segment:oklch(0.312 0.02 250);
297
301
  --muted:oklch(0.19 0.02 250);
298
302
  --muted-foreground:oklch(0.72 0.015 250);
299
303
  --subtle-foreground:oklch(0.58 0.016 250);
@@ -5,5 +5,6 @@ export declare const REM_EM_DP: number;
5
5
  export declare const base: Record<string, number | string | number[] | AureaColor | AureaShadow>;
6
6
  export declare const tracking: Record<string, number>;
7
7
  export declare const breakpoints: Record<string, number>;
8
+ export declare const shadowLayers: Record<string, AureaShadow[]>;
8
9
  export declare const themes: Record<"dark" | "light", Record<string, AureaColor | number>>;
9
10
  export declare const densities: Record<"compact" | "comfortable" | "spacious", Record<string, number>>;
@@ -79,6 +79,13 @@ export const base = {
79
79
  "focusWidth": 2,
80
80
  "focusOffset": 2,
81
81
  "opacityDisabled": 0.5,
82
+ "shadowSm": {
83
+ "offsetX": 0,
84
+ "offsetY": 2,
85
+ "blurRadius": 4,
86
+ "spreadDistance": 0,
87
+ "color": "rgba(0,0,0,0.04)"
88
+ },
82
89
  "shadowMd": {
83
90
  "offsetX": 0,
84
91
  "offsetY": 16,
@@ -288,6 +295,49 @@ export const breakpoints = {
288
295
  "breakpointXl": 1280,
289
296
  "breakpoint2xl": 1536
290
297
  };
298
+ export const shadowLayers = {
299
+ "shadowSm": [
300
+ {
301
+ "offsetX": 0,
302
+ "offsetY": 2,
303
+ "blurRadius": 4,
304
+ "spreadDistance": 0,
305
+ "color": "rgba(0,0,0,0.04)"
306
+ },
307
+ {
308
+ "offsetX": 0,
309
+ "offsetY": 1,
310
+ "blurRadius": 2,
311
+ "spreadDistance": 0,
312
+ "color": "rgba(0,0,0,0.06)"
313
+ },
314
+ {
315
+ "offsetX": 0,
316
+ "offsetY": 0,
317
+ "blurRadius": 1,
318
+ "spreadDistance": 0,
319
+ "color": "rgba(0,0,0,0.06)"
320
+ }
321
+ ],
322
+ "shadowMd": [
323
+ {
324
+ "offsetX": 0,
325
+ "offsetY": 16,
326
+ "blurRadius": 42,
327
+ "spreadDistance": 0,
328
+ "color": "rgba(0,0,0,0.28)"
329
+ }
330
+ ],
331
+ "shadowLg": [
332
+ {
333
+ "offsetX": 0,
334
+ "offsetY": 28,
335
+ "blurRadius": 80,
336
+ "spreadDistance": 0,
337
+ "color": "rgba(0,0,0,0.42)"
338
+ }
339
+ ]
340
+ };
291
341
  export const themes = {
292
342
  "dark": {
293
343
  "background": {
@@ -525,6 +575,11 @@ export const themes = {
525
575
  "p3": "color(display-p3 0.1877 0.1878 0.1999)",
526
576
  "oklch": "oklch(0.31 0.006 286.033)"
527
577
  },
578
+ "segment": {
579
+ "hex": "#46464c",
580
+ "p3": "color(display-p3 0.2745 0.2745 0.296)",
581
+ "oklch": "oklch(0.3964 0.01 285.93)"
582
+ },
528
583
  "focus": {
529
584
  "hex": "#f0b100",
530
585
  "p3": "color(display-p3 0.9037 0.7031 0.0745)",
@@ -897,6 +952,11 @@ export const themes = {
897
952
  "p3": "color(display-p3 0.902 0.902 0.902)",
898
953
  "oklch": "oklch(0.925 0 0)"
899
954
  },
955
+ "segment": {
956
+ "hex": "#ffffff",
957
+ "p3": "color(display-p3 1 1 1)",
958
+ "oklch": "oklch(1 0 0)"
959
+ },
900
960
  "focus": {
901
961
  "hex": "#f0b100",
902
962
  "p3": "color(display-p3 0.9037 0.7031 0.0745)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurea-uds/tokens",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Os tokens da Aurea UDS: a fonte em DTCG e as variáveis CSS geradas dela.",
5
5
  "keywords": [
6
6
  "aurea",
@@ -346,13 +346,103 @@
346
346
  "value": 2,
347
347
  "unit": "px"
348
348
  },
349
- "$description": "O afastamento da linha de foco, para fora da peça — B-09. Dentro de contêiner recortado (linha de tabela, item de árvore) a linha vai para DENTRO: calc(-1 * var(--focus-width)). A referência tem o mesmo número: 2px."
349
+ "$description": "O afastamento da linha de foco, para fora da peça — B-09. Vale só para peça SEM borda própria (o botão cheio, a aba): na peça COM borda (campo, checkbox, botão com contorno) a linha cola nela e cobre a borda, calc(-1 * var(--border-width)), para não desenhar duas linhas (ADR-0059, 08/10/2026). Dentro de contêiner recortado (linha de tabela, item de árvore) a linha vai para DENTRO: calc(-1 * var(--focus-width)). A referência tem o mesmo número: 2px."
350
350
  },
351
351
  "opacity-disabled": {
352
352
  "$type": "number",
353
353
  "$value": 0.5,
354
354
  "$description": "A opacidade do que está desativado — R-07, 24/09/2026. É o único token de opacidade da referência (0.5 no pacote web dela, usado 51 vezes) e o 0,5 que os campos, o menu e o Combobox da Aurea já usavam. O 0,45 do botão desativado (`.btn:disabled`) continua fora, de propósito: mudar é mudar a aparência publicada."
355
355
  },
356
+ "shadow-sm": {
357
+ "$type": "shadow",
358
+ "$description": "A sombra pequena da cápsula escolhida sobre o trilho (`Tabs`, `SegmentedControl`) — ADR-0059, 08/10/2026. As três camadas são as da referência principal para o mesmo papel. No escuro ela quase não aparece, e é de propósito: lá quem separa a cápsula do trilho é a cor (--segment).",
359
+ "$value": [
360
+ {
361
+ "color": {
362
+ "colorSpace": "srgb",
363
+ "components": [
364
+ 0,
365
+ 0,
366
+ 0
367
+ ],
368
+ "hex": "#000000",
369
+ "alpha": 0.04
370
+ },
371
+ "offsetX": {
372
+ "value": 0,
373
+ "unit": "px"
374
+ },
375
+ "offsetY": {
376
+ "value": 2,
377
+ "unit": "px"
378
+ },
379
+ "blur": {
380
+ "value": 4,
381
+ "unit": "px"
382
+ },
383
+ "spread": {
384
+ "value": 0,
385
+ "unit": "px"
386
+ }
387
+ },
388
+ {
389
+ "color": {
390
+ "colorSpace": "srgb",
391
+ "components": [
392
+ 0,
393
+ 0,
394
+ 0
395
+ ],
396
+ "hex": "#000000",
397
+ "alpha": 0.06
398
+ },
399
+ "offsetX": {
400
+ "value": 0,
401
+ "unit": "px"
402
+ },
403
+ "offsetY": {
404
+ "value": 1,
405
+ "unit": "px"
406
+ },
407
+ "blur": {
408
+ "value": 2,
409
+ "unit": "px"
410
+ },
411
+ "spread": {
412
+ "value": 0,
413
+ "unit": "px"
414
+ }
415
+ },
416
+ {
417
+ "color": {
418
+ "colorSpace": "srgb",
419
+ "components": [
420
+ 0,
421
+ 0,
422
+ 0
423
+ ],
424
+ "hex": "#000000",
425
+ "alpha": 0.06
426
+ },
427
+ "offsetX": {
428
+ "value": 0,
429
+ "unit": "px"
430
+ },
431
+ "offsetY": {
432
+ "value": 0,
433
+ "unit": "px"
434
+ },
435
+ "blur": {
436
+ "value": 1,
437
+ "unit": "px"
438
+ },
439
+ "spread": {
440
+ "value": 0,
441
+ "unit": "px"
442
+ }
443
+ }
444
+ ]
445
+ },
356
446
  "shadow-md": {
357
447
  "$type": "shadow",
358
448
  "$value": {
@@ -1560,6 +1650,18 @@
1560
1650
  ]
1561
1651
  }
1562
1652
  },
1653
+ "segment": {
1654
+ "$type": "color",
1655
+ "$description": "A cápsula do item ESCOLHIDO dentro de um trilho (`Tabs`, `SegmentedControl`), que fica sobre --muted. Existe porque o escolhido usava --secondary e, medido em 08/10/2026, dava 1,02:1 contra o trilho no escuro e 1:1 no claro — a 'cápsula elevada' não se via. O número é o da referência principal para o mesmo papel (o mesmo matiz do --secondary); no claro, branco com --shadow-sm.",
1656
+ "$value": {
1657
+ "colorSpace": "oklch",
1658
+ "components": [
1659
+ 0.3964,
1660
+ 0.01,
1661
+ 285.93
1662
+ ]
1663
+ }
1664
+ },
1563
1665
  "focus": {
1564
1666
  "$type": "color",
1565
1667
  "$description": "The soft focus colour, for the halo of a control that cannot carry an outline. The focus CONTRACT is built on --focus-strong.",
@@ -2196,6 +2298,17 @@
2196
2298
  "$type": "color",
2197
2299
  "$value": "{surface-hover}"
2198
2300
  },
2301
+ "segment": {
2302
+ "$type": "color",
2303
+ "$value": {
2304
+ "colorSpace": "oklch",
2305
+ "components": [
2306
+ 1,
2307
+ 0,
2308
+ 0
2309
+ ]
2310
+ }
2311
+ },
2199
2312
  "focus": {
2200
2313
  "$type": "color",
2201
2314
  "$value": "{primary}"
@@ -2668,6 +2781,18 @@
2668
2781
  ]
2669
2782
  }
2670
2783
  },
2784
+ "segment": {
2785
+ "$type": "color",
2786
+ "$description": "A cápsula do item escolhido sobre o trilho (--muted 0,19) da marca: o mesmo degrau de claridade da referência (+0,122 sobre o trilho), no matiz da marca.",
2787
+ "$value": {
2788
+ "colorSpace": "oklch",
2789
+ "components": [
2790
+ 0.312,
2791
+ 0.02,
2792
+ 250
2793
+ ]
2794
+ }
2795
+ },
2671
2796
  "muted": {
2672
2797
  "$type": "color",
2673
2798
  "$value": {