@webmate-studio/builder 0.2.154 → 0.2.157
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/package.json +1 -1
- package/src/design-tokens-v2-css.js +153 -7
- package/src/design-tokens-v2.js +183 -0
package/package.json
CHANGED
|
@@ -537,6 +537,11 @@ function generateButtonVariables(t, lines) {
|
|
|
537
537
|
lines.push(` --btn-${size}-padding-x: ${s.paddingX};`);
|
|
538
538
|
lines.push(` --btn-${size}-padding-y: ${s.paddingY};`);
|
|
539
539
|
lines.push(` --btn-${size}-font-size: ${s.fontSize};`);
|
|
540
|
+
if (s.fontFamily) {
|
|
541
|
+
const fontDef = t.typography?.fonts?.find(f => f.name === s.fontFamily);
|
|
542
|
+
const fallback = fontDef?.fallback || 'sans-serif';
|
|
543
|
+
lines.push(` --btn-${size}-font-family: "${s.fontFamily}", ${fallback};`);
|
|
544
|
+
}
|
|
540
545
|
lines.push(` --btn-${size}-font-weight: ${s.fontWeight};`);
|
|
541
546
|
lines.push(` --btn-${size}-line-height: ${s.lineHeight};`);
|
|
542
547
|
lines.push(` --btn-${size}-letter-spacing: ${s.letterSpacing};`);
|
|
@@ -597,15 +602,31 @@ function resolveShadowToCSS(shadowValue, t) {
|
|
|
597
602
|
function addButtonVariantVars(lines, prefix, variant, t) {
|
|
598
603
|
if (variant.bg) lines.push(` --${prefix}-bg: ${resolveColorRef(variant.bg, t)};`);
|
|
599
604
|
if (variant.bgHover) lines.push(` --${prefix}-bg-hover: ${resolveColorRef(variant.bgHover, t)};`);
|
|
605
|
+
if (variant.bgActive) lines.push(` --${prefix}-bg-active: ${resolveColorRef(variant.bgActive, t)};`);
|
|
600
606
|
if (variant.text) lines.push(` --${prefix}-text: ${resolveColorRef(variant.text, t)};`);
|
|
601
607
|
if (variant.textHover) lines.push(` --${prefix}-text-hover: ${resolveColorRef(variant.textHover, t)};`);
|
|
608
|
+
if (variant.textActive) lines.push(` --${prefix}-text-active: ${resolveColorRef(variant.textActive, t)};`);
|
|
602
609
|
if (variant.border && variant.border !== 'none') lines.push(` --${prefix}-border: 1px solid ${resolveColorRef(variant.border, t)};`);
|
|
603
610
|
if (variant.borderHover && variant.borderHover !== 'none') lines.push(` --${prefix}-border-hover: 1px solid ${resolveColorRef(variant.borderHover, t)};`);
|
|
611
|
+
if (variant.borderActive && variant.borderActive !== 'none') lines.push(` --${prefix}-border-active: 1px solid ${resolveColorRef(variant.borderActive, t)};`);
|
|
604
612
|
const shadowCSS = resolveShadowToCSS(variant.shadow, t);
|
|
605
613
|
if (shadowCSS !== 'none') lines.push(` --${prefix}-shadow: ${shadowCSS};`);
|
|
606
614
|
const shadowHoverCSS = resolveShadowToCSS(variant.shadowHover, t);
|
|
607
615
|
if (shadowHoverCSS !== 'none') lines.push(` --${prefix}-shadow-hover: ${shadowHoverCSS};`);
|
|
616
|
+
const shadowActiveCSS = resolveShadowToCSS(variant.shadowActive, t);
|
|
617
|
+
if (shadowActiveCSS !== 'none') lines.push(` --${prefix}-shadow-active: ${shadowActiveCSS};`);
|
|
608
618
|
if (variant.focusRingColor) lines.push(` --${prefix}-focus-ring: ${resolveColorRef(variant.focusRingColor, t)};`);
|
|
619
|
+
if (variant.paddingX != null) lines.push(` --${prefix}-padding-x: ${variant.paddingX};`);
|
|
620
|
+
if (variant.paddingY != null) lines.push(` --${prefix}-padding-y: ${variant.paddingY};`);
|
|
621
|
+
if (variant.fontFamily) {
|
|
622
|
+
const fontDef = t.typography?.fonts?.find(f => f.name === variant.fontFamily);
|
|
623
|
+
const fallback = fontDef?.fallback || 'sans-serif';
|
|
624
|
+
lines.push(` --${prefix}-font-family: "${variant.fontFamily}", ${fallback};`);
|
|
625
|
+
}
|
|
626
|
+
if (variant.fontSizeScale != null && variant.fontSizeScale !== 1) lines.push(` --${prefix}-font-scale: ${variant.fontSizeScale};`);
|
|
627
|
+
if (variant.fontWeight) lines.push(` --${prefix}-font-weight: ${variant.fontWeight};`);
|
|
628
|
+
if (variant.letterSpacing && variant.letterSpacing !== 'normal') lines.push(` --${prefix}-letter-spacing: ${variant.letterSpacing};`);
|
|
629
|
+
if (variant.textTransform && variant.textTransform !== 'none') lines.push(` --${prefix}-text-transform: ${variant.textTransform};`);
|
|
609
630
|
}
|
|
610
631
|
|
|
611
632
|
/**
|
|
@@ -650,6 +671,7 @@ function generateButtonClasses(t) {
|
|
|
650
671
|
white-space: nowrap;
|
|
651
672
|
transition: var(--btn-transition);
|
|
652
673
|
border: none;
|
|
674
|
+
--btn-font-scale: 1;
|
|
653
675
|
}`;
|
|
654
676
|
|
|
655
677
|
// Disabled
|
|
@@ -661,17 +683,23 @@ function generateButtonClasses(t) {
|
|
|
661
683
|
|
|
662
684
|
// Size classes
|
|
663
685
|
for (const size of BUTTON_SIZES) {
|
|
664
|
-
|
|
686
|
+
const s = t.buttons.sizes?.[size];
|
|
687
|
+
if (!s) continue;
|
|
665
688
|
css += `\n.btn-${size} {
|
|
666
|
-
|
|
667
|
-
|
|
689
|
+
--btn-padding-x: var(--btn-${size}-padding-x);
|
|
690
|
+
--btn-padding-y: var(--btn-${size}-padding-y);
|
|
691
|
+
padding: var(--btn-padding-y) var(--btn-padding-x);
|
|
692
|
+
font-size: calc(var(--btn-${size}-font-size) * var(--btn-font-scale, 1));
|
|
668
693
|
font-weight: var(--btn-${size}-font-weight);
|
|
669
694
|
line-height: var(--btn-${size}-line-height);
|
|
670
695
|
letter-spacing: var(--btn-${size}-letter-spacing);
|
|
671
696
|
border-radius: var(--btn-${size}-border-radius);
|
|
672
697
|
min-height: var(--btn-${size}-min-height);
|
|
673
|
-
gap: var(--btn-${size}-gap)
|
|
674
|
-
|
|
698
|
+
gap: var(--btn-${size}-gap);`;
|
|
699
|
+
if (s.fontFamily) {
|
|
700
|
+
css += `\n font-family: var(--btn-${size}-font-family);`;
|
|
701
|
+
}
|
|
702
|
+
css += '\n}';
|
|
675
703
|
css += `\n.btn-${size} iconify-icon { font-size: var(--btn-${size}-icon-size); }`;
|
|
676
704
|
}
|
|
677
705
|
|
|
@@ -685,7 +713,7 @@ function generateButtonClasses(t) {
|
|
|
685
713
|
// customCSS Escape-Hatch
|
|
686
714
|
css += generateCustomCSSBlock(`btn-${variant}`, v.normal.customCSS);
|
|
687
715
|
} else if (v.normal) {
|
|
688
|
-
css += generateVariantNormalCSS(variant, v);
|
|
716
|
+
css += generateVariantNormalCSS(variant, v, t);
|
|
689
717
|
}
|
|
690
718
|
|
|
691
719
|
// On-surface mode
|
|
@@ -700,7 +728,7 @@ function generateButtonClasses(t) {
|
|
|
700
728
|
return css;
|
|
701
729
|
}
|
|
702
730
|
|
|
703
|
-
function generateVariantNormalCSS(variant, v) {
|
|
731
|
+
function generateVariantNormalCSS(variant, v, t) {
|
|
704
732
|
const p = `btn-${variant}`;
|
|
705
733
|
let css = `\n.${p} {
|
|
706
734
|
background: var(--${p}-bg);
|
|
@@ -715,6 +743,29 @@ function generateVariantNormalCSS(variant, v) {
|
|
|
715
743
|
if (v.normal.textDecoration) {
|
|
716
744
|
css += `\n text-decoration: ${v.normal.textDecoration};`;
|
|
717
745
|
}
|
|
746
|
+
// Padding overrides (variant overrides size)
|
|
747
|
+
if (v.normal.paddingX != null) {
|
|
748
|
+
css += `\n --btn-padding-x: var(--${p}-padding-x);`;
|
|
749
|
+
}
|
|
750
|
+
if (v.normal.paddingY != null) {
|
|
751
|
+
css += `\n --btn-padding-y: var(--${p}-padding-y);`;
|
|
752
|
+
}
|
|
753
|
+
// Typography overrides
|
|
754
|
+
if (v.normal.fontFamily) {
|
|
755
|
+
css += `\n font-family: var(--${p}-font-family);`;
|
|
756
|
+
}
|
|
757
|
+
if (v.normal.fontSizeScale != null && v.normal.fontSizeScale !== 1) {
|
|
758
|
+
css += `\n --btn-font-scale: var(--${p}-font-scale, 1);`;
|
|
759
|
+
}
|
|
760
|
+
if (v.normal.fontWeight) {
|
|
761
|
+
css += `\n font-weight: var(--${p}-font-weight);`;
|
|
762
|
+
}
|
|
763
|
+
if (v.normal.letterSpacing && v.normal.letterSpacing !== 'normal') {
|
|
764
|
+
css += `\n letter-spacing: var(--${p}-letter-spacing);`;
|
|
765
|
+
}
|
|
766
|
+
if (v.normal.textTransform && v.normal.textTransform !== 'none') {
|
|
767
|
+
css += `\n text-transform: var(--${p}-text-transform);`;
|
|
768
|
+
}
|
|
718
769
|
|
|
719
770
|
css += '\n}';
|
|
720
771
|
|
|
@@ -732,6 +783,42 @@ function generateVariantNormalCSS(variant, v) {
|
|
|
732
783
|
if (v.normal.textDecorationHover) {
|
|
733
784
|
css += `\n text-decoration: ${v.normal.textDecorationHover};`;
|
|
734
785
|
}
|
|
786
|
+
// Transform (scale + translateY)
|
|
787
|
+
{
|
|
788
|
+
const scale = v.normal.hoverScale ?? 1;
|
|
789
|
+
const y = v.normal.hoverY ?? 0;
|
|
790
|
+
const parts = [];
|
|
791
|
+
if (scale !== 1) parts.push(`scale(${scale})`);
|
|
792
|
+
if (y !== 0) parts.push(`translateY(${y}px)`);
|
|
793
|
+
if (parts.length > 0) {
|
|
794
|
+
css += `\n transform: ${parts.join(' ')};`;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
css += '\n}';
|
|
799
|
+
|
|
800
|
+
// Active
|
|
801
|
+
css += `\n.${p}:active {
|
|
802
|
+
background: var(--${p}-bg-active);
|
|
803
|
+
color: var(--${p}-text-active);`;
|
|
804
|
+
|
|
805
|
+
if (v.normal.borderActive && v.normal.borderActive !== 'none') {
|
|
806
|
+
css += `\n border: var(--${p}-border-active);`;
|
|
807
|
+
}
|
|
808
|
+
if (hasShadow(v.normal.shadowActive)) {
|
|
809
|
+
css += `\n box-shadow: var(--${p}-shadow-active);`;
|
|
810
|
+
}
|
|
811
|
+
// Transform (scale + translateY)
|
|
812
|
+
{
|
|
813
|
+
const scale = v.normal.activeScale ?? 1;
|
|
814
|
+
const y = v.normal.activeY ?? 0;
|
|
815
|
+
const parts = [];
|
|
816
|
+
if (scale !== 1) parts.push(`scale(${scale})`);
|
|
817
|
+
if (y !== 0) parts.push(`translateY(${y}px)`);
|
|
818
|
+
if (parts.length > 0) {
|
|
819
|
+
css += `\n transform: ${parts.join(' ')};`;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
735
822
|
|
|
736
823
|
css += '\n}';
|
|
737
824
|
|
|
@@ -769,6 +856,29 @@ function generateVariantOnSurfaceCSS(variant, v, t) {
|
|
|
769
856
|
if (v.onSurface.textDecoration) {
|
|
770
857
|
css += `\n text-decoration: ${v.onSurface.textDecoration};`;
|
|
771
858
|
}
|
|
859
|
+
// Padding overrides (variant overrides size)
|
|
860
|
+
if (v.onSurface.paddingX != null) {
|
|
861
|
+
css += `\n --btn-padding-x: var(--${osp}-padding-x);`;
|
|
862
|
+
}
|
|
863
|
+
if (v.onSurface.paddingY != null) {
|
|
864
|
+
css += `\n --btn-padding-y: var(--${osp}-padding-y);`;
|
|
865
|
+
}
|
|
866
|
+
// Typography overrides
|
|
867
|
+
if (v.onSurface.fontFamily) {
|
|
868
|
+
css += `\n font-family: var(--${osp}-font-family);`;
|
|
869
|
+
}
|
|
870
|
+
if (v.onSurface.fontSizeScale != null && v.onSurface.fontSizeScale !== 1) {
|
|
871
|
+
css += `\n --btn-font-scale: var(--${osp}-font-scale, 1);`;
|
|
872
|
+
}
|
|
873
|
+
if (v.onSurface.fontWeight) {
|
|
874
|
+
css += `\n font-weight: var(--${osp}-font-weight);`;
|
|
875
|
+
}
|
|
876
|
+
if (v.onSurface.letterSpacing && v.onSurface.letterSpacing !== 'normal') {
|
|
877
|
+
css += `\n letter-spacing: var(--${osp}-letter-spacing);`;
|
|
878
|
+
}
|
|
879
|
+
if (v.onSurface.textTransform && v.onSurface.textTransform !== 'none') {
|
|
880
|
+
css += `\n text-transform: var(--${osp}-text-transform);`;
|
|
881
|
+
}
|
|
772
882
|
|
|
773
883
|
css += '\n}';
|
|
774
884
|
|
|
@@ -786,6 +896,42 @@ function generateVariantOnSurfaceCSS(variant, v, t) {
|
|
|
786
896
|
if (v.onSurface.textDecorationHover) {
|
|
787
897
|
css += `\n text-decoration: ${v.onSurface.textDecorationHover};`;
|
|
788
898
|
}
|
|
899
|
+
// Transform (scale + translateY)
|
|
900
|
+
{
|
|
901
|
+
const scale = v.onSurface.hoverScale ?? 1;
|
|
902
|
+
const y = v.onSurface.hoverY ?? 0;
|
|
903
|
+
const parts = [];
|
|
904
|
+
if (scale !== 1) parts.push(`scale(${scale})`);
|
|
905
|
+
if (y !== 0) parts.push(`translateY(${y}px)`);
|
|
906
|
+
if (parts.length > 0) {
|
|
907
|
+
css += `\n transform: ${parts.join(' ')};`;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
css += '\n}';
|
|
912
|
+
|
|
913
|
+
// Active
|
|
914
|
+
css += `\n.btn-on-surface.${p}:active {
|
|
915
|
+
background: var(--${osp}-bg-active);
|
|
916
|
+
color: var(--${osp}-text-active);`;
|
|
917
|
+
|
|
918
|
+
if (v.onSurface.borderActive && v.onSurface.borderActive !== 'none') {
|
|
919
|
+
css += `\n border: var(--${osp}-border-active);`;
|
|
920
|
+
}
|
|
921
|
+
if (hasShadow(v.onSurface.shadowActive)) {
|
|
922
|
+
css += `\n box-shadow: var(--${osp}-shadow-active);`;
|
|
923
|
+
}
|
|
924
|
+
// Transform (scale + translateY)
|
|
925
|
+
{
|
|
926
|
+
const scale = v.onSurface.activeScale ?? 1;
|
|
927
|
+
const y = v.onSurface.activeY ?? 0;
|
|
928
|
+
const parts = [];
|
|
929
|
+
if (scale !== 1) parts.push(`scale(${scale})`);
|
|
930
|
+
if (y !== 0) parts.push(`translateY(${y}px)`);
|
|
931
|
+
if (parts.length > 0) {
|
|
932
|
+
css += `\n transform: ${parts.join(' ')};`;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
789
935
|
|
|
790
936
|
css += '\n}';
|
|
791
937
|
|
package/src/design-tokens-v2.js
CHANGED
|
@@ -984,6 +984,7 @@ export const defaultDesignTokensV2 = {
|
|
|
984
984
|
paddingX: '0.75rem',
|
|
985
985
|
paddingY: '0.375rem',
|
|
986
986
|
fontSize: '0.8125rem',
|
|
987
|
+
fontFamily: null,
|
|
987
988
|
fontWeight: 500,
|
|
988
989
|
lineHeight: '1.4',
|
|
989
990
|
letterSpacing: '0.01em',
|
|
@@ -996,6 +997,7 @@ export const defaultDesignTokensV2 = {
|
|
|
996
997
|
paddingX: '1.25rem',
|
|
997
998
|
paddingY: '0.625rem',
|
|
998
999
|
fontSize: '0.875rem',
|
|
1000
|
+
fontFamily: null,
|
|
999
1001
|
fontWeight: 500,
|
|
1000
1002
|
lineHeight: '1.4',
|
|
1001
1003
|
letterSpacing: '0em',
|
|
@@ -1008,6 +1010,7 @@ export const defaultDesignTokensV2 = {
|
|
|
1008
1010
|
paddingX: '1.75rem',
|
|
1009
1011
|
paddingY: '0.875rem',
|
|
1010
1012
|
fontSize: '1rem',
|
|
1013
|
+
fontFamily: null,
|
|
1011
1014
|
fontWeight: 600,
|
|
1012
1015
|
lineHeight: '1.4',
|
|
1013
1016
|
letterSpacing: '0em',
|
|
@@ -1022,24 +1025,54 @@ export const defaultDesignTokensV2 = {
|
|
|
1022
1025
|
normal: {
|
|
1023
1026
|
bg: 'primary-9',
|
|
1024
1027
|
bgHover: 'primary-10',
|
|
1028
|
+
bgActive: 'primary-11',
|
|
1025
1029
|
text: 'on-primary',
|
|
1026
1030
|
textHover: 'on-primary',
|
|
1031
|
+
textActive: 'on-primary',
|
|
1027
1032
|
border: 'none',
|
|
1028
1033
|
borderHover: 'none',
|
|
1034
|
+
borderActive: 'none',
|
|
1029
1035
|
shadow: 'none',
|
|
1030
1036
|
shadowHover: 'none',
|
|
1037
|
+
shadowActive: 'none',
|
|
1038
|
+
hoverScale: 1,
|
|
1039
|
+
hoverY: 0,
|
|
1040
|
+
activeScale: 0.97,
|
|
1041
|
+
activeY: 0,
|
|
1042
|
+
paddingX: null,
|
|
1043
|
+
paddingY: null,
|
|
1044
|
+
fontFamily: null,
|
|
1045
|
+
fontSizeScale: 1,
|
|
1046
|
+
fontWeight: null,
|
|
1047
|
+
letterSpacing: 'normal',
|
|
1048
|
+
textTransform: 'none',
|
|
1031
1049
|
focusRingColor: 'primary-8',
|
|
1032
1050
|
customCSS: null
|
|
1033
1051
|
},
|
|
1034
1052
|
onSurface: {
|
|
1035
1053
|
bg: 'neutral-1',
|
|
1036
1054
|
bgHover: 'neutral-2',
|
|
1055
|
+
bgActive: 'neutral-3',
|
|
1037
1056
|
text: 'neutral-12',
|
|
1038
1057
|
textHover: 'neutral-12',
|
|
1058
|
+
textActive: 'neutral-12',
|
|
1039
1059
|
border: 'none',
|
|
1040
1060
|
borderHover: 'none',
|
|
1061
|
+
borderActive: 'none',
|
|
1041
1062
|
shadow: 'none',
|
|
1042
1063
|
shadowHover: 'none',
|
|
1064
|
+
shadowActive: 'none',
|
|
1065
|
+
hoverScale: 1,
|
|
1066
|
+
hoverY: 0,
|
|
1067
|
+
activeScale: 0.97,
|
|
1068
|
+
activeY: 0,
|
|
1069
|
+
paddingX: null,
|
|
1070
|
+
paddingY: null,
|
|
1071
|
+
fontFamily: null,
|
|
1072
|
+
fontSizeScale: 1,
|
|
1073
|
+
fontWeight: null,
|
|
1074
|
+
letterSpacing: 'normal',
|
|
1075
|
+
textTransform: 'none',
|
|
1043
1076
|
customCSS: null
|
|
1044
1077
|
}
|
|
1045
1078
|
},
|
|
@@ -1047,24 +1080,54 @@ export const defaultDesignTokensV2 = {
|
|
|
1047
1080
|
normal: {
|
|
1048
1081
|
bg: 'primary-3',
|
|
1049
1082
|
bgHover: 'primary-4',
|
|
1083
|
+
bgActive: 'primary-5',
|
|
1050
1084
|
text: 'primary-11',
|
|
1051
1085
|
textHover: 'primary-12',
|
|
1086
|
+
textActive: 'primary-12',
|
|
1052
1087
|
border: 'none',
|
|
1053
1088
|
borderHover: 'none',
|
|
1089
|
+
borderActive: 'none',
|
|
1054
1090
|
shadow: 'none',
|
|
1055
1091
|
shadowHover: 'none',
|
|
1092
|
+
shadowActive: 'none',
|
|
1093
|
+
hoverScale: 1,
|
|
1094
|
+
hoverY: 0,
|
|
1095
|
+
activeScale: 0.97,
|
|
1096
|
+
activeY: 0,
|
|
1097
|
+
paddingX: null,
|
|
1098
|
+
paddingY: null,
|
|
1099
|
+
fontFamily: null,
|
|
1100
|
+
fontSizeScale: 1,
|
|
1101
|
+
fontWeight: null,
|
|
1102
|
+
letterSpacing: 'normal',
|
|
1103
|
+
textTransform: 'none',
|
|
1056
1104
|
focusRingColor: 'primary-8',
|
|
1057
1105
|
customCSS: null
|
|
1058
1106
|
},
|
|
1059
1107
|
onSurface: {
|
|
1060
1108
|
bg: 'neutral-1/15',
|
|
1061
1109
|
bgHover: 'neutral-1/25',
|
|
1110
|
+
bgActive: 'neutral-1/35',
|
|
1062
1111
|
text: 'on-primary',
|
|
1063
1112
|
textHover: 'on-primary',
|
|
1113
|
+
textActive: 'on-primary',
|
|
1064
1114
|
border: 'none',
|
|
1065
1115
|
borderHover: 'none',
|
|
1116
|
+
borderActive: 'none',
|
|
1066
1117
|
shadow: 'none',
|
|
1067
1118
|
shadowHover: 'none',
|
|
1119
|
+
shadowActive: 'none',
|
|
1120
|
+
hoverScale: 1,
|
|
1121
|
+
hoverY: 0,
|
|
1122
|
+
activeScale: 0.97,
|
|
1123
|
+
activeY: 0,
|
|
1124
|
+
paddingX: null,
|
|
1125
|
+
paddingY: null,
|
|
1126
|
+
fontFamily: null,
|
|
1127
|
+
fontSizeScale: 1,
|
|
1128
|
+
fontWeight: null,
|
|
1129
|
+
letterSpacing: 'normal',
|
|
1130
|
+
textTransform: 'none',
|
|
1068
1131
|
customCSS: null
|
|
1069
1132
|
}
|
|
1070
1133
|
},
|
|
@@ -1072,24 +1135,54 @@ export const defaultDesignTokensV2 = {
|
|
|
1072
1135
|
normal: {
|
|
1073
1136
|
bg: 'transparent',
|
|
1074
1137
|
bgHover: 'primary-3',
|
|
1138
|
+
bgActive: 'primary-4',
|
|
1075
1139
|
text: 'primary-11',
|
|
1076
1140
|
textHover: 'primary-12',
|
|
1141
|
+
textActive: 'primary-12',
|
|
1077
1142
|
border: 'primary-7',
|
|
1078
1143
|
borderHover: 'primary-8',
|
|
1144
|
+
borderActive: 'primary-9',
|
|
1079
1145
|
shadow: 'none',
|
|
1080
1146
|
shadowHover: 'none',
|
|
1147
|
+
shadowActive: 'none',
|
|
1148
|
+
hoverScale: 1,
|
|
1149
|
+
hoverY: 0,
|
|
1150
|
+
activeScale: 0.97,
|
|
1151
|
+
activeY: 0,
|
|
1152
|
+
paddingX: null,
|
|
1153
|
+
paddingY: null,
|
|
1154
|
+
fontFamily: null,
|
|
1155
|
+
fontSizeScale: 1,
|
|
1156
|
+
fontWeight: null,
|
|
1157
|
+
letterSpacing: 'normal',
|
|
1158
|
+
textTransform: 'none',
|
|
1081
1159
|
focusRingColor: 'primary-8',
|
|
1082
1160
|
customCSS: null
|
|
1083
1161
|
},
|
|
1084
1162
|
onSurface: {
|
|
1085
1163
|
bg: 'transparent',
|
|
1086
1164
|
bgHover: 'neutral-1/15',
|
|
1165
|
+
bgActive: 'neutral-1/25',
|
|
1087
1166
|
text: 'on-primary',
|
|
1088
1167
|
textHover: 'on-primary',
|
|
1168
|
+
textActive: 'on-primary',
|
|
1089
1169
|
border: 'on-primary/40',
|
|
1090
1170
|
borderHover: 'on-primary/70',
|
|
1171
|
+
borderActive: 'on-primary/90',
|
|
1091
1172
|
shadow: 'none',
|
|
1092
1173
|
shadowHover: 'none',
|
|
1174
|
+
shadowActive: 'none',
|
|
1175
|
+
hoverScale: 1,
|
|
1176
|
+
hoverY: 0,
|
|
1177
|
+
activeScale: 0.97,
|
|
1178
|
+
activeY: 0,
|
|
1179
|
+
paddingX: null,
|
|
1180
|
+
paddingY: null,
|
|
1181
|
+
fontFamily: null,
|
|
1182
|
+
fontSizeScale: 1,
|
|
1183
|
+
fontWeight: null,
|
|
1184
|
+
letterSpacing: 'normal',
|
|
1185
|
+
textTransform: 'none',
|
|
1093
1186
|
customCSS: null
|
|
1094
1187
|
}
|
|
1095
1188
|
},
|
|
@@ -1097,24 +1190,54 @@ export const defaultDesignTokensV2 = {
|
|
|
1097
1190
|
normal: {
|
|
1098
1191
|
bg: 'transparent',
|
|
1099
1192
|
bgHover: 'neutral-3',
|
|
1193
|
+
bgActive: 'neutral-4',
|
|
1100
1194
|
text: 'primary-11',
|
|
1101
1195
|
textHover: 'primary-12',
|
|
1196
|
+
textActive: 'primary-12',
|
|
1102
1197
|
border: 'none',
|
|
1103
1198
|
borderHover: 'none',
|
|
1199
|
+
borderActive: 'none',
|
|
1104
1200
|
shadow: 'none',
|
|
1105
1201
|
shadowHover: 'none',
|
|
1202
|
+
shadowActive: 'none',
|
|
1203
|
+
hoverScale: 1,
|
|
1204
|
+
hoverY: 0,
|
|
1205
|
+
activeScale: 0.97,
|
|
1206
|
+
activeY: 0,
|
|
1207
|
+
paddingX: null,
|
|
1208
|
+
paddingY: null,
|
|
1209
|
+
fontFamily: null,
|
|
1210
|
+
fontSizeScale: 1,
|
|
1211
|
+
fontWeight: null,
|
|
1212
|
+
letterSpacing: 'normal',
|
|
1213
|
+
textTransform: 'none',
|
|
1106
1214
|
focusRingColor: 'primary-8',
|
|
1107
1215
|
customCSS: null
|
|
1108
1216
|
},
|
|
1109
1217
|
onSurface: {
|
|
1110
1218
|
bg: 'transparent',
|
|
1111
1219
|
bgHover: 'neutral-1/15',
|
|
1220
|
+
bgActive: 'neutral-1/25',
|
|
1112
1221
|
text: 'on-primary',
|
|
1113
1222
|
textHover: 'on-primary',
|
|
1223
|
+
textActive: 'on-primary',
|
|
1114
1224
|
border: 'none',
|
|
1115
1225
|
borderHover: 'none',
|
|
1226
|
+
borderActive: 'none',
|
|
1116
1227
|
shadow: 'none',
|
|
1117
1228
|
shadowHover: 'none',
|
|
1229
|
+
shadowActive: 'none',
|
|
1230
|
+
hoverScale: 1,
|
|
1231
|
+
hoverY: 0,
|
|
1232
|
+
activeScale: 0.97,
|
|
1233
|
+
activeY: 0,
|
|
1234
|
+
paddingX: null,
|
|
1235
|
+
paddingY: null,
|
|
1236
|
+
fontFamily: null,
|
|
1237
|
+
fontSizeScale: 1,
|
|
1238
|
+
fontWeight: null,
|
|
1239
|
+
letterSpacing: 'normal',
|
|
1240
|
+
textTransform: 'none',
|
|
1118
1241
|
customCSS: null
|
|
1119
1242
|
}
|
|
1120
1243
|
},
|
|
@@ -1122,12 +1245,27 @@ export const defaultDesignTokensV2 = {
|
|
|
1122
1245
|
normal: {
|
|
1123
1246
|
bg: 'transparent',
|
|
1124
1247
|
bgHover: 'transparent',
|
|
1248
|
+
bgActive: 'transparent',
|
|
1125
1249
|
text: 'primary-11',
|
|
1126
1250
|
textHover: 'primary-12',
|
|
1251
|
+
textActive: 'primary-12',
|
|
1127
1252
|
border: 'none',
|
|
1128
1253
|
borderHover: 'none',
|
|
1254
|
+
borderActive: 'none',
|
|
1129
1255
|
shadow: 'none',
|
|
1130
1256
|
shadowHover: 'none',
|
|
1257
|
+
shadowActive: 'none',
|
|
1258
|
+
hoverScale: 1,
|
|
1259
|
+
hoverY: 0,
|
|
1260
|
+
activeScale: 0.97,
|
|
1261
|
+
activeY: 0,
|
|
1262
|
+
paddingX: '0rem',
|
|
1263
|
+
paddingY: null,
|
|
1264
|
+
fontFamily: null,
|
|
1265
|
+
fontSizeScale: 1,
|
|
1266
|
+
fontWeight: null,
|
|
1267
|
+
letterSpacing: 'normal',
|
|
1268
|
+
textTransform: 'none',
|
|
1131
1269
|
textDecoration: 'none',
|
|
1132
1270
|
textDecorationHover: 'underline',
|
|
1133
1271
|
focusRingColor: 'primary-8',
|
|
@@ -1136,12 +1274,27 @@ export const defaultDesignTokensV2 = {
|
|
|
1136
1274
|
onSurface: {
|
|
1137
1275
|
bg: 'transparent',
|
|
1138
1276
|
bgHover: 'transparent',
|
|
1277
|
+
bgActive: 'transparent',
|
|
1139
1278
|
text: 'on-primary',
|
|
1140
1279
|
textHover: 'on-primary',
|
|
1280
|
+
textActive: 'on-primary',
|
|
1141
1281
|
border: 'none',
|
|
1142
1282
|
borderHover: 'none',
|
|
1283
|
+
borderActive: 'none',
|
|
1143
1284
|
shadow: 'none',
|
|
1144
1285
|
shadowHover: 'none',
|
|
1286
|
+
shadowActive: 'none',
|
|
1287
|
+
hoverScale: 1,
|
|
1288
|
+
hoverY: 0,
|
|
1289
|
+
activeScale: 0.97,
|
|
1290
|
+
activeY: 0,
|
|
1291
|
+
paddingX: '0rem',
|
|
1292
|
+
paddingY: null,
|
|
1293
|
+
fontFamily: null,
|
|
1294
|
+
fontSizeScale: 1,
|
|
1295
|
+
fontWeight: null,
|
|
1296
|
+
letterSpacing: 'normal',
|
|
1297
|
+
textTransform: 'none',
|
|
1145
1298
|
textDecoration: 'none',
|
|
1146
1299
|
textDecorationHover: 'underline',
|
|
1147
1300
|
customCSS: null
|
|
@@ -1151,24 +1304,54 @@ export const defaultDesignTokensV2 = {
|
|
|
1151
1304
|
normal: {
|
|
1152
1305
|
bg: 'error-9',
|
|
1153
1306
|
bgHover: 'error-10',
|
|
1307
|
+
bgActive: 'error-11',
|
|
1154
1308
|
text: 'on-error',
|
|
1155
1309
|
textHover: 'on-error',
|
|
1310
|
+
textActive: 'on-error',
|
|
1156
1311
|
border: 'none',
|
|
1157
1312
|
borderHover: 'none',
|
|
1313
|
+
borderActive: 'none',
|
|
1158
1314
|
shadow: 'none',
|
|
1159
1315
|
shadowHover: 'none',
|
|
1316
|
+
shadowActive: 'none',
|
|
1317
|
+
hoverScale: 1,
|
|
1318
|
+
hoverY: 0,
|
|
1319
|
+
activeScale: 0.97,
|
|
1320
|
+
activeY: 0,
|
|
1321
|
+
paddingX: null,
|
|
1322
|
+
paddingY: null,
|
|
1323
|
+
fontFamily: null,
|
|
1324
|
+
fontSizeScale: 1,
|
|
1325
|
+
fontWeight: null,
|
|
1326
|
+
letterSpacing: 'normal',
|
|
1327
|
+
textTransform: 'none',
|
|
1160
1328
|
focusRingColor: 'error-8',
|
|
1161
1329
|
customCSS: null
|
|
1162
1330
|
},
|
|
1163
1331
|
onSurface: {
|
|
1164
1332
|
bg: 'error-9',
|
|
1165
1333
|
bgHover: 'error-10',
|
|
1334
|
+
bgActive: 'error-11',
|
|
1166
1335
|
text: 'on-error',
|
|
1167
1336
|
textHover: 'on-error',
|
|
1337
|
+
textActive: 'on-error',
|
|
1168
1338
|
border: 'none',
|
|
1169
1339
|
borderHover: 'none',
|
|
1340
|
+
borderActive: 'none',
|
|
1170
1341
|
shadow: 'none',
|
|
1171
1342
|
shadowHover: 'none',
|
|
1343
|
+
shadowActive: 'none',
|
|
1344
|
+
hoverScale: 1,
|
|
1345
|
+
hoverY: 0,
|
|
1346
|
+
activeScale: 0.97,
|
|
1347
|
+
activeY: 0,
|
|
1348
|
+
paddingX: null,
|
|
1349
|
+
paddingY: null,
|
|
1350
|
+
fontFamily: null,
|
|
1351
|
+
fontSizeScale: 1,
|
|
1352
|
+
fontWeight: null,
|
|
1353
|
+
letterSpacing: 'normal',
|
|
1354
|
+
textTransform: 'none',
|
|
1172
1355
|
customCSS: null
|
|
1173
1356
|
}
|
|
1174
1357
|
}
|