@aziontech/theme 4.2.0 → 4.3.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.
- package/README.md +110 -335
- package/dist/v4/globals.css +78 -50
- package/dist/v4/globals.scss +78 -50
- package/package.json +3 -13
- package/src/scripts/build-tokens.mjs +19 -6
- package/src/scripts/compile-primitives.js +9 -5
- package/src/scripts/compile-theme.js +12 -6
- package/src/scripts/refs.d.ts +1 -0
- package/src/scripts/refs.d.ts.map +1 -1
- package/src/scripts/refs.js +11 -0
- package/src/scripts/zero-unit.mjs +64 -0
- package/src/tokens/README.md +19 -28
- package/src/tokens/index.d.ts +0 -1
- package/src/tokens/index.js +0 -1
- package/src/tokens/primitives/animations/animate.d.ts +2 -0
- package/src/tokens/primitives/animations/animate.d.ts.map +1 -1
- package/src/tokens/primitives/animations/animate.js +7 -2
- package/src/tokens/primitives/animations/keyframes.d.ts +4 -0
- package/src/tokens/primitives/animations/keyframes.d.ts.map +1 -1
- package/src/tokens/primitives/animations/keyframes.js +11 -2
- package/src/tokens/primitives/shape/container.d.ts.map +1 -1
- package/src/tokens/primitives/shape/container.js +30 -13
- package/src/tokens/primitives/typography/leading.d.ts +1 -0
- package/src/tokens/primitives/typography/leading.js +1 -0
- package/src/tokens/primitives/typography/tracking.js +12 -6
- package/src/tokens/semantic/colors.js +5 -2
- package/src/tokens/semantic/texts.data.d.ts +6 -6
- package/src/tokens/semantic/texts.data.d.ts.map +1 -1
- package/src/tokens/semantic/texts.data.js +23 -21
- package/src/tokens/theme/accent.js +18 -6
- package/src/tokens/theme/background.d.ts +12 -0
- package/src/tokens/theme/background.js +11 -2
- package/src/tokens/theme/code-sintax.d.ts +6 -0
- package/src/tokens/theme/code-sintax.js +2 -0
- package/src/tokens/theme/feedback/info.js +2 -2
- package/src/tokens/theme/text.js +2 -2
- package/src/scripts/css-vars.d.ts +0 -7
- package/src/scripts/css-vars.d.ts.map +0 -1
- package/src/scripts/css-vars.js +0 -46
- package/src/scripts/resolve.d.ts +0 -5
- package/src/scripts/resolve.d.ts.map +0 -1
- package/src/scripts/resolve.js +0 -107
package/dist/v4/globals.css
CHANGED
|
@@ -413,6 +413,19 @@
|
|
|
413
413
|
--animate-slide-out-right: slideOutRight 150ms cubic-bezier(0.55, 0.09, 0.68, 0.53);
|
|
414
414
|
--animate-progress-indeterminate: progressIndeterminate 2100ms cubic-bezier(0.39, 0.57, 0.56, 1) infinite;
|
|
415
415
|
--animate-progress-indeterminate-short: progressIndeterminateShort 2100ms cubic-bezier(0.17, 0.84, 0.44, 1) 1100ms infinite;
|
|
416
|
+
--animate-flow-dash: flowDash 700ms linear infinite;
|
|
417
|
+
--transition-duration-fast-01: 70ms;
|
|
418
|
+
--transition-duration-fast-02: 110ms;
|
|
419
|
+
--transition-duration-moderate-01: 150ms;
|
|
420
|
+
--transition-duration-moderate-02: 240ms;
|
|
421
|
+
--transition-duration-slow-01: 400ms;
|
|
422
|
+
--transition-duration-slow-02: 700ms;
|
|
423
|
+
--transition-duration-slow-03: 1100ms;
|
|
424
|
+
--transition-duration-slow-04: 2100ms;
|
|
425
|
+
--ease-productive-entrance: cubic-bezier(0.39, 0.57, 0.56, 1);
|
|
426
|
+
--ease-productive-exit: cubic-bezier(0.55, 0.09, 0.68, 0.53);
|
|
427
|
+
--ease-expressive-entrance: cubic-bezier(0.17, 0.84, 0.44, 1);
|
|
428
|
+
--ease-expressive-exit: cubic-bezier(0.95, 0.05, 0.8, 0.04);
|
|
416
429
|
}
|
|
417
430
|
|
|
418
431
|
:root, [data-theme=light], .azion.azion-light {
|
|
@@ -422,18 +435,18 @@
|
|
|
422
435
|
--border-3: 3px;
|
|
423
436
|
--border-4: 4px;
|
|
424
437
|
--container-3xs: 256px;
|
|
425
|
-
--container-2xs:
|
|
426
|
-
--container-xs:
|
|
427
|
-
--container-sm:
|
|
428
|
-
--container-md:
|
|
429
|
-
--container-lg:
|
|
430
|
-
--container-xl:
|
|
431
|
-
--container-2xl:
|
|
432
|
-
--container-3xl:
|
|
433
|
-
--container-4xl:
|
|
434
|
-
--container-5xl:
|
|
435
|
-
--container-6xl:
|
|
436
|
-
--container-7xl:
|
|
438
|
+
--container-2xs: 300px;
|
|
439
|
+
--container-xs: 348px;
|
|
440
|
+
--container-sm: 408px;
|
|
441
|
+
--container-md: 472px;
|
|
442
|
+
--container-lg: 552px;
|
|
443
|
+
--container-xl: 644px;
|
|
444
|
+
--container-2xl: 752px;
|
|
445
|
+
--container-3xl: 876px;
|
|
446
|
+
--container-4xl: 1024px;
|
|
447
|
+
--container-5xl: 1192px;
|
|
448
|
+
--container-6xl: 1388px;
|
|
449
|
+
--container-7xl: 1620px;
|
|
437
450
|
--height-2: 8px;
|
|
438
451
|
--height-3: 12px;
|
|
439
452
|
--height-4: 16px;
|
|
@@ -529,18 +542,18 @@
|
|
|
529
542
|
--spacing-80: 320px;
|
|
530
543
|
--spacing-96: 384px;
|
|
531
544
|
--width-3xs: 256px;
|
|
532
|
-
--width-2xs:
|
|
533
|
-
--width-xs:
|
|
534
|
-
--width-sm:
|
|
535
|
-
--width-md:
|
|
536
|
-
--width-lg:
|
|
537
|
-
--width-xl:
|
|
538
|
-
--width-2xl:
|
|
539
|
-
--width-3xl:
|
|
540
|
-
--width-4xl:
|
|
541
|
-
--width-5xl:
|
|
542
|
-
--width-6xl:
|
|
543
|
-
--width-7xl:
|
|
545
|
+
--width-2xs: 300px;
|
|
546
|
+
--width-xs: 348px;
|
|
547
|
+
--width-sm: 408px;
|
|
548
|
+
--width-md: 472px;
|
|
549
|
+
--width-lg: 552px;
|
|
550
|
+
--width-xl: 644px;
|
|
551
|
+
--width-2xl: 752px;
|
|
552
|
+
--width-3xl: 876px;
|
|
553
|
+
--width-4xl: 1024px;
|
|
554
|
+
--width-5xl: 1192px;
|
|
555
|
+
--width-6xl: 1388px;
|
|
556
|
+
--width-7xl: 1620px;
|
|
544
557
|
--aspect-video: 16 / 9;
|
|
545
558
|
--shape-flat: 0;
|
|
546
559
|
--shape-card: 8px;
|
|
@@ -585,6 +598,7 @@
|
|
|
585
598
|
--font-weight-bold: 700;
|
|
586
599
|
--font-weight-extrabold: 800;
|
|
587
600
|
--font-weight-black: 900;
|
|
601
|
+
--leading-none: 1;
|
|
588
602
|
--leading-tight: 1.25;
|
|
589
603
|
--leading-snug: 1.375;
|
|
590
604
|
--leading-normal: 1.5;
|
|
@@ -599,12 +613,12 @@
|
|
|
599
613
|
--line-height-9: 36px;
|
|
600
614
|
--line-height-10: 40px;
|
|
601
615
|
--line-height-none: 0;
|
|
602
|
-
--tracking-tighter: -0.
|
|
603
|
-
--tracking-tight: -0.
|
|
604
|
-
--tracking-normal:
|
|
605
|
-
--tracking-wide: 0.
|
|
606
|
-
--tracking-wider: 0.
|
|
607
|
-
--tracking-widest: 0.
|
|
616
|
+
--tracking-tighter: -0.05rem;
|
|
617
|
+
--tracking-tight: -0.025rem;
|
|
618
|
+
--tracking-normal: 0;
|
|
619
|
+
--tracking-wide: 0.025rem;
|
|
620
|
+
--tracking-wider: 0.05rem;
|
|
621
|
+
--tracking-widest: 0.1rem;
|
|
608
622
|
--blur-xs: 4px;
|
|
609
623
|
--blur-sm: 8px;
|
|
610
624
|
--blur-md: 12px;
|
|
@@ -658,6 +672,7 @@
|
|
|
658
672
|
--animate-slide-out-right: slideOutRight 150ms cubic-bezier(0.55, 0.09, 0.68, 0.53);
|
|
659
673
|
--animate-progress-indeterminate: progressIndeterminate 2100ms cubic-bezier(0.39, 0.57, 0.56, 1) infinite;
|
|
660
674
|
--animate-progress-indeterminate-short: progressIndeterminateShort 2100ms cubic-bezier(0.17, 0.84, 0.44, 1) 1100ms infinite;
|
|
675
|
+
--animate-flow-dash: flowDash 700ms linear infinite;
|
|
661
676
|
--ring-offset: 0.5px;
|
|
662
677
|
--container-px: 1rem;
|
|
663
678
|
--container-py: 4rem;
|
|
@@ -707,13 +722,13 @@
|
|
|
707
722
|
--text-heading-xxs-font-weight: 400;
|
|
708
723
|
--text-label-lg-font-size: 1rem;
|
|
709
724
|
--text-label-lg-line-height: 1.5;
|
|
710
|
-
--text-label-lg-font-weight:
|
|
725
|
+
--text-label-lg-font-weight: 400;
|
|
711
726
|
--text-label-md-font-size: 0.875rem;
|
|
712
727
|
--text-label-md-line-height: 1.5;
|
|
713
|
-
--text-label-md-font-weight:
|
|
728
|
+
--text-label-md-font-weight: 400;
|
|
714
729
|
--text-label-sm-font-size: 0.75rem;
|
|
715
730
|
--text-label-sm-line-height: 1.5;
|
|
716
|
-
--text-label-sm-font-weight:
|
|
731
|
+
--text-label-sm-font-weight: 400;
|
|
717
732
|
--text-label-code-sm-font-family: Roboto Mono;
|
|
718
733
|
--text-label-code-sm-font-size: 0.75rem;
|
|
719
734
|
--text-label-code-sm-line-height: 1;
|
|
@@ -748,17 +763,17 @@
|
|
|
748
763
|
--text-overline-md-font-family: Proto Mono;
|
|
749
764
|
--text-overline-md-font-size: 0.75rem;
|
|
750
765
|
--text-overline-md-line-height: 1.375;
|
|
751
|
-
--text-overline-md-letter-spacing: 0.
|
|
766
|
+
--text-overline-md-letter-spacing: 0.1rem;
|
|
752
767
|
--text-overline-md-text-transform: uppercase;
|
|
753
768
|
--text-overline-sm-font-family: Proto Mono;
|
|
754
769
|
--text-overline-sm-font-size: 0.75rem;
|
|
755
770
|
--text-overline-sm-line-height: 1.375;
|
|
756
|
-
--text-overline-sm-letter-spacing: 0.
|
|
771
|
+
--text-overline-sm-letter-spacing: 0.1rem;
|
|
757
772
|
--text-overline-sm-text-transform: uppercase;
|
|
758
773
|
--text-overline-xs-font-family: Proto Mono;
|
|
759
774
|
--text-overline-xs-font-size: 0.75rem;
|
|
760
775
|
--text-overline-xs-line-height: 1.375;
|
|
761
|
-
--text-overline-xs-letter-spacing: 0.
|
|
776
|
+
--text-overline-xs-letter-spacing: 0.1rem;
|
|
762
777
|
--text-overline-xs-text-transform: uppercase;
|
|
763
778
|
--text-button-lg-font-family: Sora;
|
|
764
779
|
--text-button-lg-font-size: 0.875rem;
|
|
@@ -835,15 +850,17 @@
|
|
|
835
850
|
--secondary-mask: #00000005;
|
|
836
851
|
--secondary-selected: #0A0A0A;
|
|
837
852
|
--secondary-contrast: #FFFFFF;
|
|
838
|
-
--accent: #
|
|
839
|
-
--accent-mask: #
|
|
840
|
-
--accent-selected: #
|
|
853
|
+
--accent: #0072F5;
|
|
854
|
+
--accent-mask: #0072F51A;
|
|
855
|
+
--accent-selected: #0072F5;
|
|
841
856
|
--accent-contrast: #000000;
|
|
842
857
|
--bg-canvas: #FAFAFA;
|
|
843
858
|
--bg-surface: #FFFFFF;
|
|
844
859
|
--bg-surface-raised: #FFFFFF;
|
|
845
860
|
--bg-mask: #00000005;
|
|
846
861
|
--bg-surface-overlay: #FAFAFA;
|
|
862
|
+
--bg-placeholder: #00000014;
|
|
863
|
+
--bg-placeholder-highlight: #FFFFFF99;
|
|
847
864
|
--bg-hover: #00000014;
|
|
848
865
|
--bg-active: #00000005;
|
|
849
866
|
--bg-backdrop: #000000CC;
|
|
@@ -855,7 +872,7 @@
|
|
|
855
872
|
--border-strong: #000000;
|
|
856
873
|
--border-selected: #F3652B;
|
|
857
874
|
--text-default: #141414;
|
|
858
|
-
--text-muted: #
|
|
875
|
+
--text-muted: #808080;
|
|
859
876
|
--text-disabled: #999999;
|
|
860
877
|
--text-link: #005FCC;
|
|
861
878
|
--text-link-hover: #004799;
|
|
@@ -865,6 +882,7 @@
|
|
|
865
882
|
--code-sintax-line-number: #808080;
|
|
866
883
|
--code-sintax-keyword: #005FCC;
|
|
867
884
|
--code-sintax-punctuation: #808080;
|
|
885
|
+
--code-sintax-comment: #808080;
|
|
868
886
|
--code-sintax-function: #F3652B;
|
|
869
887
|
--code-sintax-type: #947105;
|
|
870
888
|
--code-sintax-string: #005FCC;
|
|
@@ -878,7 +896,7 @@
|
|
|
878
896
|
--danger-border: #E51A1A66;
|
|
879
897
|
--danger-contrast: #891010;
|
|
880
898
|
--info: #CCE4FF;
|
|
881
|
-
--info-border: #
|
|
899
|
+
--info-border: #0072F566;
|
|
882
900
|
--info-contrast: #004799;
|
|
883
901
|
}
|
|
884
902
|
|
|
@@ -903,17 +921,19 @@
|
|
|
903
921
|
--secondary-mask: #FFFFFF1A;
|
|
904
922
|
--secondary-selected: #FFFFFF;
|
|
905
923
|
--secondary-contrast: #000000;
|
|
906
|
-
--accent: #
|
|
907
|
-
--accent-mask: #
|
|
908
|
-
--accent-selected: #
|
|
924
|
+
--accent: #0072F5;
|
|
925
|
+
--accent-mask: #0072F51A;
|
|
926
|
+
--accent-selected: #0072F5;
|
|
909
927
|
--accent-contrast: #000000;
|
|
910
928
|
--bg-canvas: #000000;
|
|
911
929
|
--bg-surface: #0A0A0A;
|
|
912
930
|
--bg-surface-raised: #141414;
|
|
913
931
|
--bg-mask: #FFFFFF0D;
|
|
914
932
|
--bg-surface-overlay: #4D4D4D;
|
|
915
|
-
--bg-
|
|
916
|
-
--bg-
|
|
933
|
+
--bg-placeholder: #FFFFFF1A;
|
|
934
|
+
--bg-placeholder-highlight: #FFFFFF1A;
|
|
935
|
+
--bg-hover: #FFFFFF1A;
|
|
936
|
+
--bg-active: #FFFFFF0D;
|
|
917
937
|
--bg-backdrop: #000000CC;
|
|
918
938
|
--bg-selected: #1A1A1A;
|
|
919
939
|
--bg-contrast: #FAFAFA;
|
|
@@ -923,7 +943,7 @@
|
|
|
923
943
|
--border-strong: #FFFFFF;
|
|
924
944
|
--border-selected: #F3652B;
|
|
925
945
|
--text-default: #FAFAFA;
|
|
926
|
-
--text-muted: #
|
|
946
|
+
--text-muted: #808080;
|
|
927
947
|
--text-disabled: #4D4D4D;
|
|
928
948
|
--text-link: #3392FF;
|
|
929
949
|
--text-link-hover: #66ADFF;
|
|
@@ -933,6 +953,7 @@
|
|
|
933
953
|
--code-sintax-line-number: #999999;
|
|
934
954
|
--code-sintax-keyword: #3392FF;
|
|
935
955
|
--code-sintax-punctuation: #999999;
|
|
956
|
+
--code-sintax-comment: #999999;
|
|
936
957
|
--code-sintax-function: #F3652B;
|
|
937
958
|
--code-sintax-type: #FAD76B;
|
|
938
959
|
--code-sintax-string: #3392FF;
|
|
@@ -946,7 +967,7 @@
|
|
|
946
967
|
--danger-border: #E51A1A66;
|
|
947
968
|
--danger-contrast: #ED7878;
|
|
948
969
|
--info: #001833;
|
|
949
|
-
--info-border: #
|
|
970
|
+
--info-border: #0072F566;
|
|
950
971
|
--info-contrast: #66ADFF;
|
|
951
972
|
}
|
|
952
973
|
|
|
@@ -981,13 +1002,13 @@
|
|
|
981
1002
|
}
|
|
982
1003
|
|
|
983
1004
|
@keyframes popupScaleIn {
|
|
984
|
-
0% { opacity: 0; transform: scale(0.
|
|
1005
|
+
0% { opacity: 0; transform: scale(0.9); }
|
|
985
1006
|
100% { opacity: 1; transform: scale(1); }
|
|
986
1007
|
}
|
|
987
1008
|
|
|
988
1009
|
@keyframes popupScaleOut {
|
|
989
1010
|
0% { opacity: 1; transform: scale(1); }
|
|
990
|
-
100% { opacity: 0; transform: scale(0.
|
|
1011
|
+
100% { opacity: 0; transform: scale(0.9); }
|
|
991
1012
|
}
|
|
992
1013
|
|
|
993
1014
|
@keyframes slideInLeft {
|
|
@@ -1022,6 +1043,11 @@
|
|
|
1022
1043
|
100% { inset-inline-start: 107%; inset-inline-end: -8%; }
|
|
1023
1044
|
}
|
|
1024
1045
|
|
|
1046
|
+
@keyframes flowDash {
|
|
1047
|
+
0% { stroke-dashoffset: 24; }
|
|
1048
|
+
100% { stroke-dashoffset: 0; }
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1025
1051
|
@layer components {
|
|
1026
1052
|
/* ── Containers ── */
|
|
1027
1053
|
.px-container { padding-left: var(--container-px); padding-right: var(--container-px); }
|
|
@@ -1322,6 +1348,8 @@
|
|
|
1322
1348
|
@utility bg-surface-raised { background-color: var(--bg-surface-raised); }
|
|
1323
1349
|
@utility bg-mask { background-color: var(--bg-mask); }
|
|
1324
1350
|
@utility bg-surface-overlay { background-color: var(--bg-surface-overlay); }
|
|
1351
|
+
@utility bg-placeholder { background-color: var(--bg-placeholder); }
|
|
1352
|
+
@utility bg-placeholder-highlight { background-color: var(--bg-placeholder-highlight); }
|
|
1325
1353
|
@utility bg-hover { background-color: var(--bg-hover); }
|
|
1326
1354
|
@utility bg-active { background-color: var(--bg-active); }
|
|
1327
1355
|
@utility bg-backdrop { background-color: var(--bg-backdrop); }
|
package/dist/v4/globals.scss
CHANGED
|
@@ -413,6 +413,19 @@
|
|
|
413
413
|
--animate-slide-out-right: slideOutRight 150ms cubic-bezier(0.55, 0.09, 0.68, 0.53);
|
|
414
414
|
--animate-progress-indeterminate: progressIndeterminate 2100ms cubic-bezier(0.39, 0.57, 0.56, 1) infinite;
|
|
415
415
|
--animate-progress-indeterminate-short: progressIndeterminateShort 2100ms cubic-bezier(0.17, 0.84, 0.44, 1) 1100ms infinite;
|
|
416
|
+
--animate-flow-dash: flowDash 700ms linear infinite;
|
|
417
|
+
--transition-duration-fast-01: 70ms;
|
|
418
|
+
--transition-duration-fast-02: 110ms;
|
|
419
|
+
--transition-duration-moderate-01: 150ms;
|
|
420
|
+
--transition-duration-moderate-02: 240ms;
|
|
421
|
+
--transition-duration-slow-01: 400ms;
|
|
422
|
+
--transition-duration-slow-02: 700ms;
|
|
423
|
+
--transition-duration-slow-03: 1100ms;
|
|
424
|
+
--transition-duration-slow-04: 2100ms;
|
|
425
|
+
--ease-productive-entrance: cubic-bezier(0.39, 0.57, 0.56, 1);
|
|
426
|
+
--ease-productive-exit: cubic-bezier(0.55, 0.09, 0.68, 0.53);
|
|
427
|
+
--ease-expressive-entrance: cubic-bezier(0.17, 0.84, 0.44, 1);
|
|
428
|
+
--ease-expressive-exit: cubic-bezier(0.95, 0.05, 0.8, 0.04);
|
|
416
429
|
}
|
|
417
430
|
|
|
418
431
|
:root, [data-theme=light], .azion.azion-light {
|
|
@@ -422,18 +435,18 @@
|
|
|
422
435
|
--border-3: 3px;
|
|
423
436
|
--border-4: 4px;
|
|
424
437
|
--container-3xs: 256px;
|
|
425
|
-
--container-2xs:
|
|
426
|
-
--container-xs:
|
|
427
|
-
--container-sm:
|
|
428
|
-
--container-md:
|
|
429
|
-
--container-lg:
|
|
430
|
-
--container-xl:
|
|
431
|
-
--container-2xl:
|
|
432
|
-
--container-3xl:
|
|
433
|
-
--container-4xl:
|
|
434
|
-
--container-5xl:
|
|
435
|
-
--container-6xl:
|
|
436
|
-
--container-7xl:
|
|
438
|
+
--container-2xs: 300px;
|
|
439
|
+
--container-xs: 348px;
|
|
440
|
+
--container-sm: 408px;
|
|
441
|
+
--container-md: 472px;
|
|
442
|
+
--container-lg: 552px;
|
|
443
|
+
--container-xl: 644px;
|
|
444
|
+
--container-2xl: 752px;
|
|
445
|
+
--container-3xl: 876px;
|
|
446
|
+
--container-4xl: 1024px;
|
|
447
|
+
--container-5xl: 1192px;
|
|
448
|
+
--container-6xl: 1388px;
|
|
449
|
+
--container-7xl: 1620px;
|
|
437
450
|
--height-2: 8px;
|
|
438
451
|
--height-3: 12px;
|
|
439
452
|
--height-4: 16px;
|
|
@@ -529,18 +542,18 @@
|
|
|
529
542
|
--spacing-80: 320px;
|
|
530
543
|
--spacing-96: 384px;
|
|
531
544
|
--width-3xs: 256px;
|
|
532
|
-
--width-2xs:
|
|
533
|
-
--width-xs:
|
|
534
|
-
--width-sm:
|
|
535
|
-
--width-md:
|
|
536
|
-
--width-lg:
|
|
537
|
-
--width-xl:
|
|
538
|
-
--width-2xl:
|
|
539
|
-
--width-3xl:
|
|
540
|
-
--width-4xl:
|
|
541
|
-
--width-5xl:
|
|
542
|
-
--width-6xl:
|
|
543
|
-
--width-7xl:
|
|
545
|
+
--width-2xs: 300px;
|
|
546
|
+
--width-xs: 348px;
|
|
547
|
+
--width-sm: 408px;
|
|
548
|
+
--width-md: 472px;
|
|
549
|
+
--width-lg: 552px;
|
|
550
|
+
--width-xl: 644px;
|
|
551
|
+
--width-2xl: 752px;
|
|
552
|
+
--width-3xl: 876px;
|
|
553
|
+
--width-4xl: 1024px;
|
|
554
|
+
--width-5xl: 1192px;
|
|
555
|
+
--width-6xl: 1388px;
|
|
556
|
+
--width-7xl: 1620px;
|
|
544
557
|
--aspect-video: 16 / 9;
|
|
545
558
|
--shape-flat: 0;
|
|
546
559
|
--shape-card: 8px;
|
|
@@ -585,6 +598,7 @@
|
|
|
585
598
|
--font-weight-bold: 700;
|
|
586
599
|
--font-weight-extrabold: 800;
|
|
587
600
|
--font-weight-black: 900;
|
|
601
|
+
--leading-none: 1;
|
|
588
602
|
--leading-tight: 1.25;
|
|
589
603
|
--leading-snug: 1.375;
|
|
590
604
|
--leading-normal: 1.5;
|
|
@@ -599,12 +613,12 @@
|
|
|
599
613
|
--line-height-9: 36px;
|
|
600
614
|
--line-height-10: 40px;
|
|
601
615
|
--line-height-none: 0;
|
|
602
|
-
--tracking-tighter: -0.
|
|
603
|
-
--tracking-tight: -0.
|
|
604
|
-
--tracking-normal:
|
|
605
|
-
--tracking-wide: 0.
|
|
606
|
-
--tracking-wider: 0.
|
|
607
|
-
--tracking-widest: 0.
|
|
616
|
+
--tracking-tighter: -0.05rem;
|
|
617
|
+
--tracking-tight: -0.025rem;
|
|
618
|
+
--tracking-normal: 0;
|
|
619
|
+
--tracking-wide: 0.025rem;
|
|
620
|
+
--tracking-wider: 0.05rem;
|
|
621
|
+
--tracking-widest: 0.1rem;
|
|
608
622
|
--blur-xs: 4px;
|
|
609
623
|
--blur-sm: 8px;
|
|
610
624
|
--blur-md: 12px;
|
|
@@ -658,6 +672,7 @@
|
|
|
658
672
|
--animate-slide-out-right: slideOutRight 150ms cubic-bezier(0.55, 0.09, 0.68, 0.53);
|
|
659
673
|
--animate-progress-indeterminate: progressIndeterminate 2100ms cubic-bezier(0.39, 0.57, 0.56, 1) infinite;
|
|
660
674
|
--animate-progress-indeterminate-short: progressIndeterminateShort 2100ms cubic-bezier(0.17, 0.84, 0.44, 1) 1100ms infinite;
|
|
675
|
+
--animate-flow-dash: flowDash 700ms linear infinite;
|
|
661
676
|
--ring-offset: 0.5px;
|
|
662
677
|
--container-px: 1rem;
|
|
663
678
|
--container-py: 4rem;
|
|
@@ -707,13 +722,13 @@
|
|
|
707
722
|
--text-heading-xxs-font-weight: 400;
|
|
708
723
|
--text-label-lg-font-size: 1rem;
|
|
709
724
|
--text-label-lg-line-height: 1.5;
|
|
710
|
-
--text-label-lg-font-weight:
|
|
725
|
+
--text-label-lg-font-weight: 400;
|
|
711
726
|
--text-label-md-font-size: 0.875rem;
|
|
712
727
|
--text-label-md-line-height: 1.5;
|
|
713
|
-
--text-label-md-font-weight:
|
|
728
|
+
--text-label-md-font-weight: 400;
|
|
714
729
|
--text-label-sm-font-size: 0.75rem;
|
|
715
730
|
--text-label-sm-line-height: 1.5;
|
|
716
|
-
--text-label-sm-font-weight:
|
|
731
|
+
--text-label-sm-font-weight: 400;
|
|
717
732
|
--text-label-code-sm-font-family: Roboto Mono;
|
|
718
733
|
--text-label-code-sm-font-size: 0.75rem;
|
|
719
734
|
--text-label-code-sm-line-height: 1;
|
|
@@ -748,17 +763,17 @@
|
|
|
748
763
|
--text-overline-md-font-family: Proto Mono;
|
|
749
764
|
--text-overline-md-font-size: 0.75rem;
|
|
750
765
|
--text-overline-md-line-height: 1.375;
|
|
751
|
-
--text-overline-md-letter-spacing: 0.
|
|
766
|
+
--text-overline-md-letter-spacing: 0.1rem;
|
|
752
767
|
--text-overline-md-text-transform: uppercase;
|
|
753
768
|
--text-overline-sm-font-family: Proto Mono;
|
|
754
769
|
--text-overline-sm-font-size: 0.75rem;
|
|
755
770
|
--text-overline-sm-line-height: 1.375;
|
|
756
|
-
--text-overline-sm-letter-spacing: 0.
|
|
771
|
+
--text-overline-sm-letter-spacing: 0.1rem;
|
|
757
772
|
--text-overline-sm-text-transform: uppercase;
|
|
758
773
|
--text-overline-xs-font-family: Proto Mono;
|
|
759
774
|
--text-overline-xs-font-size: 0.75rem;
|
|
760
775
|
--text-overline-xs-line-height: 1.375;
|
|
761
|
-
--text-overline-xs-letter-spacing: 0.
|
|
776
|
+
--text-overline-xs-letter-spacing: 0.1rem;
|
|
762
777
|
--text-overline-xs-text-transform: uppercase;
|
|
763
778
|
--text-button-lg-font-family: Sora;
|
|
764
779
|
--text-button-lg-font-size: 0.875rem;
|
|
@@ -835,15 +850,17 @@
|
|
|
835
850
|
--secondary-mask: #00000005;
|
|
836
851
|
--secondary-selected: #0A0A0A;
|
|
837
852
|
--secondary-contrast: #FFFFFF;
|
|
838
|
-
--accent: #
|
|
839
|
-
--accent-mask: #
|
|
840
|
-
--accent-selected: #
|
|
853
|
+
--accent: #0072F5;
|
|
854
|
+
--accent-mask: #0072F51A;
|
|
855
|
+
--accent-selected: #0072F5;
|
|
841
856
|
--accent-contrast: #000000;
|
|
842
857
|
--bg-canvas: #FAFAFA;
|
|
843
858
|
--bg-surface: #FFFFFF;
|
|
844
859
|
--bg-surface-raised: #FFFFFF;
|
|
845
860
|
--bg-mask: #00000005;
|
|
846
861
|
--bg-surface-overlay: #FAFAFA;
|
|
862
|
+
--bg-placeholder: #00000014;
|
|
863
|
+
--bg-placeholder-highlight: #FFFFFF99;
|
|
847
864
|
--bg-hover: #00000014;
|
|
848
865
|
--bg-active: #00000005;
|
|
849
866
|
--bg-backdrop: #000000CC;
|
|
@@ -855,7 +872,7 @@
|
|
|
855
872
|
--border-strong: #000000;
|
|
856
873
|
--border-selected: #F3652B;
|
|
857
874
|
--text-default: #141414;
|
|
858
|
-
--text-muted: #
|
|
875
|
+
--text-muted: #808080;
|
|
859
876
|
--text-disabled: #999999;
|
|
860
877
|
--text-link: #005FCC;
|
|
861
878
|
--text-link-hover: #004799;
|
|
@@ -865,6 +882,7 @@
|
|
|
865
882
|
--code-sintax-line-number: #808080;
|
|
866
883
|
--code-sintax-keyword: #005FCC;
|
|
867
884
|
--code-sintax-punctuation: #808080;
|
|
885
|
+
--code-sintax-comment: #808080;
|
|
868
886
|
--code-sintax-function: #F3652B;
|
|
869
887
|
--code-sintax-type: #947105;
|
|
870
888
|
--code-sintax-string: #005FCC;
|
|
@@ -878,7 +896,7 @@
|
|
|
878
896
|
--danger-border: #E51A1A66;
|
|
879
897
|
--danger-contrast: #891010;
|
|
880
898
|
--info: #CCE4FF;
|
|
881
|
-
--info-border: #
|
|
899
|
+
--info-border: #0072F566;
|
|
882
900
|
--info-contrast: #004799;
|
|
883
901
|
}
|
|
884
902
|
|
|
@@ -903,17 +921,19 @@
|
|
|
903
921
|
--secondary-mask: #FFFFFF1A;
|
|
904
922
|
--secondary-selected: #FFFFFF;
|
|
905
923
|
--secondary-contrast: #000000;
|
|
906
|
-
--accent: #
|
|
907
|
-
--accent-mask: #
|
|
908
|
-
--accent-selected: #
|
|
924
|
+
--accent: #0072F5;
|
|
925
|
+
--accent-mask: #0072F51A;
|
|
926
|
+
--accent-selected: #0072F5;
|
|
909
927
|
--accent-contrast: #000000;
|
|
910
928
|
--bg-canvas: #000000;
|
|
911
929
|
--bg-surface: #0A0A0A;
|
|
912
930
|
--bg-surface-raised: #141414;
|
|
913
931
|
--bg-mask: #FFFFFF0D;
|
|
914
932
|
--bg-surface-overlay: #4D4D4D;
|
|
915
|
-
--bg-
|
|
916
|
-
--bg-
|
|
933
|
+
--bg-placeholder: #FFFFFF1A;
|
|
934
|
+
--bg-placeholder-highlight: #FFFFFF1A;
|
|
935
|
+
--bg-hover: #FFFFFF1A;
|
|
936
|
+
--bg-active: #FFFFFF0D;
|
|
917
937
|
--bg-backdrop: #000000CC;
|
|
918
938
|
--bg-selected: #1A1A1A;
|
|
919
939
|
--bg-contrast: #FAFAFA;
|
|
@@ -923,7 +943,7 @@
|
|
|
923
943
|
--border-strong: #FFFFFF;
|
|
924
944
|
--border-selected: #F3652B;
|
|
925
945
|
--text-default: #FAFAFA;
|
|
926
|
-
--text-muted: #
|
|
946
|
+
--text-muted: #808080;
|
|
927
947
|
--text-disabled: #4D4D4D;
|
|
928
948
|
--text-link: #3392FF;
|
|
929
949
|
--text-link-hover: #66ADFF;
|
|
@@ -933,6 +953,7 @@
|
|
|
933
953
|
--code-sintax-line-number: #999999;
|
|
934
954
|
--code-sintax-keyword: #3392FF;
|
|
935
955
|
--code-sintax-punctuation: #999999;
|
|
956
|
+
--code-sintax-comment: #999999;
|
|
936
957
|
--code-sintax-function: #F3652B;
|
|
937
958
|
--code-sintax-type: #FAD76B;
|
|
938
959
|
--code-sintax-string: #3392FF;
|
|
@@ -946,7 +967,7 @@
|
|
|
946
967
|
--danger-border: #E51A1A66;
|
|
947
968
|
--danger-contrast: #ED7878;
|
|
948
969
|
--info: #001833;
|
|
949
|
-
--info-border: #
|
|
970
|
+
--info-border: #0072F566;
|
|
950
971
|
--info-contrast: #66ADFF;
|
|
951
972
|
}
|
|
952
973
|
|
|
@@ -981,13 +1002,13 @@
|
|
|
981
1002
|
}
|
|
982
1003
|
|
|
983
1004
|
@keyframes popupScaleIn {
|
|
984
|
-
0% { opacity: 0; transform: scale(0.
|
|
1005
|
+
0% { opacity: 0; transform: scale(0.9); }
|
|
985
1006
|
100% { opacity: 1; transform: scale(1); }
|
|
986
1007
|
}
|
|
987
1008
|
|
|
988
1009
|
@keyframes popupScaleOut {
|
|
989
1010
|
0% { opacity: 1; transform: scale(1); }
|
|
990
|
-
100% { opacity: 0; transform: scale(0.
|
|
1011
|
+
100% { opacity: 0; transform: scale(0.9); }
|
|
991
1012
|
}
|
|
992
1013
|
|
|
993
1014
|
@keyframes slideInLeft {
|
|
@@ -1022,6 +1043,11 @@
|
|
|
1022
1043
|
100% { inset-inline-start: 107%; inset-inline-end: -8%; }
|
|
1023
1044
|
}
|
|
1024
1045
|
|
|
1046
|
+
@keyframes flowDash {
|
|
1047
|
+
0% { stroke-dashoffset: 24; }
|
|
1048
|
+
100% { stroke-dashoffset: 0; }
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1025
1051
|
@layer components {
|
|
1026
1052
|
/* ── Containers ── */
|
|
1027
1053
|
.px-container { padding-left: var(--container-px); padding-right: var(--container-px); }
|
|
@@ -1322,6 +1348,8 @@
|
|
|
1322
1348
|
@utility bg-surface-raised { background-color: var(--bg-surface-raised); }
|
|
1323
1349
|
@utility bg-mask { background-color: var(--bg-mask); }
|
|
1324
1350
|
@utility bg-surface-overlay { background-color: var(--bg-surface-overlay); }
|
|
1351
|
+
@utility bg-placeholder { background-color: var(--bg-placeholder); }
|
|
1352
|
+
@utility bg-placeholder-highlight { background-color: var(--bg-placeholder-highlight); }
|
|
1325
1353
|
@utility bg-hover { background-color: var(--bg-hover); }
|
|
1326
1354
|
@utility bg-active { background-color: var(--bg-active); }
|
|
1327
1355
|
@utility bg-backdrop { background-color: var(--bg-backdrop); }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aziontech/theme",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"author": "aziontech",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"pack:dry": "npm pack --dry-run",
|
|
14
|
+
"test": "node --test \"test/**/*.test.mjs\"",
|
|
14
15
|
"format": "prettier --write scripts/ src/",
|
|
15
16
|
"build": "pnpm build:tokens",
|
|
16
17
|
"build:tokens": "node src/scripts/build-tokens.mjs",
|
|
@@ -31,19 +32,8 @@
|
|
|
31
32
|
"ui-kit",
|
|
32
33
|
"token-generator"
|
|
33
34
|
],
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"vue-tsc": "^3.2.5"
|
|
36
|
-
},
|
|
37
35
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"@semantic-release/commit-analyzer": "^10.0.1",
|
|
40
|
-
"@semantic-release/exec": "^6.0.3",
|
|
41
|
-
"@semantic-release/git": "^10.0.1",
|
|
42
|
-
"@semantic-release/github": "^9.2.6",
|
|
43
|
-
"@semantic-release/npm": "^11.0.0",
|
|
44
|
-
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
45
|
-
"conventional-changelog-conventionalcommits": "^7.0.0",
|
|
46
|
-
"semantic-release": "^23.0.0"
|
|
36
|
+
"vue-tsc": "^3.2.5"
|
|
47
37
|
},
|
|
48
38
|
"files": [
|
|
49
39
|
"src/",
|
|
@@ -26,25 +26,24 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
|
26
26
|
import { dirname, resolve } from 'node:path';
|
|
27
27
|
import { fileURLToPath } from 'node:url';
|
|
28
28
|
|
|
29
|
-
import { animate } from '../tokens/primitives/animations/animate.js';
|
|
29
|
+
import { animate, curve, duration } from '../tokens/primitives/animations/animate.js';
|
|
30
30
|
import { animateExtras, keyframes } from '../tokens/primitives/animations/keyframes.js';
|
|
31
31
|
import { breakpoints } from '../tokens/primitives/breakpoints.js';
|
|
32
|
-
import {
|
|
32
|
+
import { compilePrimitivesVars } from './compile-primitives.js';
|
|
33
33
|
import { compileThemeCss, compileThemeVars } from './compile-theme.js';
|
|
34
34
|
import { containersData } from '../tokens/semantic/containers.data.js';
|
|
35
35
|
import { spacingsData } from '../tokens/semantic/spacings.data.js';
|
|
36
36
|
import { textsData } from '../tokens/semantic/texts.data.js';
|
|
37
37
|
import { zIndicesData } from '../tokens/semantic/z-indices.data.js';
|
|
38
|
+
import { assertNoZeroWithUnit } from './zero-unit.mjs';
|
|
38
39
|
|
|
39
40
|
const BREAKPOINT_ORDER = ['sm', 'md', 'lg', 'xl', '2xl'];
|
|
40
41
|
|
|
41
42
|
const kebab = (s) => s.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
|
|
42
43
|
|
|
43
44
|
// ─── 1. Primitives ──────────────────────────────────────────────────────────
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return flatten(varsTree, refsTree);
|
|
47
|
-
};
|
|
45
|
+
// compilePrimitivesVars throws on any unresolved tokenRef (see refs.js).
|
|
46
|
+
const flattenPrimitives = () => compilePrimitivesVars();
|
|
48
47
|
|
|
49
48
|
// ─── 2. Semantic flattening ─────────────────────────────────────────────────
|
|
50
49
|
const splitResponsive = (value) => {
|
|
@@ -293,6 +292,19 @@ const emitCssV4 = () => {
|
|
|
293
292
|
themeVars[`--animate-${name}`] = shorthand;
|
|
294
293
|
}
|
|
295
294
|
|
|
295
|
+
// Named `duration-*` / `ease-*` utilities. Without these the design system's
|
|
296
|
+
// own `duration-moderate-02` / `ease-productive-entrance` classes compile to
|
|
297
|
+
// NOTHING (Tailwind v4 silently drops an unknown named step), and every
|
|
298
|
+
// component that declares one falls back to Tailwind's default 150ms `ease`.
|
|
299
|
+
// The namespaces are fixed by Tailwind: `--transition-duration-*` backs
|
|
300
|
+
// `duration-*`, `--ease-*` backs `ease-*`.
|
|
301
|
+
for (const [name, value] of Object.entries(duration)) {
|
|
302
|
+
themeVars[`--transition-duration-${name}`] = value;
|
|
303
|
+
}
|
|
304
|
+
for (const [name, value] of Object.entries(curve)) {
|
|
305
|
+
themeVars[`--ease-${name}`] = value;
|
|
306
|
+
}
|
|
307
|
+
|
|
296
308
|
const semanticBase = {
|
|
297
309
|
...rootPrimitiveVars,
|
|
298
310
|
...(m.containers._ || {}),
|
|
@@ -382,6 +394,7 @@ const importIdx = rawCss.indexOf(IMPORT_LINE);
|
|
|
382
394
|
if (importIdx === -1) throw new Error('emitCssV4 output is missing the tailwind import line');
|
|
383
395
|
const afterImport = importIdx + IMPORT_LINE.length;
|
|
384
396
|
const css = `${rawCss.slice(0, afterImport)}\n\n${fontsCss}${rawCss.slice(afterImport)}`;
|
|
397
|
+
assertNoZeroWithUnit(css, 'globals.css');
|
|
385
398
|
await writeFile(resolve(dir, 'globals.css'), css, 'utf8');
|
|
386
399
|
await writeFile(resolve(dir, 'globals.scss'), css, 'utf8');
|
|
387
400
|
console.log(`✓ v4 → ${dir}`);
|