@etus/tokens 0.2.0 → 1.0.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.
package/dist/tokens.css CHANGED
@@ -87,7 +87,7 @@
87
87
  --avatar-fallback-text-primary: oklch(18.34% 0.0338 166.67);
88
88
  --avatar-fallback-text-secondary: oklch(21.23% 0.0502 138.22);
89
89
  --avatar-fallback-text-success: oklch(100.00% 0.0000 0);
90
- --avatar-fallback-text-warning: oklch(100.00% 0.0000 0);
90
+ --avatar-fallback-text-warning: oklch(28.57% 0.0639 53.81);
91
91
  --avatar-radius-circle: 9999px;
92
92
  --avatar-radius-square: 0.375rem;
93
93
  --avatar-size-2xl: 64px;
@@ -666,18 +666,14 @@
666
666
  --duration-slow: 300ms;
667
667
  --duration-slower: 500ms;
668
668
  --duration-slowest: 700ms;
669
+ --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
669
670
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
670
671
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
672
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
671
673
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
672
674
  --ease-linear: cubic-bezier(0, 0, 1, 1);
673
675
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
674
- --ease-spring: cubic-bezier(0.36, 1.56, 0.64, 1);
675
- --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
676
- --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
677
- --easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
678
- --easing-in: cubic-bezier(0.4, 0, 1, 1);
679
- --easing-out: cubic-bezier(0, 0, 0.2, 1);
680
- --easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
676
+ --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
681
677
  --empty-state-media-icon-bg: oklch(97.02% 0.0000 0);
682
678
  --empty-state-media-icon-fg: oklch(14.48% 0.0000 0);
683
679
  --empty-state-media-icon-icon-size: 24px;
@@ -2205,7 +2201,7 @@
2205
2201
  --typography-paragraph-p4-textcase: none;
2206
2202
  --typography-paragraph-p4-textdecoration: none;
2207
2203
  --warning-border: oklch(94.51% 0.1243 101.54);
2208
- --warning-foreground: oklch(100.00% 0.0000 0);
2204
+ --warning-foreground: oklch(28.57% 0.0639 53.81);
2209
2205
  --warning-subtle-foreground: oklch(55.38% 0.1207 66.44);
2210
2206
  --warning-subtle: oklch(98.73% 0.0262 102.21);
2211
2207
  --warning: oklch(86.06% 0.1731 91.94);
@@ -2396,7 +2392,7 @@
2396
2392
  --text-color-default: oklch(98.51% 0.0000 0);
2397
2393
  --text-color-muted: oklch(71.55% 0.0000 0);
2398
2394
  --warning-border: oklch(55.38% 0.1207 66.44);
2399
- --warning-foreground: oklch(100.00% 0.0000 0);
2395
+ --warning-foreground: oklch(28.57% 0.0639 53.81);
2400
2396
  --warning-subtle-foreground: oklch(90.52% 0.1657 98.11);
2401
2397
  --warning-subtle: oklch(28.57% 0.0639 53.81);
2402
2398
  --warning: oklch(79.52% 0.1617 86.05);
@@ -2552,7 +2548,7 @@
2552
2548
  --text-color-default: oklch(14.48% 0.0000 0);
2553
2549
  --text-color-muted: oklch(55.55% 0.0000 0);
2554
2550
  --warning-border: oklch(94.51% 0.1243 101.54);
2555
- --warning-foreground: oklch(100.00% 0.0000 0);
2551
+ --warning-foreground: oklch(28.57% 0.0639 53.81);
2556
2552
  --warning-subtle-foreground: oklch(55.38% 0.1207 66.44);
2557
2553
  --warning-subtle: oklch(98.73% 0.0262 102.21);
2558
2554
  --warning: oklch(86.06% 0.1731 91.94);
package/dist/tokens.js CHANGED
@@ -158,7 +158,7 @@ export const tokens = {
158
158
  "text-color-muted": "oklch(71.55% 0.0000 0)",
159
159
  "warning": "oklch(79.52% 0.1617 86.05)",
160
160
  "warning-border": "oklch(55.38% 0.1207 66.44)",
161
- "warning-foreground": "oklch(100.00% 0.0000 0)",
161
+ "warning-foreground": "oklch(28.57% 0.0639 53.81)",
162
162
  "warning-subtle": "oklch(28.57% 0.0639 53.81)",
163
163
  "warning-subtle-foreground": "oklch(90.52% 0.1657 98.11)",
164
164
  },
@@ -243,7 +243,7 @@ export const tokens = {
243
243
  "avatar-fallback-text-primary": "oklch(18.34% 0.0338 166.67)",
244
244
  "avatar-fallback-text-secondary": "oklch(21.23% 0.0502 138.22)",
245
245
  "avatar-fallback-text-success": "oklch(100.00% 0.0000 0)",
246
- "avatar-fallback-text-warning": "oklch(100.00% 0.0000 0)",
246
+ "avatar-fallback-text-warning": "oklch(28.57% 0.0639 53.81)",
247
247
  "avatar-radius-circle": "9999px",
248
248
  "avatar-radius-square": "0.375rem",
249
249
  "avatar-size-2xl": "64px",
@@ -777,18 +777,14 @@ export const tokens = {
777
777
  "duration-slow": "300ms",
778
778
  "duration-slower": "500ms",
779
779
  "duration-slowest": "700ms",
780
+ "ease-bounce": "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
780
781
  "ease-default": "cubic-bezier(0.4, 0, 0.2, 1)",
781
782
  "ease-emphasized": "cubic-bezier(0.2, 0, 0, 1)",
782
783
  "ease-in": "cubic-bezier(0.4, 0, 1, 1)",
784
+ "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
783
785
  "ease-linear": "cubic-bezier(0, 0, 1, 1)",
784
786
  "ease-out": "cubic-bezier(0, 0, 0.2, 1)",
785
- "ease-spring": "cubic-bezier(0.36, 1.56, 0.64, 1)",
786
- "easing-bounce": "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
787
- "easing-default": "cubic-bezier(0.4, 0, 0.2, 1)",
788
- "easing-in": "cubic-bezier(0.4, 0, 1, 1)",
789
- "easing-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
790
- "easing-out": "cubic-bezier(0, 0, 0.2, 1)",
791
- "easing-spring": "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
787
+ "ease-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
792
788
  "empty-state-media-icon-bg": "oklch(97.02% 0.0000 0)",
793
789
  "empty-state-media-icon-fg": "oklch(14.48% 0.0000 0)",
794
790
  "empty-state-media-icon-icon-size": "24px",
@@ -1592,16 +1588,16 @@ export const tokens = {
1592
1588
  "radio-root-size-md": "20px",
1593
1589
  "radio-root-size-sm": "16px",
1594
1590
  "radius": "4px",
1595
- "radius-2xl": "16px",
1591
+ "radius-2xl": "20px",
1596
1592
  "radius-3xl": "24px",
1597
1593
  "radius-4xl": "32px",
1598
1594
  "radius-full": "9999px",
1599
- "radius-lg": "8px",
1600
- "radius-md": "6px",
1595
+ "radius-lg": "12px",
1596
+ "radius-md": "8px",
1601
1597
  "radius-none": "0px",
1602
- "radius-pill": "9999px",
1598
+ "radius-pill": "999px",
1603
1599
  "radius-sm": "4px",
1604
- "radius-xl": "12px",
1600
+ "radius-xl": "16px",
1605
1601
  "radius-xs": "2px",
1606
1602
  "rail-accent": "oklch(95.21% 0.0467 171.12)",
1607
1603
  "rail-accent-foreground": "oklch(26.88% 0.0527 163.85)",
@@ -2393,7 +2389,7 @@ export const tokens = {
2393
2389
  "typography-paragraph-p4-textdecoration": "none",
2394
2390
  "warning": "oklch(86.06% 0.1731 91.94)",
2395
2391
  "warning-border": "oklch(94.51% 0.1243 101.54)",
2396
- "warning-foreground": "oklch(100.00% 0.0000 0)",
2392
+ "warning-foreground": "oklch(28.57% 0.0639 53.81)",
2397
2393
  "warning-subtle": "oklch(98.73% 0.0262 102.21)",
2398
2394
  "warning-subtle-foreground": "oklch(55.38% 0.1207 66.44)",
2399
2395
  "z-base": "0",
@@ -1803,7 +1803,7 @@
1803
1803
  "name": "warning",
1804
1804
  "cssVar": "--warning",
1805
1805
  "type": "color",
1806
- "description": "Attention alerts, pending states (yellow-400, Figma v2 canonical — was yellow-600). A11Y NOTE: yellow-400 + white foreground has low contrast; verify Badge/Button warning surfaces",
1806
+ "description": "Attention alerts, pending states (yellow-400, Figma v2 canonical)",
1807
1807
  "light": "oklch(86.06% 0.1731 91.94)",
1808
1808
  "dark": "oklch(79.52% 0.1617 86.05)"
1809
1809
  },
@@ -1819,9 +1819,9 @@
1819
1819
  "name": "warning-foreground",
1820
1820
  "cssVar": "--warning-foreground",
1821
1821
  "type": "color",
1822
- "description": "Text on warning (base.white) see warning a11y note",
1823
- "light": "oklch(100.00% 0.0000 0)",
1824
- "dark": "oklch(100.00% 0.0000 0)"
1822
+ "description": "Text on warning (yellow-950, A11Y fix 2026-04-30 — was base.white at 1.53 contrast, now 9.52)",
1823
+ "light": "oklch(28.57% 0.0639 53.81)",
1824
+ "dark": "oklch(28.57% 0.0639 53.81)"
1825
1825
  },
1826
1826
  {
1827
1827
  "name": "warning-subtle",
@@ -2879,7 +2879,7 @@
2879
2879
  "name": "radius-full",
2880
2880
  "cssVar": "--radius-full",
2881
2881
  "type": "dimension",
2882
- "description": "Fully rounded — alias of radius.pill for Tailwind compat (rounded-full utility)",
2882
+ "description": "Fully rounded — alias of radius.pill for Tailwind compat (rounded-full utility, kept at 9999px)",
2883
2883
  "value": "9999px"
2884
2884
  },
2885
2885
  {
@@ -3499,7 +3499,7 @@
3499
3499
  "name": "duration-slow",
3500
3500
  "cssVar": "--duration-slow",
3501
3501
  "type": "duration",
3502
- "description": "(Legacy alias of duration-moderate; Figma slow=400ms pendente Gabriel).",
3502
+ "description": "Alias de duration-moderate. Mantido por compatibilidade com consumidores legados.",
3503
3503
  "value": "300ms"
3504
3504
  },
3505
3505
  {
@@ -3516,89 +3516,61 @@
3516
3516
  "description": "Splash screens, transições de página, animações de destaque.",
3517
3517
  "value": "700ms"
3518
3518
  },
3519
+ {
3520
+ "name": "ease-bounce",
3521
+ "cssVar": "--ease-bounce",
3522
+ "type": "cubicBezier",
3523
+ "description": "Pendente — Wagner publicará no Figma. Curva exagerada com overshoot duplo.",
3524
+ "value": "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
3525
+ },
3519
3526
  {
3520
3527
  "name": "ease-default",
3521
3528
  "cssVar": "--ease-default",
3522
3529
  "type": "cubicBezier",
3523
- "description": "Padrão do sistema — sai devagar, chega devagar. Tabs, sliders, reordenação.",
3530
+ "description": "Padrão do sistema — sai devagar, chega devagar. Movimentos que ocorrem no mesmo plano: tabs, sliders, reordenação de listas.",
3524
3531
  "value": "cubic-bezier(0.4, 0, 0.2, 1)"
3525
3532
  },
3526
3533
  {
3527
3534
  "name": "ease-emphasized",
3528
3535
  "cssVar": "--ease-emphasized",
3529
3536
  "type": "cubicBezier",
3530
- "description": "M3 Emphasized — desaceleração dramática. Modais grandes, drawers, transições de página.",
3537
+ "description": "M3 Emphasized — desaceleração dramática no final. Modais grandes, drawers, transições de página. Comunica peso e importância.",
3531
3538
  "value": "cubic-bezier(0.2, 0, 0, 1)"
3532
3539
  },
3533
3540
  {
3534
3541
  "name": "ease-in",
3535
3542
  "cssVar": "--ease-in",
3536
3543
  "type": "cubicBezier",
3537
- "description": "Começa devagar, termina rápido. Saídas elemento que SAI da tela.",
3544
+ "description": "Começa devagar, termina rápido. Exclusivo para saídas: elemento que SAI da tela. Transmite que o elemento 'vai embora'.",
3538
3545
  "value": "cubic-bezier(0.4, 0, 1, 1)"
3539
3546
  },
3547
+ {
3548
+ "name": "ease-in-out",
3549
+ "cssVar": "--ease-in-out",
3550
+ "type": "cubicBezier",
3551
+ "description": "Pendente — Wagner publicará no Figma. Usado provisoriamente como alias de --ease-default.",
3552
+ "value": "cubic-bezier(0.4, 0, 0.2, 1)"
3553
+ },
3540
3554
  {
3541
3555
  "name": "ease-linear",
3542
3556
  "cssVar": "--ease-linear",
3543
3557
  "type": "cubicBezier",
3544
- "description": "Velocidade constante. Loaders rotativos, progress bars de duração fixa.",
3558
+ "description": "Velocidade constante do início ao fim. Loaders rotativos, progress bars de duração fixa. Nunca use para entradas/saídas de elementos.",
3545
3559
  "value": "cubic-bezier(0, 0, 1, 1)"
3546
3560
  },
3547
3561
  {
3548
3562
  "name": "ease-out",
3549
3563
  "cssVar": "--ease-out",
3550
3564
  "type": "cubicBezier",
3551
- "description": "Começa rápido, desacelera ao chegar. Entradas elemento que ENTRA na tela.",
3565
+ "description": "Começa rápido, desacelera ao chegar. Exclusivo para entradas: elemento que ENTRA na tela. Transmite que o elemento 'chegou'.",
3552
3566
  "value": "cubic-bezier(0, 0, 0.2, 1)"
3553
3567
  },
3554
3568
  {
3555
3569
  "name": "ease-spring",
3556
3570
  "cssVar": "--ease-spring",
3557
3571
  "type": "cubicBezier",
3558
- "description": "Ultrapassa levemente o destino e volta (bounce). Menus, cards de destaque.",
3559
- "value": "cubic-bezier(0.36, 1.56, 0.64, 1)"
3560
- },
3561
- {
3562
- "name": "easing-bounce",
3563
- "cssVar": "--easing-bounce",
3564
- "type": "cubicBezier",
3565
- "description": "(Legacy) Sem equivalente Figma — usar ease-spring.",
3566
- "value": "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
3567
- },
3568
- {
3569
- "name": "easing-default",
3570
- "cssVar": "--easing-default",
3571
- "type": "cubicBezier",
3572
- "description": "(Legacy alias of --ease-default)",
3573
- "value": "cubic-bezier(0.4, 0, 0.2, 1)"
3574
- },
3575
- {
3576
- "name": "easing-in",
3577
- "cssVar": "--easing-in",
3578
- "type": "cubicBezier",
3579
- "description": "(Legacy alias of --ease-in)",
3580
- "value": "cubic-bezier(0.4, 0, 1, 1)"
3581
- },
3582
- {
3583
- "name": "easing-in-out",
3584
- "cssVar": "--easing-in-out",
3585
- "type": "cubicBezier",
3586
- "description": "(Legacy) Sem equivalente Figma direto.",
3587
- "value": "cubic-bezier(0.4, 0, 0.2, 1)"
3588
- },
3589
- {
3590
- "name": "easing-out",
3591
- "cssVar": "--easing-out",
3592
- "type": "cubicBezier",
3593
- "description": "(Legacy alias of --ease-out)",
3594
- "value": "cubic-bezier(0, 0, 0.2, 1)"
3595
- },
3596
- {
3597
- "name": "easing-spring",
3598
- "cssVar": "--easing-spring",
3599
- "type": "cubicBezier",
3600
- "description": "(Legacy) Spring effect — Figma usa cubic-bezier(0.36, 1.56, 0.64, 1).",
3601
- "value": "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
3572
+ "description": "Ultrapassa levemente o destino e volta (bounce). Menus, cards de destaque, interações lúdicas. Não use em interfaces densas ou corporativas.",
3573
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
3602
3574
  }
3603
3575
  ]
3604
3576
  },
@@ -4116,7 +4088,7 @@
4116
4088
  "name": "avatar-fallback-text-warning",
4117
4089
  "cssVar": "--avatar-fallback-text-warning",
4118
4090
  "type": "color",
4119
- "value": "oklch(100.00% 0.0000 0)"
4091
+ "value": "oklch(28.57% 0.0639 53.81)"
4120
4092
  },
4121
4093
  {
4122
4094
  "name": "avatar-radius-circle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etus/tokens",
3
- "version": "0.2.0",
3
+ "version": "1.0.1",
4
4
  "description": "Seven Design System - Design tokens (CSS variables) for ETUS applications",
5
5
  "license": "MIT",
6
6
  "repository": {