@aziontech/theme 2.5.0 → 2.7.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.
Files changed (129) hide show
  1. package/dist/v3/globals.css +65 -92
  2. package/dist/v3/globals.scss +65 -92
  3. package/dist/v3/tailwind-preset.js +0 -26
  4. package/dist/v3/tailwind.config.js +0 -26
  5. package/dist/v4/globals.css +28 -53
  6. package/dist/v4/globals.scss +28 -53
  7. package/package.json +6 -13
  8. package/src/scripts/build-tokens.mjs +1 -27
  9. package/src/tests/tokens.html +0 -3
  10. package/src/tokens/README.md +0 -17
  11. package/src/tokens/index.js +0 -1
  12. package/src/tokens/primitives/colors/alpha.js +10 -10
  13. package/src/tokens/primitives/colors/colors.js +11 -11
  14. package/src/tokens/primitives/shape/shape.js +8 -8
  15. package/src/tokens/semantic/texts.data.js +4 -43
  16. package/src/tokens/theme/background.js +1 -1
  17. package/src/tokens/theme/border.js +1 -1
  18. package/src/tokens/theme/feedback/danger.js +6 -6
  19. package/src/tokens/theme/feedback/info.js +2 -2
  20. package/src/tokens/theme/feedback/success.js +5 -5
  21. package/src/tokens/theme/feedback/warning.js +6 -6
  22. package/src/tokens/theme/primary.js +4 -4
  23. package/src/tokens/theme/text.js +4 -6
  24. package/src/scripts/css-vars.d.ts +0 -7
  25. package/src/scripts/css-vars.d.ts.map +0 -1
  26. package/src/scripts/refs.d.ts +0 -5
  27. package/src/scripts/refs.d.ts.map +0 -1
  28. package/src/scripts/resolve.d.ts +0 -5
  29. package/src/scripts/resolve.d.ts.map +0 -1
  30. package/src/tokens/index.d.ts +0 -6
  31. package/src/tokens/index.d.ts.map +0 -1
  32. package/src/tokens/primitives/animations/animate.d.ts +0 -29
  33. package/src/tokens/primitives/animations/animate.d.ts.map +0 -1
  34. package/src/tokens/primitives/animations/ease.d.ts +0 -10
  35. package/src/tokens/primitives/animations/ease.d.ts.map +0 -1
  36. package/src/tokens/primitives/border-widths.d.ts +0 -12
  37. package/src/tokens/primitives/border-widths.d.ts.map +0 -1
  38. package/src/tokens/primitives/breakpoints.d.ts +0 -12
  39. package/src/tokens/primitives/breakpoints.d.ts.map +0 -1
  40. package/src/tokens/primitives/colors/alpha.d.ts +0 -109
  41. package/src/tokens/primitives/colors/alpha.d.ts.map +0 -1
  42. package/src/tokens/primitives/colors/brand.d.ts +0 -46
  43. package/src/tokens/primitives/colors/brand.d.ts.map +0 -1
  44. package/src/tokens/primitives/colors/colors.d.ts +0 -141
  45. package/src/tokens/primitives/colors/colors.d.ts.map +0 -1
  46. package/src/tokens/primitives/effects/blur.d.ts +0 -14
  47. package/src/tokens/primitives/effects/blur.d.ts.map +0 -1
  48. package/src/tokens/primitives/effects/drop-shadow.d.ts +0 -13
  49. package/src/tokens/primitives/effects/drop-shadow.d.ts.map +0 -1
  50. package/src/tokens/primitives/effects/inset-shadow.d.ts +0 -10
  51. package/src/tokens/primitives/effects/inset-shadow.d.ts.map +0 -1
  52. package/src/tokens/primitives/effects/opacity.d.ts +0 -11
  53. package/src/tokens/primitives/effects/opacity.d.ts.map +0 -1
  54. package/src/tokens/primitives/effects/perspective.d.ts +0 -12
  55. package/src/tokens/primitives/effects/perspective.d.ts.map +0 -1
  56. package/src/tokens/primitives/effects/shadow.d.ts +0 -14
  57. package/src/tokens/primitives/effects/shadow.d.ts.map +0 -1
  58. package/src/tokens/primitives/ring-offset.d.ts +0 -8
  59. package/src/tokens/primitives/ring-offset.d.ts.map +0 -1
  60. package/src/tokens/primitives/shape/aspect-video.d.ts +0 -6
  61. package/src/tokens/primitives/shape/aspect-video.d.ts.map +0 -1
  62. package/src/tokens/primitives/shape/container.d.ts +0 -20
  63. package/src/tokens/primitives/shape/container.d.ts.map +0 -1
  64. package/src/tokens/primitives/shape/height.d.ts +0 -35
  65. package/src/tokens/primitives/shape/height.d.ts.map +0 -1
  66. package/src/tokens/primitives/shape/radius.d.ts +0 -16
  67. package/src/tokens/primitives/shape/radius.d.ts.map +0 -1
  68. package/src/tokens/primitives/shape/shape.d.ts +0 -12
  69. package/src/tokens/primitives/shape/shape.d.ts.map +0 -1
  70. package/src/tokens/primitives/shape/size.d.ts +0 -35
  71. package/src/tokens/primitives/shape/size.d.ts.map +0 -1
  72. package/src/tokens/primitives/shape/spacing.d.ts +0 -36
  73. package/src/tokens/primitives/shape/spacing.d.ts.map +0 -1
  74. package/src/tokens/primitives/shape/width.d.ts +0 -46
  75. package/src/tokens/primitives/shape/width.d.ts.map +0 -1
  76. package/src/tokens/primitives/typography/font-family.d.ts +0 -10
  77. package/src/tokens/primitives/typography/font-family.d.ts.map +0 -1
  78. package/src/tokens/primitives/typography/font-size.d.ts +0 -33
  79. package/src/tokens/primitives/typography/font-size.d.ts.map +0 -1
  80. package/src/tokens/primitives/typography/font-weight.d.ts +0 -16
  81. package/src/tokens/primitives/typography/font-weight.d.ts.map +0 -1
  82. package/src/tokens/primitives/typography/leading.d.ts +0 -12
  83. package/src/tokens/primitives/typography/leading.d.ts.map +0 -1
  84. package/src/tokens/primitives/typography/line-height.d.ts +0 -16
  85. package/src/tokens/primitives/typography/line-height.d.ts.map +0 -1
  86. package/src/tokens/primitives/typography/tracking.d.ts +0 -13
  87. package/src/tokens/primitives/typography/tracking.d.ts.map +0 -1
  88. package/src/tokens/semantic/animations.d.ts +0 -3
  89. package/src/tokens/semantic/animations.d.ts.map +0 -1
  90. package/src/tokens/semantic/colors.d.ts +0 -296
  91. package/src/tokens/semantic/colors.d.ts.map +0 -1
  92. package/src/tokens/semantic/containers.d.ts +0 -3
  93. package/src/tokens/semantic/containers.d.ts.map +0 -1
  94. package/src/tokens/semantic/containers.data.d.ts +0 -32
  95. package/src/tokens/semantic/containers.data.d.ts.map +0 -1
  96. package/src/tokens/semantic/spacings.d.ts +0 -3
  97. package/src/tokens/semantic/spacings.d.ts.map +0 -1
  98. package/src/tokens/semantic/spacings.data.d.ts +0 -39
  99. package/src/tokens/semantic/spacings.data.d.ts.map +0 -1
  100. package/src/tokens/semantic/texts.d.ts +0 -3
  101. package/src/tokens/semantic/texts.d.ts.map +0 -1
  102. package/src/tokens/semantic/texts.data.d.ts +0 -184
  103. package/src/tokens/semantic/texts.data.d.ts.map +0 -1
  104. package/src/tokens/theme/accent.d.ts +0 -35
  105. package/src/tokens/theme/accent.d.ts.map +0 -1
  106. package/src/tokens/theme/background.d.ts +0 -77
  107. package/src/tokens/theme/background.d.ts.map +0 -1
  108. package/src/tokens/theme/border.d.ts +0 -35
  109. package/src/tokens/theme/border.d.ts.map +0 -1
  110. package/src/tokens/theme/feedback/danger.d.ts +0 -29
  111. package/src/tokens/theme/feedback/danger.d.ts.map +0 -1
  112. package/src/tokens/theme/feedback/info.d.ts +0 -29
  113. package/src/tokens/theme/feedback/info.d.ts.map +0 -1
  114. package/src/tokens/theme/feedback/success.d.ts +0 -29
  115. package/src/tokens/theme/feedback/success.d.ts.map +0 -1
  116. package/src/tokens/theme/feedback/warning.d.ts +0 -29
  117. package/src/tokens/theme/feedback/warning.d.ts.map +0 -1
  118. package/src/tokens/theme/primary.d.ts +0 -35
  119. package/src/tokens/theme/primary.d.ts.map +0 -1
  120. package/src/tokens/theme/ring.d.ts +0 -17
  121. package/src/tokens/theme/ring.d.ts.map +0 -1
  122. package/src/tokens/theme/secondary.d.ts +0 -35
  123. package/src/tokens/theme/secondary.d.ts.map +0 -1
  124. package/src/tokens/theme/surfaces.d.ts +0 -47
  125. package/src/tokens/theme/surfaces.d.ts.map +0 -1
  126. package/src/tokens/theme/text.d.ts +0 -41
  127. package/src/tokens/theme/text.d.ts.map +0 -1
  128. package/src/tokens/theme.d.ts +0 -171
  129. package/src/tokens/theme.d.ts.map +0 -1
@@ -315,18 +315,6 @@ module.exports = {
315
315
  "lineHeight": "var(--text-heading-sm-line-height)"
316
316
  }
317
317
  ],
318
- "heading-xs": [
319
- "var(--text-heading-xs-font-size)",
320
- {
321
- "lineHeight": "var(--text-heading-xs-line-height)"
322
- }
323
- ],
324
- "heading-xxs": [
325
- "var(--text-heading-xxs-font-size)",
326
- {
327
- "lineHeight": "var(--text-heading-xxs-line-height)"
328
- }
329
- ],
330
318
  "label-lg": [
331
319
  "var(--text-label-lg-font-size)",
332
320
  {
@@ -372,20 +360,6 @@ module.exports = {
372
360
  "lineHeight": "var(--text-body-xs-line-height)"
373
361
  }
374
362
  ],
375
- "tag-sm": [
376
- "var(--text-tag-sm-font-size)",
377
- {
378
- "lineHeight": "var(--text-tag-sm-line-height)",
379
- "fontWeight": "var(--text-tag-sm-font-weight)"
380
- }
381
- ],
382
- "tag-md": [
383
- "var(--text-tag-md-font-size)",
384
- {
385
- "lineHeight": "var(--text-tag-md-line-height)",
386
- "fontWeight": "var(--text-tag-md-font-weight)"
387
- }
388
- ],
389
363
  "body-xxs": [
390
364
  "var(--text-body-xxs-font-size)",
391
365
  {
@@ -82,17 +82,17 @@
82
82
  --color-green-800: #12542B;
83
83
  --color-green-900: #0A2916;
84
84
  --color-green-950: #03170B;
85
- --color-red-50: #FCE8E8;
86
- --color-red-100: #F9D2D2;
87
- --color-red-200: #F3A5A5;
88
- --color-red-300: #ED7878;
89
- --color-red-400: #E74B4B;
90
- --color-red-500: #E51A1A;
91
- --color-red-600: #B71515;
92
- --color-red-700: #891010;
93
- --color-red-800: #5B0B0B;
94
- --color-red-900: #2E0606;
95
- --color-red-950: #170303;
85
+ --color-red-50: #FFE5E5;
86
+ --color-red-100: #FFCCCC;
87
+ --color-red-200: #FECACA;
88
+ --color-red-300: #FCA5A5;
89
+ --color-red-400: #F87171;
90
+ --color-red-500: #EF4444;
91
+ --color-red-600: #DC2626;
92
+ --color-red-700: #B91C1C;
93
+ --color-red-800: #991B1B;
94
+ --color-red-900: #7F1D1D;
95
+ --color-red-950: #430A0A;
96
96
  --color-surface-0: #FFFFFF;
97
97
  --color-surface-50: #FAFAFA;
98
98
  --color-surface-100: #F5F5F5;
@@ -155,16 +155,16 @@
155
155
  --color-alpha-green-700: #22C55EB2;
156
156
  --color-alpha-green-800: #22C55ECC;
157
157
  --color-alpha-green-900: #22C55EE5;
158
- --color-alpha-red-50: #E51A1A0D;
159
- --color-alpha-red-100: #E51A1A1A;
160
- --color-alpha-red-200: #E51A1A33;
161
- --color-alpha-red-300: #E51A1A4D;
162
- --color-alpha-red-400: #E51A1A66;
163
- --color-alpha-red-500: #E51A1A80;
164
- --color-alpha-red-600: #E51A1A99;
165
- --color-alpha-red-700: #E51A1AB2;
166
- --color-alpha-red-800: #E51A1ACC;
167
- --color-alpha-red-900: #E51A1AE5;
158
+ --color-alpha-red-50: #EF44440D;
159
+ --color-alpha-red-100: #EF44441A;
160
+ --color-alpha-red-200: #EF444433;
161
+ --color-alpha-red-300: #EF44444D;
162
+ --color-alpha-red-400: #EF444466;
163
+ --color-alpha-red-500: #EF444480;
164
+ --color-alpha-red-600: #EF444499;
165
+ --color-alpha-red-700: #EF4444B2;
166
+ --color-alpha-red-800: #EF4444CC;
167
+ --color-alpha-red-900: #EF4444E5;
168
168
  --color-alpha-yellow-50: #F7BD080D;
169
169
  --color-alpha-yellow-100: #F7BD081A;
170
170
  --color-alpha-yellow-200: #F7BD0833;
@@ -346,9 +346,9 @@
346
346
  --width-7xl: 1280px;
347
347
  --aspect-video: 16 / 9;
348
348
  --shape-flat: 0;
349
- --shape-card: 8px;
350
- --shape-button: 6px;
351
- --shape-elements: 6px;
349
+ --shape-card: 4px;
350
+ --shape-button: 4px;
351
+ --shape-elements: 4px;
352
352
  --border-width-default: 0.8px;
353
353
  --font-sans: Sora;
354
354
  --font-code: Roboto Mono;
@@ -470,19 +470,15 @@
470
470
  --text-big-number-lg-line-height: 1.20;
471
471
  --text-big-number-lg-font-family: Proto Mono;
472
472
  --text-heading-2xl-font-size: 1.875rem;
473
- --text-heading-2xl-line-height: 1.1;
473
+ --text-heading-2xl-line-height: 1.2;
474
474
  --text-heading-xl-font-size: 1.25rem;
475
- --text-heading-xl-line-height: 1.1;
475
+ --text-heading-xl-line-height: 1.2;
476
476
  --text-heading-lg-font-size: 1.125rem;
477
477
  --text-heading-lg-line-height: 1.2;
478
478
  --text-heading-md-font-size: 1rem;
479
- --text-heading-md-line-height: 1.3;
479
+ --text-heading-md-line-height: 1.2;
480
480
  --text-heading-sm-font-size: 0.875rem;
481
- --text-heading-sm-line-height: 1.4;
482
- --text-heading-xs-font-size: 1rem;
483
- --text-heading-xs-line-height: 1.4;
484
- --text-heading-xxs-font-size: 0.875rem;
485
- --text-heading-xxs-line-height: 1.4;
481
+ --text-heading-sm-line-height: 1.2;
486
482
  --text-label-lg-font-size: 1rem;
487
483
  --text-label-lg-line-height: 1.5;
488
484
  --text-label-lg-font-weight: 500;
@@ -500,12 +496,6 @@
500
496
  --text-body-sm-line-height: 1.5;
501
497
  --text-body-xs-font-size: 0.75rem;
502
498
  --text-body-xs-line-height: 1.5;
503
- --text-tag-sm-font-size: 0.6875rem;
504
- --text-tag-sm-line-height: 1;
505
- --text-tag-sm-font-weight: 600;
506
- --text-tag-md-font-size: 0.75rem;
507
- --text-tag-md-line-height: 1;
508
- --text-tag-md-font-weight: 600;
509
499
  --text-body-xxs-font-size: 0.625rem;
510
500
  --text-body-xxs-line-height: 1.5;
511
501
  --text-overline-md-font-family: Proto Mono;
@@ -533,11 +523,6 @@
533
523
  --text-button-md-font-weight: 600;
534
524
  --text-button-md-line-height: 1;
535
525
  --text-button-md-letter-spacing: 0;
536
- --text-link-font-size: inherit;
537
- --text-link-line-height: inherit;
538
- --text-link-color: var(--text-link);
539
- --text-link-border-radius: var(--shape-elements);
540
- --text-link-transition: all 110ms cubic-bezier(0.39, 0.57, 0.56, 1);
541
526
 
542
527
  @media (min-width: 640px) {
543
528
  --container-px: 2.5rem;
@@ -607,8 +592,6 @@
607
592
  .text-heading-lg { font-size: var(--text-heading-lg-font-size); line-height: var(--text-heading-lg-line-height); }
608
593
  .text-heading-md { font-size: var(--text-heading-md-font-size); line-height: var(--text-heading-md-line-height); }
609
594
  .text-heading-sm { font-size: var(--text-heading-sm-font-size); line-height: var(--text-heading-sm-line-height); }
610
- .text-heading-xs { font-size: var(--text-heading-xs-font-size); line-height: var(--text-heading-xs-line-height); }
611
- .text-heading-xxs { font-size: var(--text-heading-xxs-font-size); line-height: var(--text-heading-xxs-line-height); }
612
595
  .text-label-lg { font-size: var(--text-label-lg-font-size); line-height: var(--text-label-lg-line-height); font-weight: var(--text-label-lg-font-weight); }
613
596
  .text-label-md { font-size: var(--text-label-md-font-size); line-height: var(--text-label-md-line-height); font-weight: var(--text-label-md-font-weight); }
614
597
  .text-label-sm { font-size: var(--text-label-sm-font-size); line-height: var(--text-label-sm-line-height); font-weight: var(--text-label-sm-font-weight); }
@@ -616,18 +599,10 @@
616
599
  .text-body-md { font-size: var(--text-body-md-font-size); line-height: var(--text-body-md-line-height); }
617
600
  .text-body-sm { font-size: var(--text-body-sm-font-size); line-height: var(--text-body-sm-line-height); }
618
601
  .text-body-xs { font-size: var(--text-body-xs-font-size); line-height: var(--text-body-xs-line-height); }
619
- .text-tag-sm { font-size: var(--text-tag-sm-font-size); line-height: var(--text-tag-sm-line-height); font-weight: var(--text-tag-sm-font-weight); }
620
- .text-tag-md { font-size: var(--text-tag-md-font-size); line-height: var(--text-tag-md-line-height); font-weight: var(--text-tag-md-font-weight); }
621
602
  .text-body-xxs { font-size: var(--text-body-xxs-font-size); line-height: var(--text-body-xxs-line-height); }
622
603
  .text-overline-md { font-family: var(--text-overline-md-font-family); font-size: var(--text-overline-md-font-size); line-height: var(--text-overline-md-line-height); letter-spacing: var(--text-overline-md-letter-spacing); text-transform: var(--text-overline-md-text-transform); }
623
604
  .text-overline-sm { font-family: var(--text-overline-sm-font-family); font-size: var(--text-overline-sm-font-size); line-height: var(--text-overline-sm-line-height); letter-spacing: var(--text-overline-sm-letter-spacing); text-transform: var(--text-overline-sm-text-transform); }
624
605
  .text-overline-xs { font-family: var(--text-overline-xs-font-family); font-size: var(--text-overline-xs-font-size); line-height: var(--text-overline-xs-line-height); letter-spacing: var(--text-overline-xs-letter-spacing); text-transform: var(--text-overline-xs-text-transform); }
625
606
  .text-button-lg { font-family: var(--text-button-lg-font-family); font-size: var(--text-button-lg-font-size); font-weight: var(--text-button-lg-font-weight); line-height: var(--text-button-lg-line-height); letter-spacing: var(--text-button-lg-letter-spacing); }
626
607
  .text-button-md { font-family: var(--text-button-md-font-family); font-size: var(--text-button-md-font-size); font-weight: var(--text-button-md-font-weight); line-height: var(--text-button-md-line-height); letter-spacing: var(--text-button-md-letter-spacing); }
627
- .text-link { font-size: var(--text-link-font-size); line-height: var(--text-link-line-height); color: var(--text-link-color); border-radius: var(--text-link-border-radius); transition: var(--text-link-transition); }
628
- .text-link:hover { color: var(--text-link-hover); text-decoration: underline; }
629
- .text-link:focus-visible { outline: 2px solid var(--ring-color); outline-offset: 2px; }
630
- @media (prefers-reduced-motion: reduce) {
631
- .text-link { transition: none; }
632
- }
633
608
  }
@@ -82,17 +82,17 @@
82
82
  --color-green-800: #12542B;
83
83
  --color-green-900: #0A2916;
84
84
  --color-green-950: #03170B;
85
- --color-red-50: #FCE8E8;
86
- --color-red-100: #F9D2D2;
87
- --color-red-200: #F3A5A5;
88
- --color-red-300: #ED7878;
89
- --color-red-400: #E74B4B;
90
- --color-red-500: #E51A1A;
91
- --color-red-600: #B71515;
92
- --color-red-700: #891010;
93
- --color-red-800: #5B0B0B;
94
- --color-red-900: #2E0606;
95
- --color-red-950: #170303;
85
+ --color-red-50: #FFE5E5;
86
+ --color-red-100: #FFCCCC;
87
+ --color-red-200: #FECACA;
88
+ --color-red-300: #FCA5A5;
89
+ --color-red-400: #F87171;
90
+ --color-red-500: #EF4444;
91
+ --color-red-600: #DC2626;
92
+ --color-red-700: #B91C1C;
93
+ --color-red-800: #991B1B;
94
+ --color-red-900: #7F1D1D;
95
+ --color-red-950: #430A0A;
96
96
  --color-surface-0: #FFFFFF;
97
97
  --color-surface-50: #FAFAFA;
98
98
  --color-surface-100: #F5F5F5;
@@ -155,16 +155,16 @@
155
155
  --color-alpha-green-700: #22C55EB2;
156
156
  --color-alpha-green-800: #22C55ECC;
157
157
  --color-alpha-green-900: #22C55EE5;
158
- --color-alpha-red-50: #E51A1A0D;
159
- --color-alpha-red-100: #E51A1A1A;
160
- --color-alpha-red-200: #E51A1A33;
161
- --color-alpha-red-300: #E51A1A4D;
162
- --color-alpha-red-400: #E51A1A66;
163
- --color-alpha-red-500: #E51A1A80;
164
- --color-alpha-red-600: #E51A1A99;
165
- --color-alpha-red-700: #E51A1AB2;
166
- --color-alpha-red-800: #E51A1ACC;
167
- --color-alpha-red-900: #E51A1AE5;
158
+ --color-alpha-red-50: #EF44440D;
159
+ --color-alpha-red-100: #EF44441A;
160
+ --color-alpha-red-200: #EF444433;
161
+ --color-alpha-red-300: #EF44444D;
162
+ --color-alpha-red-400: #EF444466;
163
+ --color-alpha-red-500: #EF444480;
164
+ --color-alpha-red-600: #EF444499;
165
+ --color-alpha-red-700: #EF4444B2;
166
+ --color-alpha-red-800: #EF4444CC;
167
+ --color-alpha-red-900: #EF4444E5;
168
168
  --color-alpha-yellow-50: #F7BD080D;
169
169
  --color-alpha-yellow-100: #F7BD081A;
170
170
  --color-alpha-yellow-200: #F7BD0833;
@@ -346,9 +346,9 @@
346
346
  --width-7xl: 1280px;
347
347
  --aspect-video: 16 / 9;
348
348
  --shape-flat: 0;
349
- --shape-card: 8px;
350
- --shape-button: 6px;
351
- --shape-elements: 6px;
349
+ --shape-card: 4px;
350
+ --shape-button: 4px;
351
+ --shape-elements: 4px;
352
352
  --border-width-default: 0.8px;
353
353
  --font-sans: Sora;
354
354
  --font-code: Roboto Mono;
@@ -470,19 +470,15 @@
470
470
  --text-big-number-lg-line-height: 1.20;
471
471
  --text-big-number-lg-font-family: Proto Mono;
472
472
  --text-heading-2xl-font-size: 1.875rem;
473
- --text-heading-2xl-line-height: 1.1;
473
+ --text-heading-2xl-line-height: 1.2;
474
474
  --text-heading-xl-font-size: 1.25rem;
475
- --text-heading-xl-line-height: 1.1;
475
+ --text-heading-xl-line-height: 1.2;
476
476
  --text-heading-lg-font-size: 1.125rem;
477
477
  --text-heading-lg-line-height: 1.2;
478
478
  --text-heading-md-font-size: 1rem;
479
- --text-heading-md-line-height: 1.3;
479
+ --text-heading-md-line-height: 1.2;
480
480
  --text-heading-sm-font-size: 0.875rem;
481
- --text-heading-sm-line-height: 1.4;
482
- --text-heading-xs-font-size: 1rem;
483
- --text-heading-xs-line-height: 1.4;
484
- --text-heading-xxs-font-size: 0.875rem;
485
- --text-heading-xxs-line-height: 1.4;
481
+ --text-heading-sm-line-height: 1.2;
486
482
  --text-label-lg-font-size: 1rem;
487
483
  --text-label-lg-line-height: 1.5;
488
484
  --text-label-lg-font-weight: 500;
@@ -500,12 +496,6 @@
500
496
  --text-body-sm-line-height: 1.5;
501
497
  --text-body-xs-font-size: 0.75rem;
502
498
  --text-body-xs-line-height: 1.5;
503
- --text-tag-sm-font-size: 0.6875rem;
504
- --text-tag-sm-line-height: 1;
505
- --text-tag-sm-font-weight: 600;
506
- --text-tag-md-font-size: 0.75rem;
507
- --text-tag-md-line-height: 1;
508
- --text-tag-md-font-weight: 600;
509
499
  --text-body-xxs-font-size: 0.625rem;
510
500
  --text-body-xxs-line-height: 1.5;
511
501
  --text-overline-md-font-family: Proto Mono;
@@ -533,11 +523,6 @@
533
523
  --text-button-md-font-weight: 600;
534
524
  --text-button-md-line-height: 1;
535
525
  --text-button-md-letter-spacing: 0;
536
- --text-link-font-size: inherit;
537
- --text-link-line-height: inherit;
538
- --text-link-color: var(--text-link);
539
- --text-link-border-radius: var(--shape-elements);
540
- --text-link-transition: all 110ms cubic-bezier(0.39, 0.57, 0.56, 1);
541
526
 
542
527
  @media (min-width: 640px) {
543
528
  --container-px: 2.5rem;
@@ -607,8 +592,6 @@
607
592
  .text-heading-lg { font-size: var(--text-heading-lg-font-size); line-height: var(--text-heading-lg-line-height); }
608
593
  .text-heading-md { font-size: var(--text-heading-md-font-size); line-height: var(--text-heading-md-line-height); }
609
594
  .text-heading-sm { font-size: var(--text-heading-sm-font-size); line-height: var(--text-heading-sm-line-height); }
610
- .text-heading-xs { font-size: var(--text-heading-xs-font-size); line-height: var(--text-heading-xs-line-height); }
611
- .text-heading-xxs { font-size: var(--text-heading-xxs-font-size); line-height: var(--text-heading-xxs-line-height); }
612
595
  .text-label-lg { font-size: var(--text-label-lg-font-size); line-height: var(--text-label-lg-line-height); font-weight: var(--text-label-lg-font-weight); }
613
596
  .text-label-md { font-size: var(--text-label-md-font-size); line-height: var(--text-label-md-line-height); font-weight: var(--text-label-md-font-weight); }
614
597
  .text-label-sm { font-size: var(--text-label-sm-font-size); line-height: var(--text-label-sm-line-height); font-weight: var(--text-label-sm-font-weight); }
@@ -616,18 +599,10 @@
616
599
  .text-body-md { font-size: var(--text-body-md-font-size); line-height: var(--text-body-md-line-height); }
617
600
  .text-body-sm { font-size: var(--text-body-sm-font-size); line-height: var(--text-body-sm-line-height); }
618
601
  .text-body-xs { font-size: var(--text-body-xs-font-size); line-height: var(--text-body-xs-line-height); }
619
- .text-tag-sm { font-size: var(--text-tag-sm-font-size); line-height: var(--text-tag-sm-line-height); font-weight: var(--text-tag-sm-font-weight); }
620
- .text-tag-md { font-size: var(--text-tag-md-font-size); line-height: var(--text-tag-md-line-height); font-weight: var(--text-tag-md-font-weight); }
621
602
  .text-body-xxs { font-size: var(--text-body-xxs-font-size); line-height: var(--text-body-xxs-line-height); }
622
603
  .text-overline-md { font-family: var(--text-overline-md-font-family); font-size: var(--text-overline-md-font-size); line-height: var(--text-overline-md-line-height); letter-spacing: var(--text-overline-md-letter-spacing); text-transform: var(--text-overline-md-text-transform); }
623
604
  .text-overline-sm { font-family: var(--text-overline-sm-font-family); font-size: var(--text-overline-sm-font-size); line-height: var(--text-overline-sm-line-height); letter-spacing: var(--text-overline-sm-letter-spacing); text-transform: var(--text-overline-sm-text-transform); }
624
605
  .text-overline-xs { font-family: var(--text-overline-xs-font-family); font-size: var(--text-overline-xs-font-size); line-height: var(--text-overline-xs-line-height); letter-spacing: var(--text-overline-xs-letter-spacing); text-transform: var(--text-overline-xs-text-transform); }
625
606
  .text-button-lg { font-family: var(--text-button-lg-font-family); font-size: var(--text-button-lg-font-size); font-weight: var(--text-button-lg-font-weight); line-height: var(--text-button-lg-line-height); letter-spacing: var(--text-button-lg-letter-spacing); }
626
607
  .text-button-md { font-family: var(--text-button-md-font-family); font-size: var(--text-button-md-font-size); font-weight: var(--text-button-md-font-weight); line-height: var(--text-button-md-line-height); letter-spacing: var(--text-button-md-letter-spacing); }
627
- .text-link { font-size: var(--text-link-font-size); line-height: var(--text-link-line-height); color: var(--text-link-color); border-radius: var(--text-link-border-radius); transition: var(--text-link-transition); }
628
- .text-link:hover { color: var(--text-link-hover); text-decoration: underline; }
629
- .text-link:focus-visible { outline: 2px solid var(--ring-color); outline-offset: 2px; }
630
- @media (prefers-reduced-motion: reduce) {
631
- .text-link { transition: none; }
632
- }
633
608
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aziontech/theme",
3
3
  "type": "module",
4
- "version": "2.5.0",
4
+ "version": "2.7.1",
5
5
  "author": "aziontech",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -15,11 +15,8 @@
15
15
  "build:tokens": "node src/scripts/build-tokens.mjs",
16
16
  "build:tokens:v3": "node src/scripts/build-tokens.mjs --target=v3",
17
17
  "build:tokens:v4": "node src/scripts/build-tokens.mjs --target=v4",
18
- "build:css:v3": "pnpm build:tokens:v3 && tailwindcss -c dist/v3/tailwind.config.js -i dist/v3/globals.css -o dist/v3/output.css",
19
- "test:tokens:v3": "pnpm build:css:v3 && open src/tests/tokens.html",
20
- "clean:dts": "find src -name '*.d.ts' -delete && find src -name '*.d.ts.map' -delete",
21
- "build:dts": "pnpm clean:dts && vue-tsc --declaration --emitDeclarationOnly",
22
- "prepack": "pnpm build:dts"
18
+ "build:css:v3": "npm run build:tokens:v3 && tailwindcss -c dist/v3/tailwind.config.js -i dist/v3/globals.css -o dist/v3/output.css",
19
+ "test:tokens:v3": "npm run build:css:v3 && open src/tests/tokens.html"
23
20
  },
24
21
  "publishConfig": {
25
22
  "access": "public"
@@ -34,11 +31,8 @@
34
31
  "ui-kit",
35
32
  "token-generator"
36
33
  ],
37
- "dependencies": {
38
- "tailwindcss": "^3.4.17",
39
- "vue-tsc": "^3.2.5"
40
- },
41
34
  "devDependencies": {
35
+ "tailwindcss": "^3.4.17",
42
36
  "@semantic-release/changelog": "^6.0.3",
43
37
  "@semantic-release/commit-analyzer": "^10.0.1",
44
38
  "@semantic-release/exec": "^6.0.3",
@@ -59,9 +53,8 @@
59
53
  ],
60
54
  "exports": {
61
55
  ".": "./default.js",
62
- "./animations": "./src/tokens/primitives/animations/animate.js",
63
- "./colors": "./src/tokens/primitives/colors/colors.js",
64
- "./texts": "./src/tokens/semantic/texts.data.js",
56
+ "./scripts/compile-primitives": "./src/scripts/compile-primitives.js",
57
+ "./scripts/compile-theme": "./src/scripts/compile-theme.js",
65
58
  "./tailwind-preset": "./dist/v3/tailwind-preset.js",
66
59
  "./tailwind-preset/v3": "./dist/v3/tailwind-preset.js",
67
60
  "./tailwind/semantic-spacings-plugin": "./src/tokens/semantic/spacings.js",
@@ -70,7 +70,6 @@ const flattenBundle = (data) => {
70
70
  const byBp = {};
71
71
  for (const [key, bundle] of Object.entries(data)) {
72
72
  for (const [prop, val] of Object.entries(bundle)) {
73
- if (prop === 'states') continue;
74
73
  const varName = `--${key}-${kebab(prop)}`;
75
74
  for (const [bp, v] of Object.entries(splitResponsive(val))) {
76
75
  (byBp[bp] ||= {})[varName] = v;
@@ -80,16 +79,6 @@ const flattenBundle = (data) => {
80
79
  return byBp;
81
80
  };
82
81
 
83
- const pseudoClassName = (key) => {
84
- if (key === 'focusVisible') return 'focus-visible';
85
- return key;
86
- };
87
-
88
- const formatStateDecls = (rules) =>
89
- Object.entries(rules)
90
- .map(([prop, val]) => `${kebab(prop)}: ${val}`)
91
- .join('; ');
92
-
93
82
  const SEMANTIC_PREFIXES = ['--text-', '--background-', '--border-'];
94
83
  const isSemanticVar = (key) => SEMANTIC_PREFIXES.some((p) => key.startsWith(p));
95
84
  const pickSemantic = (vars) =>
@@ -133,24 +122,10 @@ const emitComponentClasses = (indent = ' ') => {
133
122
  lines.push('');
134
123
  lines.push(`${indent}/* ── Texts ── */`);
135
124
  for (const [key, bundle] of Object.entries(textsData)) {
136
- const baseProps = Object.keys(bundle).filter((prop) => prop !== 'states');
137
- const decls = baseProps
125
+ const decls = Object.keys(bundle)
138
126
  .map((prop) => `${kebab(prop)}: var(--${key}-${kebab(prop)});`)
139
127
  .join(' ');
140
128
  lines.push(`${indent}.${key} { ${decls} }`);
141
-
142
- if (bundle.states) {
143
- for (const [pseudo, rules] of Object.entries(bundle.states)) {
144
- const pseudoSuffix = pseudoClassName(pseudo);
145
- lines.push(`${indent}.${key}:${pseudoSuffix} { ${formatStateDecls(rules)}; }`);
146
- }
147
- }
148
-
149
- if (bundle.transition) {
150
- lines.push(`${indent}@media (prefers-reduced-motion: reduce) {`);
151
- lines.push(`${indent} .${key} { transition: none; }`);
152
- lines.push(`${indent}}`);
153
- }
154
129
  }
155
130
 
156
131
  return lines.join('\n');
@@ -252,7 +227,6 @@ const buildPresetData = () => {
252
227
  const fontSize = {};
253
228
  for (const [key, bundle] of Object.entries(textsData)) {
254
229
  if (!('fontSize' in bundle)) continue;
255
- if (bundle.fontSize === 'inherit') continue;
256
230
  const meta = {};
257
231
  if ('lineHeight' in bundle) meta.lineHeight = `var(--${key}-line-height)`;
258
232
  if ('letterSpacing' in bundle) meta.letterSpacing = `var(--${key}-letter-spacing)`;
@@ -37,9 +37,6 @@
37
37
  <p class="text-heading-sm">heading-sm — responsive</p>
38
38
  <p class="text-body-lg">body-lg — sm only at md</p>
39
39
  <p class="text-body-md">body-md — static</p>
40
- <p class="text-body-md">
41
- body-md with <a href="#" class="text-link">inline text-link</a>
42
- </p>
43
40
  <p class="text-overline-md">overline-md — sm only at sm</p>
44
41
  </section>
45
42
 
@@ -310,23 +310,6 @@ Only useful if you can't precompile and import `globals.css` — production usag
310
310
 
311
311
  2. Rebuild. `build-tokens.mjs` emits the base var in `:root`, per-breakpoint `@media` overrides, **and** a matching `.gap-2xl { gap: var(--gap-2xl) }` utility.
312
312
 
313
- For typography bundles that need hover/focus without Tailwind utilities, add an optional `states` object (not flattened to CSS vars). Example — inline prose links in `texts.data.js`:
314
-
315
- ```js
316
- 'text-link': {
317
- fontSize: 'inherit',
318
- lineHeight: 'inherit',
319
- color: 'var(--text-link)',
320
- transition: 'color 150ms ease-out',
321
- states: {
322
- hover: { color: 'var(--text-link-hover)', textDecoration: 'underline' },
323
- 'focus-visible': { outline: '2px solid var(--ring-color)', outlineOffset: '2px' },
324
- },
325
- },
326
- ```
327
-
328
- Bundles with `fontSize: 'inherit'` are omitted from the Tailwind `fontSize` preset (avoids clashing with `textColor.link` → class `text-link`). Interaction styles are emitted under `@layer components` as `.text-link:hover`, etc.
329
-
330
313
  ---
331
314
 
332
315
  ## 🔗 Token references (`tokenRef`)
@@ -5,5 +5,4 @@
5
5
  export { createCssVars, cssVarsString, injectCssVars } from '../scripts/css-vars.js';
6
6
  export * from './primitives/colors/colors.js';
7
7
  export * from './semantic/colors.js';
8
- export { textsData } from './semantic/texts.data.js';
9
8
  export * from './theme.js';
@@ -60,16 +60,16 @@ export const alpha = {
60
60
  '900': '#22C55EE5',
61
61
  },
62
62
  red: {
63
- '50': '#E51A1A0D',
64
- '100': '#E51A1A1A',
65
- '200': '#E51A1A33',
66
- '300': '#E51A1A4D',
67
- '400': '#E51A1A66',
68
- '500': '#E51A1A80',
69
- '600': '#E51A1A99',
70
- '700': '#E51A1AB2',
71
- '800': '#E51A1ACC',
72
- '900': '#E51A1AE5',
63
+ '50': '#EF44440D',
64
+ '100': '#EF44441A',
65
+ '200': '#EF444433',
66
+ '300': '#EF44444D',
67
+ '400': '#EF444466',
68
+ '500': '#EF444480',
69
+ '600': '#EF444499',
70
+ '700': '#EF4444B2',
71
+ '800': '#EF4444CC',
72
+ '900': '#EF4444E5',
73
73
  },
74
74
  yellow: {
75
75
  '50': '#F7BD080D',
@@ -101,17 +101,17 @@ export const primitives = {
101
101
  },
102
102
 
103
103
  red: {
104
- '50': '#FCE8E8',
105
- '100': '#F9D2D2',
106
- '200': '#F3A5A5',
107
- '300': '#ED7878',
108
- '400': '#E74B4B',
109
- '500': '#E51A1A',
110
- '600': '#B71515',
111
- '700': '#891010',
112
- '800': '#5B0B0B',
113
- '900': '#2E0606',
114
- '950': '#170303',
104
+ '50': '#FFE5E5',
105
+ '100': '#FFCCCC',
106
+ '200': '#FECACA',
107
+ '300': '#FCA5A5',
108
+ '400': '#F87171',
109
+ '500': '#EF4444',
110
+ '600': '#DC2626',
111
+ '700': '#B91C1C',
112
+ '800': '#991B1B',
113
+ '900': '#7F1D1D',
114
+ '950': '#430A0A',
115
115
  },
116
116
  brand,
117
117
  surface: {
@@ -1,12 +1,12 @@
1
- import { radius } from './radius.js'
2
- import { borderWidths } from '../border-widths.js'
1
+ import { radius } from './radius.js';
2
+ import { borderWidths } from '../border-widths.js';
3
3
 
4
4
  export const shape = {
5
5
  'shape-flat': radius.none,
6
- 'shape-card': radius['lg'],
7
- 'shape-button': radius['md'],
8
- 'shape-elements': radius['md'],
9
- 'border-width-default': borderWidths[1]
10
- }
6
+ 'shape-card': radius.DEFAULT,
7
+ 'shape-button': radius.DEFAULT,
8
+ 'shape-elements': radius.DEFAULT,
9
+ 'border-width-default': borderWidths[1],
10
+ };
11
11
 
12
- export default { shape }
12
+ export default { shape };
@@ -6,9 +6,6 @@
6
6
  * from the legacy `texts.js` plugin — direction inverted from desktop-first
7
7
  * (max-width) to mobile-first (min-width).
8
8
  *
9
- * Optional `states` emits pseudo-class rules (e.g. `.text-link:hover`). Bundles
10
- * with `fontSize: 'inherit'` are omitted from the Tailwind `fontSize` preset.
11
- *
12
9
  * Mapping used during the port:
13
10
  * old `large` (≤640) → `_`
14
11
  * old `medium` (≤768) → `sm` (≥640)
@@ -35,11 +32,11 @@ export const textsData = {
35
32
  },
36
33
  'text-heading-2xl': {
37
34
  fontSize: { _: '1.875rem', sm: '3rem', md: '3.75rem' },
38
- lineHeight: '1.1'
35
+ lineHeight: '1.2'
39
36
  },
40
37
  'text-heading-xl': {
41
38
  fontSize: { _: '1.25rem', sm: '1.875rem', md: '2.25rem' },
42
- lineHeight: '1.1'
39
+ lineHeight: '1.2'
43
40
  },
44
41
  'text-heading-lg': {
45
42
  fontSize: { _: '1.125rem', md: '1.875rem' },
@@ -47,19 +44,11 @@ export const textsData = {
47
44
  },
48
45
  'text-heading-md': {
49
46
  fontSize: { _: '1rem', sm: '1.25rem', md: '1.5rem' },
50
- lineHeight: '1.3'
47
+ lineHeight: '1.2'
51
48
  },
52
49
  'text-heading-sm': {
53
50
  fontSize: { _: '0.875rem', sm: '1rem', md: '1.125rem' },
54
- lineHeight: '1.4'
55
- },
56
- 'text-heading-xs': {
57
- fontSize: '1rem',
58
- lineHeight: '1.4'
59
- },
60
- 'text-heading-xxs': {
61
- fontSize: '0.875rem',
62
- lineHeight: '1.4'
51
+ lineHeight: '1.2'
63
52
  },
64
53
  'text-label-lg': {
65
54
  fontSize: '1rem',
@@ -92,16 +81,6 @@ export const textsData = {
92
81
  fontSize: '0.75rem',
93
82
  lineHeight: '1.5'
94
83
  },
95
- 'text-tag-sm': {
96
- fontSize: '0.6875rem',
97
- lineHeight: '1',
98
- fontWeight: '600'
99
- },
100
- 'text-tag-md': {
101
- fontSize: '0.75rem',
102
- lineHeight: '1',
103
- fontWeight: '600'
104
- },
105
84
  'text-body-xxs': {
106
85
  fontSize: '0.625rem',
107
86
  lineHeight: '1.5'
@@ -140,24 +119,6 @@ export const textsData = {
140
119
  fontWeight: '600',
141
120
  lineHeight: '1',
142
121
  letterSpacing: '0'
143
- },
144
- /** Inline `<a>` in body/heading — inherits parent size; not the navigation Link component. */
145
- 'text-link': {
146
- fontSize: 'inherit',
147
- lineHeight: 'inherit',
148
- color: 'var(--text-link)',
149
- borderRadius: 'var(--shape-elements)',
150
- transition: 'all 110ms cubic-bezier(0.39, 0.57, 0.56, 1)',
151
- states: {
152
- hover: {
153
- color: 'var(--text-link-hover)',
154
- textDecoration: 'underline'
155
- },
156
- 'focus-visible': {
157
- outline: '2px solid var(--ring-color)',
158
- outlineOffset: '2px'
159
- }
160
- }
161
122
  }
162
123
  }
163
124
 
@@ -15,7 +15,7 @@ export const background = {
15
15
  'bg-disabled': tokenRef('theme.surfaces.surface-200')
16
16
  },
17
17
  dark: {
18
- 'bg-canvas': tokenRef('primitives.base.black'),
18
+ 'bg-canvas': tokenRef('theme.surfaces.surface-950'),
19
19
  'bg-surface': tokenRef('theme.surfaces.surface-950'),
20
20
  'bg-surface-raised': tokenRef('theme.surfaces.surface-900'),
21
21
  'bg-mask': tokenRef('primitives.alpha.white.50'),