@aziontech/theme 2.6.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.
- package/dist/v3/globals.css +67 -94
- package/dist/v3/globals.scss +67 -94
- package/dist/v3/tailwind-preset.js +0 -26
- package/dist/v3/tailwind.config.js +0 -26
- package/dist/v4/globals.css +28 -53
- package/dist/v4/globals.scss +28 -53
- package/package.json +6 -13
- package/src/scripts/build-tokens.mjs +1 -27
- package/src/tests/tokens.html +0 -3
- package/src/tokens/README.md +0 -17
- package/src/tokens/index.js +0 -1
- package/src/tokens/primitives/colors/alpha.js +10 -10
- package/src/tokens/primitives/colors/colors.js +11 -11
- package/src/tokens/primitives/shape/shape.js +8 -8
- package/src/tokens/semantic/texts.data.js +4 -43
- package/src/tokens/theme/background.js +1 -1
- package/src/tokens/theme/border.js +1 -1
- package/src/tokens/theme/feedback/danger.js +6 -6
- package/src/tokens/theme/feedback/info.js +2 -2
- package/src/tokens/theme/feedback/success.js +5 -5
- package/src/tokens/theme/feedback/warning.js +6 -6
- package/src/tokens/theme/primary.js +4 -4
- package/src/tokens/theme/ring.js +2 -2
- package/src/tokens/theme/text.js +4 -6
- package/src/scripts/css-vars.d.ts +0 -7
- package/src/scripts/css-vars.d.ts.map +0 -1
- package/src/scripts/refs.d.ts +0 -5
- package/src/scripts/refs.d.ts.map +0 -1
- package/src/scripts/resolve.d.ts +0 -5
- package/src/scripts/resolve.d.ts.map +0 -1
- package/src/tokens/index.d.ts +0 -6
- package/src/tokens/index.d.ts.map +0 -1
- package/src/tokens/primitives/animations/animate.d.ts +0 -29
- package/src/tokens/primitives/animations/animate.d.ts.map +0 -1
- package/src/tokens/primitives/animations/ease.d.ts +0 -10
- package/src/tokens/primitives/animations/ease.d.ts.map +0 -1
- package/src/tokens/primitives/border-widths.d.ts +0 -12
- package/src/tokens/primitives/border-widths.d.ts.map +0 -1
- package/src/tokens/primitives/breakpoints.d.ts +0 -12
- package/src/tokens/primitives/breakpoints.d.ts.map +0 -1
- package/src/tokens/primitives/colors/alpha.d.ts +0 -109
- package/src/tokens/primitives/colors/alpha.d.ts.map +0 -1
- package/src/tokens/primitives/colors/brand.d.ts +0 -46
- package/src/tokens/primitives/colors/brand.d.ts.map +0 -1
- package/src/tokens/primitives/colors/colors.d.ts +0 -141
- package/src/tokens/primitives/colors/colors.d.ts.map +0 -1
- package/src/tokens/primitives/effects/blur.d.ts +0 -14
- package/src/tokens/primitives/effects/blur.d.ts.map +0 -1
- package/src/tokens/primitives/effects/drop-shadow.d.ts +0 -13
- package/src/tokens/primitives/effects/drop-shadow.d.ts.map +0 -1
- package/src/tokens/primitives/effects/inset-shadow.d.ts +0 -10
- package/src/tokens/primitives/effects/inset-shadow.d.ts.map +0 -1
- package/src/tokens/primitives/effects/opacity.d.ts +0 -11
- package/src/tokens/primitives/effects/opacity.d.ts.map +0 -1
- package/src/tokens/primitives/effects/perspective.d.ts +0 -12
- package/src/tokens/primitives/effects/perspective.d.ts.map +0 -1
- package/src/tokens/primitives/effects/shadow.d.ts +0 -14
- package/src/tokens/primitives/effects/shadow.d.ts.map +0 -1
- package/src/tokens/primitives/ring-offset.d.ts +0 -8
- package/src/tokens/primitives/ring-offset.d.ts.map +0 -1
- package/src/tokens/primitives/shape/aspect-video.d.ts +0 -6
- package/src/tokens/primitives/shape/aspect-video.d.ts.map +0 -1
- package/src/tokens/primitives/shape/container.d.ts +0 -20
- package/src/tokens/primitives/shape/container.d.ts.map +0 -1
- package/src/tokens/primitives/shape/height.d.ts +0 -35
- package/src/tokens/primitives/shape/height.d.ts.map +0 -1
- package/src/tokens/primitives/shape/radius.d.ts +0 -16
- package/src/tokens/primitives/shape/radius.d.ts.map +0 -1
- package/src/tokens/primitives/shape/shape.d.ts +0 -12
- package/src/tokens/primitives/shape/shape.d.ts.map +0 -1
- package/src/tokens/primitives/shape/size.d.ts +0 -35
- package/src/tokens/primitives/shape/size.d.ts.map +0 -1
- package/src/tokens/primitives/shape/spacing.d.ts +0 -36
- package/src/tokens/primitives/shape/spacing.d.ts.map +0 -1
- package/src/tokens/primitives/shape/width.d.ts +0 -46
- package/src/tokens/primitives/shape/width.d.ts.map +0 -1
- package/src/tokens/primitives/typography/font-family.d.ts +0 -10
- package/src/tokens/primitives/typography/font-family.d.ts.map +0 -1
- package/src/tokens/primitives/typography/font-size.d.ts +0 -33
- package/src/tokens/primitives/typography/font-size.d.ts.map +0 -1
- package/src/tokens/primitives/typography/font-weight.d.ts +0 -16
- package/src/tokens/primitives/typography/font-weight.d.ts.map +0 -1
- package/src/tokens/primitives/typography/leading.d.ts +0 -12
- package/src/tokens/primitives/typography/leading.d.ts.map +0 -1
- package/src/tokens/primitives/typography/line-height.d.ts +0 -16
- package/src/tokens/primitives/typography/line-height.d.ts.map +0 -1
- package/src/tokens/primitives/typography/tracking.d.ts +0 -13
- package/src/tokens/primitives/typography/tracking.d.ts.map +0 -1
- package/src/tokens/semantic/animations.d.ts +0 -3
- package/src/tokens/semantic/animations.d.ts.map +0 -1
- package/src/tokens/semantic/colors.d.ts +0 -296
- package/src/tokens/semantic/colors.d.ts.map +0 -1
- package/src/tokens/semantic/containers.d.ts +0 -3
- package/src/tokens/semantic/containers.d.ts.map +0 -1
- package/src/tokens/semantic/containers.data.d.ts +0 -32
- package/src/tokens/semantic/containers.data.d.ts.map +0 -1
- package/src/tokens/semantic/spacings.d.ts +0 -3
- package/src/tokens/semantic/spacings.d.ts.map +0 -1
- package/src/tokens/semantic/spacings.data.d.ts +0 -39
- package/src/tokens/semantic/spacings.data.d.ts.map +0 -1
- package/src/tokens/semantic/texts.d.ts +0 -3
- package/src/tokens/semantic/texts.d.ts.map +0 -1
- package/src/tokens/semantic/texts.data.d.ts +0 -184
- package/src/tokens/semantic/texts.data.d.ts.map +0 -1
- package/src/tokens/theme/accent.d.ts +0 -35
- package/src/tokens/theme/accent.d.ts.map +0 -1
- package/src/tokens/theme/background.d.ts +0 -77
- package/src/tokens/theme/background.d.ts.map +0 -1
- package/src/tokens/theme/border.d.ts +0 -35
- package/src/tokens/theme/border.d.ts.map +0 -1
- package/src/tokens/theme/feedback/danger.d.ts +0 -29
- package/src/tokens/theme/feedback/danger.d.ts.map +0 -1
- package/src/tokens/theme/feedback/info.d.ts +0 -29
- package/src/tokens/theme/feedback/info.d.ts.map +0 -1
- package/src/tokens/theme/feedback/success.d.ts +0 -29
- package/src/tokens/theme/feedback/success.d.ts.map +0 -1
- package/src/tokens/theme/feedback/warning.d.ts +0 -29
- package/src/tokens/theme/feedback/warning.d.ts.map +0 -1
- package/src/tokens/theme/primary.d.ts +0 -35
- package/src/tokens/theme/primary.d.ts.map +0 -1
- package/src/tokens/theme/ring.d.ts +0 -17
- package/src/tokens/theme/ring.d.ts.map +0 -1
- package/src/tokens/theme/secondary.d.ts +0 -35
- package/src/tokens/theme/secondary.d.ts.map +0 -1
- package/src/tokens/theme/surfaces.d.ts +0 -47
- package/src/tokens/theme/surfaces.d.ts.map +0 -1
- package/src/tokens/theme/text.d.ts +0 -41
- package/src/tokens/theme/text.d.ts.map +0 -1
- package/src/tokens/theme.d.ts +0 -171
- package/src/tokens/theme.d.ts.map +0 -1
|
@@ -307,18 +307,6 @@ const preset = {
|
|
|
307
307
|
"lineHeight": "var(--text-heading-sm-line-height)"
|
|
308
308
|
}
|
|
309
309
|
],
|
|
310
|
-
"heading-xs": [
|
|
311
|
-
"var(--text-heading-xs-font-size)",
|
|
312
|
-
{
|
|
313
|
-
"lineHeight": "var(--text-heading-xs-line-height)"
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
"heading-xxs": [
|
|
317
|
-
"var(--text-heading-xxs-font-size)",
|
|
318
|
-
{
|
|
319
|
-
"lineHeight": "var(--text-heading-xxs-line-height)"
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
310
|
"label-lg": [
|
|
323
311
|
"var(--text-label-lg-font-size)",
|
|
324
312
|
{
|
|
@@ -364,20 +352,6 @@ const preset = {
|
|
|
364
352
|
"lineHeight": "var(--text-body-xs-line-height)"
|
|
365
353
|
}
|
|
366
354
|
],
|
|
367
|
-
"tag-sm": [
|
|
368
|
-
"var(--text-tag-sm-font-size)",
|
|
369
|
-
{
|
|
370
|
-
"lineHeight": "var(--text-tag-sm-line-height)",
|
|
371
|
-
"fontWeight": "var(--text-tag-sm-font-weight)"
|
|
372
|
-
}
|
|
373
|
-
],
|
|
374
|
-
"tag-md": [
|
|
375
|
-
"var(--text-tag-md-font-size)",
|
|
376
|
-
{
|
|
377
|
-
"lineHeight": "var(--text-tag-md-line-height)",
|
|
378
|
-
"fontWeight": "var(--text-tag-md-font-weight)"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
355
|
"body-xxs": [
|
|
382
356
|
"var(--text-body-xxs-font-size)",
|
|
383
357
|
{
|
|
@@ -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
|
{
|
package/dist/v4/globals.css
CHANGED
|
@@ -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: #
|
|
86
|
-
--color-red-100: #
|
|
87
|
-
--color-red-200: #
|
|
88
|
-
--color-red-300: #
|
|
89
|
-
--color-red-400: #
|
|
90
|
-
--color-red-500: #
|
|
91
|
-
--color-red-600: #
|
|
92
|
-
--color-red-700: #
|
|
93
|
-
--color-red-800: #
|
|
94
|
-
--color-red-900: #
|
|
95
|
-
--color-red-950: #
|
|
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: #
|
|
159
|
-
--color-alpha-red-100: #
|
|
160
|
-
--color-alpha-red-200: #
|
|
161
|
-
--color-alpha-red-300: #
|
|
162
|
-
--color-alpha-red-400: #
|
|
163
|
-
--color-alpha-red-500: #
|
|
164
|
-
--color-alpha-red-600: #
|
|
165
|
-
--color-alpha-red-700: #
|
|
166
|
-
--color-alpha-red-800: #
|
|
167
|
-
--color-alpha-red-900: #
|
|
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:
|
|
350
|
-
--shape-button:
|
|
351
|
-
--shape-elements:
|
|
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.
|
|
473
|
+
--text-heading-2xl-line-height: 1.2;
|
|
474
474
|
--text-heading-xl-font-size: 1.25rem;
|
|
475
|
-
--text-heading-xl-line-height: 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.
|
|
479
|
+
--text-heading-md-line-height: 1.2;
|
|
480
480
|
--text-heading-sm-font-size: 0.875rem;
|
|
481
|
-
--text-heading-sm-line-height: 1.
|
|
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/dist/v4/globals.scss
CHANGED
|
@@ -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: #
|
|
86
|
-
--color-red-100: #
|
|
87
|
-
--color-red-200: #
|
|
88
|
-
--color-red-300: #
|
|
89
|
-
--color-red-400: #
|
|
90
|
-
--color-red-500: #
|
|
91
|
-
--color-red-600: #
|
|
92
|
-
--color-red-700: #
|
|
93
|
-
--color-red-800: #
|
|
94
|
-
--color-red-900: #
|
|
95
|
-
--color-red-950: #
|
|
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: #
|
|
159
|
-
--color-alpha-red-100: #
|
|
160
|
-
--color-alpha-red-200: #
|
|
161
|
-
--color-alpha-red-300: #
|
|
162
|
-
--color-alpha-red-400: #
|
|
163
|
-
--color-alpha-red-500: #
|
|
164
|
-
--color-alpha-red-600: #
|
|
165
|
-
--color-alpha-red-700: #
|
|
166
|
-
--color-alpha-red-800: #
|
|
167
|
-
--color-alpha-red-900: #
|
|
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:
|
|
350
|
-
--shape-button:
|
|
351
|
-
--shape-elements:
|
|
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.
|
|
473
|
+
--text-heading-2xl-line-height: 1.2;
|
|
474
474
|
--text-heading-xl-font-size: 1.25rem;
|
|
475
|
-
--text-heading-xl-line-height: 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.
|
|
479
|
+
--text-heading-md-line-height: 1.2;
|
|
480
480
|
--text-heading-sm-font-size: 0.875rem;
|
|
481
|
-
--text-heading-sm-line-height: 1.
|
|
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.
|
|
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": "
|
|
19
|
-
"test:tokens:v3": "
|
|
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
|
-
"./
|
|
63
|
-
"./
|
|
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
|
|
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)`;
|
package/src/tests/tokens.html
CHANGED
|
@@ -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
|
|
package/src/tokens/README.md
CHANGED
|
@@ -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`)
|
package/src/tokens/index.js
CHANGED
|
@@ -60,16 +60,16 @@ export const alpha = {
|
|
|
60
60
|
'900': '#22C55EE5',
|
|
61
61
|
},
|
|
62
62
|
red: {
|
|
63
|
-
'50': '#
|
|
64
|
-
'100': '#
|
|
65
|
-
'200': '#
|
|
66
|
-
'300': '#
|
|
67
|
-
'400': '#
|
|
68
|
-
'500': '#
|
|
69
|
-
'600': '#
|
|
70
|
-
'700': '#
|
|
71
|
-
'800': '#
|
|
72
|
-
'900': '#
|
|
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': '#
|
|
105
|
-
'100': '#
|
|
106
|
-
'200': '#
|
|
107
|
-
'300': '#
|
|
108
|
-
'400': '#
|
|
109
|
-
'500': '#
|
|
110
|
-
'600': '#
|
|
111
|
-
'700': '#
|
|
112
|
-
'800': '#
|
|
113
|
-
'900': '#
|
|
114
|
-
'950': '#
|
|
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
|
|
7
|
-
'shape-button': radius
|
|
8
|
-
'shape-elements': radius
|
|
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 };
|