@nxds/core 0.13.0 → 0.14.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 +2 -2
- package/dist/runtime/catalogue.cjs +1195 -898
- package/dist/runtime/catalogue.cjs.map +1 -1
- package/dist/runtime/catalogue.d.cts +28 -18
- package/dist/runtime/catalogue.d.ts +28 -18
- package/dist/runtime/catalogue.js +1195 -898
- package/dist/runtime/catalogue.js.map +1 -1
- package/dist/runtime/index.cjs +142 -412
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +5 -5
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime/index.js +139 -412
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/palette.cjs.map +1 -1
- package/dist/runtime/palette.js.map +1 -1
- package/dist/runtime/{surface-ladder-Cqo5DfZW.d.ts → surface-ladder-B8LyPHC_.d.ts} +61 -2
- package/dist/runtime/{surface-ladder-DZQFqJvm.d.cts → surface-ladder-DQ9Yfwie.d.cts} +61 -2
- package/package.json +1 -1
|
@@ -1,3 +1,178 @@
|
|
|
1
|
+
// src/lib/token-scales.generated.ts
|
|
2
|
+
var PRIMITIVE_PALETTE_NAMES = [
|
|
3
|
+
"green",
|
|
4
|
+
"emerald",
|
|
5
|
+
"teal",
|
|
6
|
+
"cyan",
|
|
7
|
+
"sky",
|
|
8
|
+
"indigo",
|
|
9
|
+
"violet",
|
|
10
|
+
"purple",
|
|
11
|
+
"fuchsia",
|
|
12
|
+
"pink",
|
|
13
|
+
"slate",
|
|
14
|
+
"rose",
|
|
15
|
+
"lime",
|
|
16
|
+
"yellow",
|
|
17
|
+
"blue",
|
|
18
|
+
"gray",
|
|
19
|
+
"zinc",
|
|
20
|
+
"neutral",
|
|
21
|
+
"stone",
|
|
22
|
+
"red",
|
|
23
|
+
"orange",
|
|
24
|
+
"amber"
|
|
25
|
+
];
|
|
26
|
+
var PAGE_WIDTHS_REM = {
|
|
27
|
+
"3xs": 16,
|
|
28
|
+
"2xs": 18,
|
|
29
|
+
xs: 20,
|
|
30
|
+
sm: 24,
|
|
31
|
+
md: 28,
|
|
32
|
+
lg: 32,
|
|
33
|
+
xl: 36,
|
|
34
|
+
"2xl": 42,
|
|
35
|
+
"3xl": 48,
|
|
36
|
+
"4xl": 56,
|
|
37
|
+
"5xl": 64,
|
|
38
|
+
"6xl": 72,
|
|
39
|
+
"7xl": 80
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// src/token-source/ui-scale.ts
|
|
43
|
+
var UI_SCALES = {
|
|
44
|
+
small: { spacing: 0.9, text: 12 / 14, icon: 14 / 16 },
|
|
45
|
+
default: { spacing: 1, text: 1, icon: 1 },
|
|
46
|
+
large: { spacing: 1.1, text: 16 / 14, icon: 18 / 16 },
|
|
47
|
+
larger: { spacing: 1.25, text: 18 / 14, icon: 20 / 16 }
|
|
48
|
+
};
|
|
49
|
+
var NON_DEFAULT_UI_SCALES = Object.keys(UI_SCALES).filter((scale) => scale !== "default");
|
|
50
|
+
var uiScaleSelector = (scale) => `[data-ui-scale='${scale}']`;
|
|
51
|
+
var TEXT_SIZES = [12, 13, 14, 15, 16];
|
|
52
|
+
var DEFAULT_TEXT_SIZE = 14;
|
|
53
|
+
function textSizeAttr(scale, textSize) {
|
|
54
|
+
const sizeAttr = `[data-text-size='${textSize}']`;
|
|
55
|
+
return scale === "default" ? sizeAttr : `${uiScaleSelector(scale)}${sizeAttr}`;
|
|
56
|
+
}
|
|
57
|
+
function textSizeSelector(scale, textSize) {
|
|
58
|
+
if (textSize !== DEFAULT_TEXT_SIZE) return textSizeAttr(scale, textSize);
|
|
59
|
+
return scale === "default" ? null : uiScaleSelector(scale);
|
|
60
|
+
}
|
|
61
|
+
var FULL_RADIUS = "9999px";
|
|
62
|
+
var MIN_TEXT_PX = 8;
|
|
63
|
+
var px = (value) => Number.parseFloat(value);
|
|
64
|
+
var evenPx = (value) => 2 * Math.round(value / 2);
|
|
65
|
+
function scaleLength(value, factor) {
|
|
66
|
+
const scaled = value * factor;
|
|
67
|
+
return scaled >= 16 ? evenPx(scaled) : Math.round(scaled);
|
|
68
|
+
}
|
|
69
|
+
var textFactor = (scale, textSize) => UI_SCALES[scale].text * (textSize / DEFAULT_TEXT_SIZE);
|
|
70
|
+
function scaleText(size, scale, textSize = DEFAULT_TEXT_SIZE) {
|
|
71
|
+
return Math.max(MIN_TEXT_PX, Math.round(size * textFactor(scale, textSize)));
|
|
72
|
+
}
|
|
73
|
+
function scaleLineHeight(lineHeight, scale, textSize) {
|
|
74
|
+
return Math.max(
|
|
75
|
+
MIN_TEXT_PX,
|
|
76
|
+
evenPx(lineHeight * textFactor(scale, textSize))
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function above(previous) {
|
|
80
|
+
const next = previous + 1;
|
|
81
|
+
return next >= 16 && next % 2 === 1 ? next + 1 : next;
|
|
82
|
+
}
|
|
83
|
+
var stepOf = (cssName) => Number(cssName.replace("spacing-", "").replace("_", "."));
|
|
84
|
+
function scaleMode(tokens, factor) {
|
|
85
|
+
const scaled = new Map(
|
|
86
|
+
tokens.filter(({ step }) => !step).map(({ cssName, value }) => [
|
|
87
|
+
cssName,
|
|
88
|
+
value === FULL_RADIUS ? value : `${scaleLength(px(value), factor)}px`
|
|
89
|
+
])
|
|
90
|
+
);
|
|
91
|
+
const steps = [...scaled].filter(([cssName]) => /^spacing-\d/.test(cssName)).sort(([a], [b]) => stepOf(a) - stepOf(b));
|
|
92
|
+
let previous = -1;
|
|
93
|
+
for (const [cssName, value] of steps) {
|
|
94
|
+
const length = px(value) > previous ? px(value) : above(previous);
|
|
95
|
+
scaled.set(cssName, `${length}px`);
|
|
96
|
+
previous = length;
|
|
97
|
+
}
|
|
98
|
+
return tokens.map(({ cssName, step }) => {
|
|
99
|
+
const value = scaled.get(step ?? cssName);
|
|
100
|
+
if (value === void 0) {
|
|
101
|
+
throw new Error(
|
|
102
|
+
`scaleMode: ${cssName} references ${step}, which its mode lacks`
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
return { cssName, value };
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function widthTokens(widths, scale) {
|
|
109
|
+
const factor = UI_SCALES[scale].spacing;
|
|
110
|
+
return [
|
|
111
|
+
{ cssName: "ui-scale", value: String(factor) },
|
|
112
|
+
...Object.entries(widths).map(([name, rem]) => ({
|
|
113
|
+
cssName: `container-${name}`,
|
|
114
|
+
value: `${Number((rem * factor).toFixed(4))}rem`
|
|
115
|
+
}))
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
var groupValues = (group) => Object.fromEntries(
|
|
119
|
+
Object.entries(group).map(([name, token2]) => [name, token2.$value.value])
|
|
120
|
+
);
|
|
121
|
+
function uiScaleBase(typography, icon) {
|
|
122
|
+
return {
|
|
123
|
+
sizes: groupValues(typography.size),
|
|
124
|
+
lineHeights: groupValues(typography["line-height"]),
|
|
125
|
+
codeSize: typography.code.size.$value.value,
|
|
126
|
+
glyphs: groupValues(icon.glyph),
|
|
127
|
+
widths: PAGE_WIDTHS_REM
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function typeTokens({ sizes, lineHeights, codeSize }, scale, textSize) {
|
|
131
|
+
return [
|
|
132
|
+
...Object.entries(sizes).map(([name, size]) => ({
|
|
133
|
+
cssName: `typography-size-${name}`,
|
|
134
|
+
value: `${scaleText(size, scale, textSize)}px`
|
|
135
|
+
})),
|
|
136
|
+
...Object.entries(lineHeights).map(([name, lineHeight]) => ({
|
|
137
|
+
cssName: `typography-line-height-${name}`,
|
|
138
|
+
value: `${scaleLineHeight(lineHeight, scale, textSize)}px`
|
|
139
|
+
})),
|
|
140
|
+
{
|
|
141
|
+
cssName: "typography-code-size",
|
|
142
|
+
value: `${scaleText(codeSize, scale, textSize)}px`
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
}
|
|
146
|
+
function scaleBlocks(base) {
|
|
147
|
+
const { glyphs, widths } = base;
|
|
148
|
+
const root = { selectors: [":root"], tokens: widthTokens(widths, "default") };
|
|
149
|
+
return [
|
|
150
|
+
root,
|
|
151
|
+
...NON_DEFAULT_UI_SCALES.map((scale) => {
|
|
152
|
+
const { icon } = UI_SCALES[scale];
|
|
153
|
+
const tokens = [
|
|
154
|
+
...typeTokens(base, scale, DEFAULT_TEXT_SIZE),
|
|
155
|
+
...Object.entries(glyphs).map(([name, glyph]) => ({
|
|
156
|
+
cssName: `icon-glyph-${name}`,
|
|
157
|
+
value: `${evenPx(glyph * icon)}px`
|
|
158
|
+
})),
|
|
159
|
+
...widthTokens(widths, scale)
|
|
160
|
+
];
|
|
161
|
+
return { selectors: [uiScaleSelector(scale)], tokens };
|
|
162
|
+
})
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
function textSizeBlocks(base) {
|
|
166
|
+
return Object.keys(UI_SCALES).flatMap(
|
|
167
|
+
(scale) => TEXT_SIZES.filter((textSize) => textSize !== DEFAULT_TEXT_SIZE).map(
|
|
168
|
+
(textSize) => ({
|
|
169
|
+
selectors: [textSizeAttr(scale, textSize)],
|
|
170
|
+
tokens: typeTokens(base, scale, textSize)
|
|
171
|
+
})
|
|
172
|
+
)
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
1
176
|
// src/lib/contrast.ts
|
|
2
177
|
import { APCAcontrast as APCAcontrast2, sRGBtoY as sRGBtoY2 } from "apca-w3";
|
|
3
178
|
import { clampChroma as clampChroma4 } from "culori";
|
|
@@ -719,495 +894,151 @@ function constrainColors(map, mode, contrast) {
|
|
|
719
894
|
return map;
|
|
720
895
|
}
|
|
721
896
|
|
|
722
|
-
//
|
|
723
|
-
var
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
897
|
+
// src/lib/appearance-model.ts
|
|
898
|
+
var DEFAULT_BRAND_COLOR = "#0a0a0a";
|
|
899
|
+
var BASE_TONE_OPTIONS = [
|
|
900
|
+
{ value: "stone", label: "Stone", color: "#747271" },
|
|
901
|
+
{ value: "neutral", label: "Neutral", color: "#737373" },
|
|
902
|
+
{ value: "zinc", label: "Zinc", color: "#717175" },
|
|
903
|
+
{ value: "slate", label: "Slate", color: "#717376" },
|
|
904
|
+
{ value: "gray", label: "Gray", color: "#707274" }
|
|
905
|
+
];
|
|
906
|
+
var BASE_TONE_SEEDS = {
|
|
907
|
+
stone: {
|
|
908
|
+
light: { background: "#fafaf9", foreground: "#1c1917" },
|
|
909
|
+
dark: { background: "#1c1917", foreground: "#fafaf9" }
|
|
910
|
+
},
|
|
911
|
+
neutral: {
|
|
912
|
+
light: { background: "#fafafa", foreground: "#171717" },
|
|
913
|
+
dark: { background: "#171717", foreground: "#fafafa" }
|
|
914
|
+
},
|
|
915
|
+
zinc: {
|
|
916
|
+
light: { background: "#fafafa", foreground: "#09090b" },
|
|
917
|
+
dark: { background: "#09090b", foreground: "#fafafa" }
|
|
918
|
+
},
|
|
919
|
+
slate: {
|
|
920
|
+
light: { background: "#f8fafc", foreground: "#0f172a" },
|
|
921
|
+
dark: { background: "#0f172a", foreground: "#f8fafc" }
|
|
922
|
+
},
|
|
923
|
+
gray: {
|
|
924
|
+
light: { background: "#f9fafb", foreground: "#111827" },
|
|
925
|
+
dark: { background: "#111827", foreground: "#f9fafb" }
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
var UI_SCALE_OPTIONS = [
|
|
929
|
+
{ value: "small", label: "Small" },
|
|
930
|
+
{ value: "default", label: "Default" },
|
|
931
|
+
{ value: "large", label: "Large" },
|
|
932
|
+
{ value: "larger", label: "Larger" }
|
|
933
|
+
];
|
|
934
|
+
var TEXT_SIZE_OPTIONS = TEXT_SIZES.map((value) => ({ value, label: `${value}px` }));
|
|
935
|
+
var DENSITY_OPTIONS = [
|
|
936
|
+
{ value: "tight", label: "Tight" },
|
|
937
|
+
{ value: "compact", label: "Compact" },
|
|
938
|
+
{ value: "default", label: "Default" },
|
|
939
|
+
{ value: "comfortable", label: "Comfortable" },
|
|
940
|
+
{ value: "relaxed", label: "Relaxed" },
|
|
941
|
+
{ value: "spacious", label: "Spacious" }
|
|
942
|
+
];
|
|
943
|
+
var CORNER_OPTIONS = [
|
|
944
|
+
{ value: "square", label: "Square" },
|
|
945
|
+
{ value: "subtle", label: "Subtle" },
|
|
946
|
+
{ value: "smooth", label: "Smooth" },
|
|
947
|
+
{ value: "round", label: "Round" },
|
|
948
|
+
{ value: "extra-round", label: "Extra Round" }
|
|
949
|
+
];
|
|
950
|
+
var ELEVATION_OPTIONS = [
|
|
951
|
+
{ value: "flat", label: "Flat" },
|
|
952
|
+
{ value: "quiet", label: "Quiet" },
|
|
953
|
+
{ value: "soft", label: "Soft" },
|
|
954
|
+
{ value: "standard", label: "Standard" },
|
|
955
|
+
{ value: "strong", label: "Strong" }
|
|
956
|
+
];
|
|
957
|
+
var STROKE_OPTIONS = [
|
|
958
|
+
{ value: "fine", label: "Fine" },
|
|
959
|
+
{ value: "normal", label: "Normal" },
|
|
960
|
+
{ value: "strong", label: "Strong" }
|
|
961
|
+
];
|
|
962
|
+
var DEFAULT_NXDS_APPEARANCE = {
|
|
963
|
+
mode: "light",
|
|
964
|
+
brandColor: DEFAULT_BRAND_COLOR,
|
|
965
|
+
surfaceTone: "zinc",
|
|
966
|
+
lightContrast: 50,
|
|
967
|
+
darkContrast: 50,
|
|
968
|
+
uiScale: "default",
|
|
969
|
+
textSize: 14,
|
|
970
|
+
density: "default",
|
|
971
|
+
corners: "subtle",
|
|
972
|
+
elevation: "quiet",
|
|
973
|
+
stroke: "normal",
|
|
974
|
+
prefs: {
|
|
975
|
+
uiFont: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
976
|
+
headingFont: null,
|
|
977
|
+
codeFont: 'ui-monospace, "SF Mono", Menlo, monospace',
|
|
978
|
+
codeFontSize: 12,
|
|
979
|
+
reduceMotion: false,
|
|
980
|
+
pointerCursors: false,
|
|
981
|
+
fontSmoothing: false
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
var SURFACE_TONES = new Set(
|
|
985
|
+
BASE_TONE_OPTIONS.map((option) => option.value)
|
|
986
|
+
);
|
|
987
|
+
var SCALES = new Set(
|
|
988
|
+
UI_SCALE_OPTIONS.map((option) => option.value)
|
|
989
|
+
);
|
|
990
|
+
var TEXT_SIZE_VALUES = new Set(TEXT_SIZES);
|
|
991
|
+
var DENSITIES = new Set(
|
|
992
|
+
DENSITY_OPTIONS.map((option) => option.value)
|
|
993
|
+
);
|
|
994
|
+
var CORNERS = new Set(
|
|
995
|
+
CORNER_OPTIONS.map((option) => option.value)
|
|
996
|
+
);
|
|
997
|
+
var ELEVATIONS = new Set(
|
|
998
|
+
ELEVATION_OPTIONS.map((option) => option.value)
|
|
999
|
+
);
|
|
1000
|
+
var STROKES = new Set(
|
|
1001
|
+
STROKE_OPTIONS.map((option) => option.value)
|
|
1002
|
+
);
|
|
1003
|
+
function createNxdsThemeContract(state) {
|
|
1004
|
+
const tone = BASE_TONE_SEEDS[state.surfaceTone];
|
|
1005
|
+
return {
|
|
1006
|
+
surfaceTone: state.surfaceTone,
|
|
1007
|
+
contrast: { light: state.lightContrast, dark: state.darkContrast },
|
|
1008
|
+
light: { accent: state.brandColor, ...tone.light },
|
|
1009
|
+
dark: { accent: state.brandColor, ...tone.dark }
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
// src/lib/derive-theme.ts
|
|
1014
|
+
import { clampChroma as clampChroma5 } from "culori";
|
|
1015
|
+
|
|
1016
|
+
// tokens/primitives/color.json
|
|
1017
|
+
var color_default = {
|
|
1018
|
+
green: {
|
|
1019
|
+
"50": {
|
|
1020
|
+
$value: "#f1f7ef",
|
|
1021
|
+
$type: "color"
|
|
733
1022
|
},
|
|
734
|
-
"
|
|
735
|
-
$value: "
|
|
736
|
-
$type: "
|
|
737
|
-
$extensions: {
|
|
738
|
-
"nx-font-source": {
|
|
739
|
-
type: "system"
|
|
740
|
-
}
|
|
741
|
-
}
|
|
1023
|
+
"100": {
|
|
1024
|
+
$value: "#e6f3e3",
|
|
1025
|
+
$type: "color"
|
|
742
1026
|
},
|
|
743
|
-
"
|
|
744
|
-
$value: "
|
|
745
|
-
$type: "
|
|
746
|
-
$extensions: {
|
|
747
|
-
"nx-font-source": {
|
|
748
|
-
type: "system"
|
|
749
|
-
}
|
|
750
|
-
}
|
|
1027
|
+
"200": {
|
|
1028
|
+
$value: "#cce2c7",
|
|
1029
|
+
$type: "color"
|
|
751
1030
|
},
|
|
752
|
-
"
|
|
753
|
-
$value: "
|
|
754
|
-
$type: "
|
|
755
|
-
$extensions: {
|
|
756
|
-
"nx-font-source": {
|
|
757
|
-
type: "system"
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
size: {
|
|
763
|
-
xxs: {
|
|
764
|
-
$value: {
|
|
765
|
-
value: 11,
|
|
766
|
-
unit: "px"
|
|
767
|
-
},
|
|
768
|
-
$type: "dimension"
|
|
1031
|
+
"300": {
|
|
1032
|
+
$value: "#a6c99e",
|
|
1033
|
+
$type: "color"
|
|
769
1034
|
},
|
|
770
|
-
|
|
771
|
-
$value:
|
|
772
|
-
|
|
773
|
-
unit: "px"
|
|
774
|
-
},
|
|
775
|
-
$type: "dimension"
|
|
1035
|
+
"400": {
|
|
1036
|
+
$value: "#7fb175",
|
|
1037
|
+
$type: "color"
|
|
776
1038
|
},
|
|
777
|
-
|
|
778
|
-
$value:
|
|
779
|
-
|
|
780
|
-
unit: "px"
|
|
781
|
-
},
|
|
782
|
-
$type: "dimension"
|
|
783
|
-
},
|
|
784
|
-
base: {
|
|
785
|
-
$value: {
|
|
786
|
-
value: 16,
|
|
787
|
-
unit: "px"
|
|
788
|
-
},
|
|
789
|
-
$type: "dimension"
|
|
790
|
-
},
|
|
791
|
-
lg: {
|
|
792
|
-
$value: {
|
|
793
|
-
value: 18,
|
|
794
|
-
unit: "px"
|
|
795
|
-
},
|
|
796
|
-
$type: "dimension"
|
|
797
|
-
},
|
|
798
|
-
xl: {
|
|
799
|
-
$value: {
|
|
800
|
-
value: 20,
|
|
801
|
-
unit: "px"
|
|
802
|
-
},
|
|
803
|
-
$type: "dimension"
|
|
804
|
-
},
|
|
805
|
-
"2xl": {
|
|
806
|
-
$value: {
|
|
807
|
-
value: 24,
|
|
808
|
-
unit: "px"
|
|
809
|
-
},
|
|
810
|
-
$type: "dimension"
|
|
811
|
-
},
|
|
812
|
-
"3xl": {
|
|
813
|
-
$value: {
|
|
814
|
-
value: 30,
|
|
815
|
-
unit: "px"
|
|
816
|
-
},
|
|
817
|
-
$type: "dimension"
|
|
818
|
-
},
|
|
819
|
-
"4xl": {
|
|
820
|
-
$value: {
|
|
821
|
-
value: 36,
|
|
822
|
-
unit: "px"
|
|
823
|
-
},
|
|
824
|
-
$type: "dimension"
|
|
825
|
-
},
|
|
826
|
-
"5xl": {
|
|
827
|
-
$value: {
|
|
828
|
-
value: 48,
|
|
829
|
-
unit: "px"
|
|
830
|
-
},
|
|
831
|
-
$type: "dimension"
|
|
832
|
-
},
|
|
833
|
-
"6xl": {
|
|
834
|
-
$value: {
|
|
835
|
-
value: 60,
|
|
836
|
-
unit: "px"
|
|
837
|
-
},
|
|
838
|
-
$type: "dimension"
|
|
839
|
-
},
|
|
840
|
-
"7xl": {
|
|
841
|
-
$value: {
|
|
842
|
-
value: 72,
|
|
843
|
-
unit: "px"
|
|
844
|
-
},
|
|
845
|
-
$type: "dimension"
|
|
846
|
-
},
|
|
847
|
-
"8xl": {
|
|
848
|
-
$value: {
|
|
849
|
-
value: 96,
|
|
850
|
-
unit: "px"
|
|
851
|
-
},
|
|
852
|
-
$type: "dimension"
|
|
853
|
-
},
|
|
854
|
-
"9xl": {
|
|
855
|
-
$value: {
|
|
856
|
-
value: 128,
|
|
857
|
-
unit: "px"
|
|
858
|
-
},
|
|
859
|
-
$type: "dimension"
|
|
860
|
-
},
|
|
861
|
-
code: {
|
|
862
|
-
$value: {
|
|
863
|
-
value: 12,
|
|
864
|
-
unit: "px"
|
|
865
|
-
},
|
|
866
|
-
$type: "dimension"
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
weight: {
|
|
870
|
-
thin: {
|
|
871
|
-
$value: 100,
|
|
872
|
-
$type: "fontWeight"
|
|
873
|
-
},
|
|
874
|
-
extralight: {
|
|
875
|
-
$value: 200,
|
|
876
|
-
$type: "fontWeight"
|
|
877
|
-
},
|
|
878
|
-
light: {
|
|
879
|
-
$value: 300,
|
|
880
|
-
$type: "fontWeight"
|
|
881
|
-
},
|
|
882
|
-
normal: {
|
|
883
|
-
$value: 400,
|
|
884
|
-
$type: "fontWeight"
|
|
885
|
-
},
|
|
886
|
-
medium: {
|
|
887
|
-
$value: 500,
|
|
888
|
-
$type: "fontWeight"
|
|
889
|
-
},
|
|
890
|
-
semibold: {
|
|
891
|
-
$value: 600,
|
|
892
|
-
$type: "fontWeight"
|
|
893
|
-
},
|
|
894
|
-
bold: {
|
|
895
|
-
$value: 700,
|
|
896
|
-
$type: "fontWeight"
|
|
897
|
-
},
|
|
898
|
-
extrabold: {
|
|
899
|
-
$value: 800,
|
|
900
|
-
$type: "fontWeight"
|
|
901
|
-
},
|
|
902
|
-
black: {
|
|
903
|
-
$value: 900,
|
|
904
|
-
$type: "fontWeight"
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
"line-height": {
|
|
908
|
-
xxs: {
|
|
909
|
-
$value: {
|
|
910
|
-
value: 12,
|
|
911
|
-
unit: "px"
|
|
912
|
-
},
|
|
913
|
-
$type: "dimension"
|
|
914
|
-
},
|
|
915
|
-
xs: {
|
|
916
|
-
$value: {
|
|
917
|
-
value: 16,
|
|
918
|
-
unit: "px"
|
|
919
|
-
},
|
|
920
|
-
$type: "dimension"
|
|
921
|
-
},
|
|
922
|
-
sm: {
|
|
923
|
-
$value: {
|
|
924
|
-
value: 20,
|
|
925
|
-
unit: "px"
|
|
926
|
-
},
|
|
927
|
-
$type: "dimension"
|
|
928
|
-
},
|
|
929
|
-
base: {
|
|
930
|
-
$value: {
|
|
931
|
-
value: 24,
|
|
932
|
-
unit: "px"
|
|
933
|
-
},
|
|
934
|
-
$type: "dimension"
|
|
935
|
-
},
|
|
936
|
-
lg: {
|
|
937
|
-
$value: {
|
|
938
|
-
value: 28,
|
|
939
|
-
unit: "px"
|
|
940
|
-
},
|
|
941
|
-
$type: "dimension"
|
|
942
|
-
},
|
|
943
|
-
xl: {
|
|
944
|
-
$value: {
|
|
945
|
-
value: 28,
|
|
946
|
-
unit: "px"
|
|
947
|
-
},
|
|
948
|
-
$type: "dimension"
|
|
949
|
-
},
|
|
950
|
-
"2xl": {
|
|
951
|
-
$value: {
|
|
952
|
-
value: 32,
|
|
953
|
-
unit: "px"
|
|
954
|
-
},
|
|
955
|
-
$type: "dimension"
|
|
956
|
-
},
|
|
957
|
-
"3xl": {
|
|
958
|
-
$value: {
|
|
959
|
-
value: 36,
|
|
960
|
-
unit: "px"
|
|
961
|
-
},
|
|
962
|
-
$type: "dimension"
|
|
963
|
-
},
|
|
964
|
-
"4xl": {
|
|
965
|
-
$value: {
|
|
966
|
-
value: 48,
|
|
967
|
-
unit: "px"
|
|
968
|
-
},
|
|
969
|
-
$type: "dimension"
|
|
970
|
-
},
|
|
971
|
-
"5xl": {
|
|
972
|
-
$value: {
|
|
973
|
-
value: 48,
|
|
974
|
-
unit: "px"
|
|
975
|
-
},
|
|
976
|
-
$type: "dimension"
|
|
977
|
-
},
|
|
978
|
-
"6xl": {
|
|
979
|
-
$value: {
|
|
980
|
-
value: 60,
|
|
981
|
-
unit: "px"
|
|
982
|
-
},
|
|
983
|
-
$type: "dimension"
|
|
984
|
-
},
|
|
985
|
-
"7xl": {
|
|
986
|
-
$value: {
|
|
987
|
-
value: 72,
|
|
988
|
-
unit: "px"
|
|
989
|
-
},
|
|
990
|
-
$type: "dimension"
|
|
991
|
-
},
|
|
992
|
-
"8xl": {
|
|
993
|
-
$value: {
|
|
994
|
-
value: 96,
|
|
995
|
-
unit: "px"
|
|
996
|
-
},
|
|
997
|
-
$type: "dimension"
|
|
998
|
-
},
|
|
999
|
-
"9xl": {
|
|
1000
|
-
$value: {
|
|
1001
|
-
value: 128,
|
|
1002
|
-
unit: "px"
|
|
1003
|
-
},
|
|
1004
|
-
$type: "dimension"
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
letterspacing: {
|
|
1008
|
-
tighter: {
|
|
1009
|
-
$value: {
|
|
1010
|
-
value: -0.800000011920929,
|
|
1011
|
-
unit: "px"
|
|
1012
|
-
},
|
|
1013
|
-
$type: "dimension"
|
|
1014
|
-
},
|
|
1015
|
-
tight: {
|
|
1016
|
-
$value: {
|
|
1017
|
-
value: -0.4000000059604645,
|
|
1018
|
-
unit: "px"
|
|
1019
|
-
},
|
|
1020
|
-
$type: "dimension"
|
|
1021
|
-
},
|
|
1022
|
-
normal: {
|
|
1023
|
-
$value: {
|
|
1024
|
-
value: 0,
|
|
1025
|
-
unit: "px"
|
|
1026
|
-
},
|
|
1027
|
-
$type: "dimension"
|
|
1028
|
-
},
|
|
1029
|
-
wide: {
|
|
1030
|
-
$value: {
|
|
1031
|
-
value: 0.4000000059604645,
|
|
1032
|
-
unit: "px"
|
|
1033
|
-
},
|
|
1034
|
-
$type: "dimension"
|
|
1035
|
-
},
|
|
1036
|
-
wider: {
|
|
1037
|
-
$value: {
|
|
1038
|
-
value: 0.800000011920929,
|
|
1039
|
-
unit: "px"
|
|
1040
|
-
},
|
|
1041
|
-
$type: "dimension"
|
|
1042
|
-
},
|
|
1043
|
-
widest: {
|
|
1044
|
-
$value: {
|
|
1045
|
-
value: 1.600000023841858,
|
|
1046
|
-
unit: "px"
|
|
1047
|
-
},
|
|
1048
|
-
$type: "dimension"
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
// src/lib/typography-scale.ts
|
|
1054
|
-
var TYPOGRAPHY_BASE_PX = 14;
|
|
1055
|
-
function formatPx(value) {
|
|
1056
|
-
return `${Number(value.toFixed(4))}px`;
|
|
1057
|
-
}
|
|
1058
|
-
var CODE_SIZE = "code";
|
|
1059
|
-
function typographyScale(uiPx, codePx) {
|
|
1060
|
-
const scale = uiPx / TYPOGRAPHY_BASE_PX;
|
|
1061
|
-
return new Map([
|
|
1062
|
-
...Object.entries(typography_default_default.size).map(
|
|
1063
|
-
([name, token2]) => [
|
|
1064
|
-
`--nx-typography-size-${name}`,
|
|
1065
|
-
formatPx(name === CODE_SIZE ? codePx : token2.$value.value * scale)
|
|
1066
|
-
]
|
|
1067
|
-
),
|
|
1068
|
-
...Object.entries(typography_default_default["line-height"]).map(
|
|
1069
|
-
([name, token2]) => [
|
|
1070
|
-
`--nx-typography-line-height-${name}`,
|
|
1071
|
-
formatPx(token2.$value.value * scale)
|
|
1072
|
-
]
|
|
1073
|
-
)
|
|
1074
|
-
]);
|
|
1075
|
-
}
|
|
1076
|
-
var isCodeSize = (path) => path[0] === "size" && path[1] === CODE_SIZE;
|
|
1077
|
-
|
|
1078
|
-
// src/lib/appearance-model.ts
|
|
1079
|
-
var DEFAULT_BRAND_COLOR = "#0a0a0a";
|
|
1080
|
-
var BASE_TONE_OPTIONS = [
|
|
1081
|
-
{ value: "stone", label: "Stone", color: "#747271" },
|
|
1082
|
-
{ value: "neutral", label: "Neutral", color: "#737373" },
|
|
1083
|
-
{ value: "zinc", label: "Zinc", color: "#717175" },
|
|
1084
|
-
{ value: "slate", label: "Slate", color: "#717376" },
|
|
1085
|
-
{ value: "gray", label: "Gray", color: "#707274" }
|
|
1086
|
-
];
|
|
1087
|
-
var BASE_TONE_SEEDS = {
|
|
1088
|
-
stone: {
|
|
1089
|
-
light: { background: "#fafaf9", foreground: "#1c1917" },
|
|
1090
|
-
dark: { background: "#1c1917", foreground: "#fafaf9" }
|
|
1091
|
-
},
|
|
1092
|
-
neutral: {
|
|
1093
|
-
light: { background: "#fafafa", foreground: "#171717" },
|
|
1094
|
-
dark: { background: "#171717", foreground: "#fafafa" }
|
|
1095
|
-
},
|
|
1096
|
-
zinc: {
|
|
1097
|
-
light: { background: "#fafafa", foreground: "#09090b" },
|
|
1098
|
-
dark: { background: "#09090b", foreground: "#fafafa" }
|
|
1099
|
-
},
|
|
1100
|
-
slate: {
|
|
1101
|
-
light: { background: "#f8fafc", foreground: "#0f172a" },
|
|
1102
|
-
dark: { background: "#0f172a", foreground: "#f8fafc" }
|
|
1103
|
-
},
|
|
1104
|
-
gray: {
|
|
1105
|
-
light: { background: "#f9fafb", foreground: "#111827" },
|
|
1106
|
-
dark: { background: "#111827", foreground: "#f9fafb" }
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
var DENSITY_OPTIONS = [
|
|
1110
|
-
{ value: "tight", label: "Tight" },
|
|
1111
|
-
{ value: "compact", label: "Compact" },
|
|
1112
|
-
{ value: "default", label: "Default" },
|
|
1113
|
-
{ value: "comfortable", label: "Comfortable" },
|
|
1114
|
-
{ value: "relaxed", label: "Relaxed" },
|
|
1115
|
-
{ value: "spacious", label: "Spacious" }
|
|
1116
|
-
];
|
|
1117
|
-
var CORNER_OPTIONS = [
|
|
1118
|
-
{ value: "square", label: "Square" },
|
|
1119
|
-
{ value: "subtle", label: "Subtle" },
|
|
1120
|
-
{ value: "smooth", label: "Smooth" },
|
|
1121
|
-
{ value: "round", label: "Round" },
|
|
1122
|
-
{ value: "extra-round", label: "Extra Round" }
|
|
1123
|
-
];
|
|
1124
|
-
var ELEVATION_OPTIONS = [
|
|
1125
|
-
{ value: "flat", label: "Flat" },
|
|
1126
|
-
{ value: "quiet", label: "Quiet" },
|
|
1127
|
-
{ value: "soft", label: "Soft" },
|
|
1128
|
-
{ value: "standard", label: "Standard" },
|
|
1129
|
-
{ value: "strong", label: "Strong" }
|
|
1130
|
-
];
|
|
1131
|
-
var STROKE_OPTIONS = [
|
|
1132
|
-
{ value: "fine", label: "Fine" },
|
|
1133
|
-
{ value: "normal", label: "Normal" },
|
|
1134
|
-
{ value: "strong", label: "Strong" }
|
|
1135
|
-
];
|
|
1136
|
-
var DEFAULT_NXDS_APPEARANCE = {
|
|
1137
|
-
mode: "light",
|
|
1138
|
-
brandColor: DEFAULT_BRAND_COLOR,
|
|
1139
|
-
surfaceTone: "zinc",
|
|
1140
|
-
lightContrast: 50,
|
|
1141
|
-
darkContrast: 50,
|
|
1142
|
-
density: "default",
|
|
1143
|
-
corners: "subtle",
|
|
1144
|
-
elevation: "quiet",
|
|
1145
|
-
stroke: "normal",
|
|
1146
|
-
prefs: {
|
|
1147
|
-
uiFont: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
1148
|
-
headingFont: null,
|
|
1149
|
-
codeFont: 'ui-monospace, "SF Mono", Menlo, monospace',
|
|
1150
|
-
uiFontSize: TYPOGRAPHY_BASE_PX,
|
|
1151
|
-
codeFontSize: 12,
|
|
1152
|
-
reduceMotion: false,
|
|
1153
|
-
pointerCursors: false,
|
|
1154
|
-
fontSmoothing: false
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
var SURFACE_TONES = new Set(
|
|
1158
|
-
BASE_TONE_OPTIONS.map((option) => option.value)
|
|
1159
|
-
);
|
|
1160
|
-
var DENSITIES = new Set(
|
|
1161
|
-
DENSITY_OPTIONS.map((option) => option.value)
|
|
1162
|
-
);
|
|
1163
|
-
var CORNERS = new Set(
|
|
1164
|
-
CORNER_OPTIONS.map((option) => option.value)
|
|
1165
|
-
);
|
|
1166
|
-
var ELEVATIONS = new Set(
|
|
1167
|
-
ELEVATION_OPTIONS.map((option) => option.value)
|
|
1168
|
-
);
|
|
1169
|
-
var STROKES = new Set(
|
|
1170
|
-
STROKE_OPTIONS.map((option) => option.value)
|
|
1171
|
-
);
|
|
1172
|
-
function createNxdsThemeContract(state) {
|
|
1173
|
-
const tone = BASE_TONE_SEEDS[state.surfaceTone];
|
|
1174
|
-
return {
|
|
1175
|
-
surfaceTone: state.surfaceTone,
|
|
1176
|
-
contrast: { light: state.lightContrast, dark: state.darkContrast },
|
|
1177
|
-
light: { accent: state.brandColor, ...tone.light },
|
|
1178
|
-
dark: { accent: state.brandColor, ...tone.dark }
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
// src/lib/derive-theme.ts
|
|
1183
|
-
import { clampChroma as clampChroma5 } from "culori";
|
|
1184
|
-
|
|
1185
|
-
// tokens/primitives/color.json
|
|
1186
|
-
var color_default = {
|
|
1187
|
-
green: {
|
|
1188
|
-
"50": {
|
|
1189
|
-
$value: "#f1f7ef",
|
|
1190
|
-
$type: "color"
|
|
1191
|
-
},
|
|
1192
|
-
"100": {
|
|
1193
|
-
$value: "#e6f3e3",
|
|
1194
|
-
$type: "color"
|
|
1195
|
-
},
|
|
1196
|
-
"200": {
|
|
1197
|
-
$value: "#cce2c7",
|
|
1198
|
-
$type: "color"
|
|
1199
|
-
},
|
|
1200
|
-
"300": {
|
|
1201
|
-
$value: "#a6c99e",
|
|
1202
|
-
$type: "color"
|
|
1203
|
-
},
|
|
1204
|
-
"400": {
|
|
1205
|
-
$value: "#7fb175",
|
|
1206
|
-
$type: "color"
|
|
1207
|
-
},
|
|
1208
|
-
"500": {
|
|
1209
|
-
$value: "#569947",
|
|
1210
|
-
$type: "color"
|
|
1039
|
+
"500": {
|
|
1040
|
+
$value: "#569947",
|
|
1041
|
+
$type: "color"
|
|
1211
1042
|
},
|
|
1212
1043
|
"600": {
|
|
1213
1044
|
$value: "#3f7932",
|
|
@@ -2558,32 +2389,6 @@ var color_default = {
|
|
|
2558
2389
|
}
|
|
2559
2390
|
};
|
|
2560
2391
|
|
|
2561
|
-
// src/lib/token-scales.generated.ts
|
|
2562
|
-
var PRIMITIVE_PALETTE_NAMES = [
|
|
2563
|
-
"green",
|
|
2564
|
-
"emerald",
|
|
2565
|
-
"teal",
|
|
2566
|
-
"cyan",
|
|
2567
|
-
"sky",
|
|
2568
|
-
"indigo",
|
|
2569
|
-
"violet",
|
|
2570
|
-
"purple",
|
|
2571
|
-
"fuchsia",
|
|
2572
|
-
"pink",
|
|
2573
|
-
"slate",
|
|
2574
|
-
"rose",
|
|
2575
|
-
"lime",
|
|
2576
|
-
"yellow",
|
|
2577
|
-
"blue",
|
|
2578
|
-
"gray",
|
|
2579
|
-
"zinc",
|
|
2580
|
-
"neutral",
|
|
2581
|
-
"stone",
|
|
2582
|
-
"red",
|
|
2583
|
-
"orange",
|
|
2584
|
-
"amber"
|
|
2585
|
-
];
|
|
2586
|
-
|
|
2587
2392
|
// src/lib/primitive-palette.ts
|
|
2588
2393
|
var rampCache = /* @__PURE__ */ new Map();
|
|
2589
2394
|
function getPaletteRamp(palette) {
|
|
@@ -3310,6 +3115,22 @@ function spacingTokenKind(tokenPath) {
|
|
|
3310
3115
|
`spacingTokenKind: unknown top-level key "${root}" in path [${tokenPath.join(".")}] \u2014 extend SPACING_NUMERIC_ROOTS / SPACING_ROLE_ROOTS`
|
|
3311
3116
|
);
|
|
3312
3117
|
}
|
|
3118
|
+
function referencedStep(token2, fileTokens) {
|
|
3119
|
+
if (!isReference(token2.value)) return void 0;
|
|
3120
|
+
const reference = extractRefPath(token2.value);
|
|
3121
|
+
const step = fileTokens.find(
|
|
3122
|
+
({ path }) => path.join(".") === reference && spacingTokenKind(path) === "numeric"
|
|
3123
|
+
);
|
|
3124
|
+
if (!step || isReference(step.value)) {
|
|
3125
|
+
throw new Error(
|
|
3126
|
+
`referencedStep: ${token2.path.join(".")} references {${reference}}, which is not a spacing step with a value`
|
|
3127
|
+
);
|
|
3128
|
+
}
|
|
3129
|
+
return step;
|
|
3130
|
+
}
|
|
3131
|
+
function spacingValue(token2, fileTokens) {
|
|
3132
|
+
return (referencedStep(token2, fileTokens) ?? token2).value;
|
|
3133
|
+
}
|
|
3313
3134
|
var FAMILY_TO_UTILITY = {
|
|
3314
3135
|
"padding-x": { prefix: "px", properties: ["padding-left", "padding-right"] },
|
|
3315
3136
|
"padding-y": { prefix: "py", properties: ["padding-top", "padding-bottom"] },
|
|
@@ -3394,6 +3215,32 @@ function durationUtility(key) {
|
|
|
3394
3215
|
]
|
|
3395
3216
|
};
|
|
3396
3217
|
}
|
|
3218
|
+
function iconSizeUtility(key) {
|
|
3219
|
+
const value = `var(--nx-icon-${key})`;
|
|
3220
|
+
return {
|
|
3221
|
+
name: `size-icon-${key}`,
|
|
3222
|
+
declarations: [
|
|
3223
|
+
{ property: "width", value },
|
|
3224
|
+
{ property: "height", value },
|
|
3225
|
+
{ property: "--nx-icon-size", value }
|
|
3226
|
+
]
|
|
3227
|
+
};
|
|
3228
|
+
}
|
|
3229
|
+
var ICON_STROKE_UTILITY = {
|
|
3230
|
+
name: "icon-stroke",
|
|
3231
|
+
selectors: ["&:is(svg)", "&:is(svg) *", "& svg", "& svg *"],
|
|
3232
|
+
declarations: [
|
|
3233
|
+
{
|
|
3234
|
+
property: "stroke-width",
|
|
3235
|
+
value: "calc(var(--nx-icon-stroke-base) + var(--nx-icon-size, var(--nx-icon-glyph-default)) * var(--nx-icon-stroke-ratio))"
|
|
3236
|
+
},
|
|
3237
|
+
{ property: "vector-effect", value: "non-scaling-stroke" }
|
|
3238
|
+
]
|
|
3239
|
+
};
|
|
3240
|
+
function iconUtility(path) {
|
|
3241
|
+
if (path[0] === "stroke") return ICON_STROKE_UTILITY;
|
|
3242
|
+
return iconSizeUtility(path.join("-"));
|
|
3243
|
+
}
|
|
3397
3244
|
var DEFAULT_TRANSITION = {
|
|
3398
3245
|
duration: "default",
|
|
3399
3246
|
ease: "enter"
|
|
@@ -3614,6 +3461,67 @@ var borderwidth_strong_default = {
|
|
|
3614
3461
|
}
|
|
3615
3462
|
};
|
|
3616
3463
|
|
|
3464
|
+
// tokens/primitives/icon.json
|
|
3465
|
+
var icon_default = {
|
|
3466
|
+
glyph: {
|
|
3467
|
+
xs: {
|
|
3468
|
+
$value: {
|
|
3469
|
+
value: 12,
|
|
3470
|
+
unit: "px"
|
|
3471
|
+
},
|
|
3472
|
+
$type: "dimension",
|
|
3473
|
+
$description: "Small icon in a compact part, such as Kbd. It follows the UI scale and is the same at every density."
|
|
3474
|
+
},
|
|
3475
|
+
sm: {
|
|
3476
|
+
$value: {
|
|
3477
|
+
value: 14,
|
|
3478
|
+
unit: "px"
|
|
3479
|
+
},
|
|
3480
|
+
$type: "dimension",
|
|
3481
|
+
$description: "Small icon, such as a Badge icon or the small Switch. It follows the UI scale and is the same at every density."
|
|
3482
|
+
},
|
|
3483
|
+
default: {
|
|
3484
|
+
$value: {
|
|
3485
|
+
value: 16,
|
|
3486
|
+
unit: "px"
|
|
3487
|
+
},
|
|
3488
|
+
$type: "dimension",
|
|
3489
|
+
$description: "Icon in a control, at every control size, and the Checkbox, Radio and Switch size. It follows the UI scale and is the same at every density."
|
|
3490
|
+
},
|
|
3491
|
+
lg: {
|
|
3492
|
+
$value: {
|
|
3493
|
+
value: 24,
|
|
3494
|
+
unit: "px"
|
|
3495
|
+
},
|
|
3496
|
+
$type: "dimension",
|
|
3497
|
+
$description: "Large standalone icon, such as in an EmptyState. It follows the UI scale and is the same at every density."
|
|
3498
|
+
},
|
|
3499
|
+
xl: {
|
|
3500
|
+
$value: {
|
|
3501
|
+
value: 32,
|
|
3502
|
+
unit: "px"
|
|
3503
|
+
},
|
|
3504
|
+
$type: "dimension",
|
|
3505
|
+
$description: "Extra large standalone icon, such as in a vertical Attachment. It follows the UI scale and is the same at every density."
|
|
3506
|
+
}
|
|
3507
|
+
},
|
|
3508
|
+
stroke: {
|
|
3509
|
+
base: {
|
|
3510
|
+
$value: {
|
|
3511
|
+
value: 0.5,
|
|
3512
|
+
unit: "px"
|
|
3513
|
+
},
|
|
3514
|
+
$type: "dimension",
|
|
3515
|
+
$description: "Line a stroked icon, such as Lucide, Tabler or HugeIcons, draws before it grows with the icon. The line is this plus the icon size times the stroke ratio: 1.5px at 16px. Filled icons, such as Phosphor and Remix, keep their own line."
|
|
3516
|
+
},
|
|
3517
|
+
ratio: {
|
|
3518
|
+
$value: 0.0625,
|
|
3519
|
+
$type: "number",
|
|
3520
|
+
$description: "Line a stroked icon adds for each pixel of its size. 0.0625 adds 1px of line for every 16px of icon."
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
};
|
|
3524
|
+
|
|
3617
3525
|
// tokens/primitives/motion/motion-snappy.json
|
|
3618
3526
|
var motion_snappy_default = {
|
|
3619
3527
|
duration: {
|
|
@@ -8683,14 +8591,154 @@ var shadow_strong_light_default = {
|
|
|
8683
8591
|
},
|
|
8684
8592
|
y: {
|
|
8685
8593
|
$value: {
|
|
8686
|
-
value: 3,
|
|
8594
|
+
value: 3,
|
|
8595
|
+
unit: "px"
|
|
8596
|
+
},
|
|
8597
|
+
$type: "dimension"
|
|
8598
|
+
},
|
|
8599
|
+
blur: {
|
|
8600
|
+
$value: {
|
|
8601
|
+
value: 6,
|
|
8602
|
+
unit: "px"
|
|
8603
|
+
},
|
|
8604
|
+
$type: "dimension"
|
|
8605
|
+
},
|
|
8606
|
+
spread: {
|
|
8607
|
+
$value: {
|
|
8608
|
+
value: -1,
|
|
8609
|
+
unit: "px"
|
|
8610
|
+
},
|
|
8611
|
+
$type: "dimension"
|
|
8612
|
+
},
|
|
8613
|
+
color: {
|
|
8614
|
+
$value: "#0000001f",
|
|
8615
|
+
$type: "color"
|
|
8616
|
+
}
|
|
8617
|
+
}
|
|
8618
|
+
},
|
|
8619
|
+
md: {
|
|
8620
|
+
"layer-1": {
|
|
8621
|
+
x: {
|
|
8622
|
+
$value: {
|
|
8623
|
+
value: 0,
|
|
8624
|
+
unit: "px"
|
|
8625
|
+
},
|
|
8626
|
+
$type: "dimension"
|
|
8627
|
+
},
|
|
8628
|
+
y: {
|
|
8629
|
+
$value: {
|
|
8630
|
+
value: 1,
|
|
8631
|
+
unit: "px"
|
|
8632
|
+
},
|
|
8633
|
+
$type: "dimension"
|
|
8634
|
+
},
|
|
8635
|
+
blur: {
|
|
8636
|
+
$value: {
|
|
8637
|
+
value: 3,
|
|
8638
|
+
unit: "px"
|
|
8639
|
+
},
|
|
8640
|
+
$type: "dimension"
|
|
8641
|
+
},
|
|
8642
|
+
spread: {
|
|
8643
|
+
$value: {
|
|
8644
|
+
value: 0,
|
|
8645
|
+
unit: "px"
|
|
8646
|
+
},
|
|
8647
|
+
$type: "dimension"
|
|
8648
|
+
},
|
|
8649
|
+
color: {
|
|
8650
|
+
$value: "#0000001f",
|
|
8651
|
+
$type: "color"
|
|
8652
|
+
}
|
|
8653
|
+
},
|
|
8654
|
+
"layer-2": {
|
|
8655
|
+
x: {
|
|
8656
|
+
$value: {
|
|
8657
|
+
value: 0,
|
|
8658
|
+
unit: "px"
|
|
8659
|
+
},
|
|
8660
|
+
$type: "dimension"
|
|
8661
|
+
},
|
|
8662
|
+
y: {
|
|
8663
|
+
$value: {
|
|
8664
|
+
value: 4,
|
|
8665
|
+
unit: "px"
|
|
8666
|
+
},
|
|
8667
|
+
$type: "dimension"
|
|
8668
|
+
},
|
|
8669
|
+
blur: {
|
|
8670
|
+
$value: {
|
|
8671
|
+
value: 8,
|
|
8672
|
+
unit: "px"
|
|
8673
|
+
},
|
|
8674
|
+
$type: "dimension"
|
|
8675
|
+
},
|
|
8676
|
+
spread: {
|
|
8677
|
+
$value: {
|
|
8678
|
+
value: -1,
|
|
8679
|
+
unit: "px"
|
|
8680
|
+
},
|
|
8681
|
+
$type: "dimension"
|
|
8682
|
+
},
|
|
8683
|
+
color: {
|
|
8684
|
+
$value: "#0000001f",
|
|
8685
|
+
$type: "color"
|
|
8686
|
+
}
|
|
8687
|
+
}
|
|
8688
|
+
},
|
|
8689
|
+
lg: {
|
|
8690
|
+
"layer-1": {
|
|
8691
|
+
x: {
|
|
8692
|
+
$value: {
|
|
8693
|
+
value: 0,
|
|
8694
|
+
unit: "px"
|
|
8695
|
+
},
|
|
8696
|
+
$type: "dimension"
|
|
8697
|
+
},
|
|
8698
|
+
y: {
|
|
8699
|
+
$value: {
|
|
8700
|
+
value: 1,
|
|
8701
|
+
unit: "px"
|
|
8702
|
+
},
|
|
8703
|
+
$type: "dimension"
|
|
8704
|
+
},
|
|
8705
|
+
blur: {
|
|
8706
|
+
$value: {
|
|
8707
|
+
value: 3,
|
|
8708
|
+
unit: "px"
|
|
8709
|
+
},
|
|
8710
|
+
$type: "dimension"
|
|
8711
|
+
},
|
|
8712
|
+
spread: {
|
|
8713
|
+
$value: {
|
|
8714
|
+
value: 0,
|
|
8715
|
+
unit: "px"
|
|
8716
|
+
},
|
|
8717
|
+
$type: "dimension"
|
|
8718
|
+
},
|
|
8719
|
+
color: {
|
|
8720
|
+
$value: "#00000026",
|
|
8721
|
+
$type: "color"
|
|
8722
|
+
}
|
|
8723
|
+
},
|
|
8724
|
+
"layer-2": {
|
|
8725
|
+
x: {
|
|
8726
|
+
$value: {
|
|
8727
|
+
value: 0,
|
|
8728
|
+
unit: "px"
|
|
8729
|
+
},
|
|
8730
|
+
$type: "dimension"
|
|
8731
|
+
},
|
|
8732
|
+
y: {
|
|
8733
|
+
$value: {
|
|
8734
|
+
value: 8,
|
|
8687
8735
|
unit: "px"
|
|
8688
8736
|
},
|
|
8689
8737
|
$type: "dimension"
|
|
8690
8738
|
},
|
|
8691
8739
|
blur: {
|
|
8692
8740
|
$value: {
|
|
8693
|
-
value:
|
|
8741
|
+
value: 16,
|
|
8694
8742
|
unit: "px"
|
|
8695
8743
|
},
|
|
8696
8744
|
$type: "dimension"
|
|
@@ -8703,12 +8751,12 @@ var shadow_strong_light_default = {
|
|
|
8703
8751
|
$type: "dimension"
|
|
8704
8752
|
},
|
|
8705
8753
|
color: {
|
|
8706
|
-
$value: "#
|
|
8754
|
+
$value: "#00000026",
|
|
8707
8755
|
$type: "color"
|
|
8708
8756
|
}
|
|
8709
8757
|
}
|
|
8710
8758
|
},
|
|
8711
|
-
|
|
8759
|
+
xl: {
|
|
8712
8760
|
"layer-1": {
|
|
8713
8761
|
x: {
|
|
8714
8762
|
$value: {
|
|
@@ -8739,7 +8787,7 @@ var shadow_strong_light_default = {
|
|
|
8739
8787
|
$type: "dimension"
|
|
8740
8788
|
},
|
|
8741
8789
|
color: {
|
|
8742
|
-
$value: "#
|
|
8790
|
+
$value: "#0000002e",
|
|
8743
8791
|
$type: "color"
|
|
8744
8792
|
}
|
|
8745
8793
|
},
|
|
@@ -8753,14 +8801,14 @@ var shadow_strong_light_default = {
|
|
|
8753
8801
|
},
|
|
8754
8802
|
y: {
|
|
8755
8803
|
$value: {
|
|
8756
|
-
value:
|
|
8804
|
+
value: 16,
|
|
8757
8805
|
unit: "px"
|
|
8758
8806
|
},
|
|
8759
8807
|
$type: "dimension"
|
|
8760
8808
|
},
|
|
8761
8809
|
blur: {
|
|
8762
8810
|
$value: {
|
|
8763
|
-
value:
|
|
8811
|
+
value: 24,
|
|
8764
8812
|
unit: "px"
|
|
8765
8813
|
},
|
|
8766
8814
|
$type: "dimension"
|
|
@@ -8773,12 +8821,12 @@ var shadow_strong_light_default = {
|
|
|
8773
8821
|
$type: "dimension"
|
|
8774
8822
|
},
|
|
8775
8823
|
color: {
|
|
8776
|
-
$value: "#
|
|
8824
|
+
$value: "#0000002e",
|
|
8777
8825
|
$type: "color"
|
|
8778
8826
|
}
|
|
8779
8827
|
}
|
|
8780
8828
|
},
|
|
8781
|
-
|
|
8829
|
+
"2xl": {
|
|
8782
8830
|
"layer-1": {
|
|
8783
8831
|
x: {
|
|
8784
8832
|
$value: {
|
|
@@ -8809,11 +8857,13 @@ var shadow_strong_light_default = {
|
|
|
8809
8857
|
$type: "dimension"
|
|
8810
8858
|
},
|
|
8811
8859
|
color: {
|
|
8812
|
-
$value: "#
|
|
8860
|
+
$value: "#0000004d",
|
|
8813
8861
|
$type: "color"
|
|
8814
8862
|
}
|
|
8815
|
-
}
|
|
8816
|
-
|
|
8863
|
+
}
|
|
8864
|
+
},
|
|
8865
|
+
inner: {
|
|
8866
|
+
"layer-1": {
|
|
8817
8867
|
x: {
|
|
8818
8868
|
$value: {
|
|
8819
8869
|
value: 0,
|
|
@@ -8823,171 +8873,363 @@ var shadow_strong_light_default = {
|
|
|
8823
8873
|
},
|
|
8824
8874
|
y: {
|
|
8825
8875
|
$value: {
|
|
8826
|
-
value:
|
|
8876
|
+
value: 2,
|
|
8827
8877
|
unit: "px"
|
|
8828
8878
|
},
|
|
8829
8879
|
$type: "dimension"
|
|
8830
8880
|
},
|
|
8831
8881
|
blur: {
|
|
8832
8882
|
$value: {
|
|
8833
|
-
value:
|
|
8883
|
+
value: 6,
|
|
8834
8884
|
unit: "px"
|
|
8835
8885
|
},
|
|
8836
8886
|
$type: "dimension"
|
|
8837
8887
|
},
|
|
8838
8888
|
spread: {
|
|
8839
8889
|
$value: {
|
|
8840
|
-
value:
|
|
8890
|
+
value: 0,
|
|
8841
8891
|
unit: "px"
|
|
8842
8892
|
},
|
|
8843
8893
|
$type: "dimension"
|
|
8844
8894
|
},
|
|
8845
8895
|
color: {
|
|
8846
|
-
$value: "#
|
|
8896
|
+
$value: "#00000014",
|
|
8847
8897
|
$type: "color"
|
|
8848
8898
|
}
|
|
8849
8899
|
}
|
|
8900
|
+
}
|
|
8901
|
+
};
|
|
8902
|
+
|
|
8903
|
+
// tokens/primitives/typography/typography-default.json
|
|
8904
|
+
var typography_default_default = {
|
|
8905
|
+
family: {
|
|
8906
|
+
"font-sans": {
|
|
8907
|
+
$value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
8908
|
+
$type: "fontFamily",
|
|
8909
|
+
$extensions: {
|
|
8910
|
+
"nx-font-source": {
|
|
8911
|
+
type: "system"
|
|
8912
|
+
}
|
|
8913
|
+
}
|
|
8914
|
+
},
|
|
8915
|
+
"font-heading": {
|
|
8916
|
+
$value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
8917
|
+
$type: "fontFamily",
|
|
8918
|
+
$extensions: {
|
|
8919
|
+
"nx-font-source": {
|
|
8920
|
+
type: "system"
|
|
8921
|
+
}
|
|
8922
|
+
}
|
|
8923
|
+
},
|
|
8924
|
+
"font-serif": {
|
|
8925
|
+
$value: "Georgia",
|
|
8926
|
+
$type: "fontFamily",
|
|
8927
|
+
$extensions: {
|
|
8928
|
+
"nx-font-source": {
|
|
8929
|
+
type: "system"
|
|
8930
|
+
}
|
|
8931
|
+
}
|
|
8932
|
+
},
|
|
8933
|
+
"font-mono": {
|
|
8934
|
+
$value: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
|
|
8935
|
+
$type: "fontFamily",
|
|
8936
|
+
$extensions: {
|
|
8937
|
+
"nx-font-source": {
|
|
8938
|
+
type: "system"
|
|
8939
|
+
}
|
|
8940
|
+
}
|
|
8941
|
+
}
|
|
8850
8942
|
},
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8943
|
+
size: {
|
|
8944
|
+
xxs: {
|
|
8945
|
+
$value: {
|
|
8946
|
+
value: 11,
|
|
8947
|
+
unit: "px"
|
|
8948
|
+
},
|
|
8949
|
+
$type: "dimension"
|
|
8950
|
+
},
|
|
8951
|
+
xs: {
|
|
8952
|
+
$value: {
|
|
8953
|
+
value: 12,
|
|
8954
|
+
unit: "px"
|
|
8955
|
+
},
|
|
8956
|
+
$type: "dimension"
|
|
8957
|
+
},
|
|
8958
|
+
sm: {
|
|
8959
|
+
$value: {
|
|
8960
|
+
value: 14,
|
|
8961
|
+
unit: "px"
|
|
8962
|
+
},
|
|
8963
|
+
$type: "dimension"
|
|
8964
|
+
},
|
|
8965
|
+
base: {
|
|
8966
|
+
$value: {
|
|
8967
|
+
value: 16,
|
|
8968
|
+
unit: "px"
|
|
8969
|
+
},
|
|
8970
|
+
$type: "dimension"
|
|
8971
|
+
},
|
|
8972
|
+
lg: {
|
|
8973
|
+
$value: {
|
|
8974
|
+
value: 18,
|
|
8975
|
+
unit: "px"
|
|
8976
|
+
},
|
|
8977
|
+
$type: "dimension"
|
|
8978
|
+
},
|
|
8979
|
+
xl: {
|
|
8980
|
+
$value: {
|
|
8981
|
+
value: 20,
|
|
8982
|
+
unit: "px"
|
|
8983
|
+
},
|
|
8984
|
+
$type: "dimension"
|
|
8985
|
+
},
|
|
8986
|
+
"2xl": {
|
|
8987
|
+
$value: {
|
|
8988
|
+
value: 24,
|
|
8989
|
+
unit: "px"
|
|
8990
|
+
},
|
|
8991
|
+
$type: "dimension"
|
|
8992
|
+
},
|
|
8993
|
+
"3xl": {
|
|
8994
|
+
$value: {
|
|
8995
|
+
value: 30,
|
|
8996
|
+
unit: "px"
|
|
8997
|
+
},
|
|
8998
|
+
$type: "dimension"
|
|
8999
|
+
},
|
|
9000
|
+
"4xl": {
|
|
9001
|
+
$value: {
|
|
9002
|
+
value: 36,
|
|
9003
|
+
unit: "px"
|
|
9004
|
+
},
|
|
9005
|
+
$type: "dimension"
|
|
9006
|
+
},
|
|
9007
|
+
"5xl": {
|
|
9008
|
+
$value: {
|
|
9009
|
+
value: 48,
|
|
9010
|
+
unit: "px"
|
|
9011
|
+
},
|
|
9012
|
+
$type: "dimension"
|
|
9013
|
+
},
|
|
9014
|
+
"6xl": {
|
|
9015
|
+
$value: {
|
|
9016
|
+
value: 60,
|
|
9017
|
+
unit: "px"
|
|
9018
|
+
},
|
|
9019
|
+
$type: "dimension"
|
|
9020
|
+
},
|
|
9021
|
+
"7xl": {
|
|
9022
|
+
$value: {
|
|
9023
|
+
value: 72,
|
|
9024
|
+
unit: "px"
|
|
9025
|
+
},
|
|
9026
|
+
$type: "dimension"
|
|
9027
|
+
},
|
|
9028
|
+
"8xl": {
|
|
9029
|
+
$value: {
|
|
9030
|
+
value: 96,
|
|
9031
|
+
unit: "px"
|
|
9032
|
+
},
|
|
9033
|
+
$type: "dimension"
|
|
9034
|
+
},
|
|
9035
|
+
"9xl": {
|
|
9036
|
+
$value: {
|
|
9037
|
+
value: 128,
|
|
9038
|
+
unit: "px"
|
|
9039
|
+
},
|
|
9040
|
+
$type: "dimension"
|
|
9041
|
+
}
|
|
9042
|
+
},
|
|
9043
|
+
weight: {
|
|
9044
|
+
thin: {
|
|
9045
|
+
$value: 100,
|
|
9046
|
+
$type: "fontWeight"
|
|
9047
|
+
},
|
|
9048
|
+
extralight: {
|
|
9049
|
+
$value: 200,
|
|
9050
|
+
$type: "fontWeight"
|
|
9051
|
+
},
|
|
9052
|
+
light: {
|
|
9053
|
+
$value: 300,
|
|
9054
|
+
$type: "fontWeight"
|
|
9055
|
+
},
|
|
9056
|
+
normal: {
|
|
9057
|
+
$value: 400,
|
|
9058
|
+
$type: "fontWeight"
|
|
9059
|
+
},
|
|
9060
|
+
medium: {
|
|
9061
|
+
$value: 500,
|
|
9062
|
+
$type: "fontWeight"
|
|
9063
|
+
},
|
|
9064
|
+
semibold: {
|
|
9065
|
+
$value: 600,
|
|
9066
|
+
$type: "fontWeight"
|
|
9067
|
+
},
|
|
9068
|
+
bold: {
|
|
9069
|
+
$value: 700,
|
|
9070
|
+
$type: "fontWeight"
|
|
9071
|
+
},
|
|
9072
|
+
extrabold: {
|
|
9073
|
+
$value: 800,
|
|
9074
|
+
$type: "fontWeight"
|
|
9075
|
+
},
|
|
9076
|
+
black: {
|
|
9077
|
+
$value: 900,
|
|
9078
|
+
$type: "fontWeight"
|
|
9079
|
+
}
|
|
9080
|
+
},
|
|
9081
|
+
"line-height": {
|
|
9082
|
+
xxs: {
|
|
9083
|
+
$value: {
|
|
9084
|
+
value: 12,
|
|
9085
|
+
unit: "px"
|
|
9086
|
+
},
|
|
9087
|
+
$type: "dimension"
|
|
9088
|
+
},
|
|
9089
|
+
xs: {
|
|
9090
|
+
$value: {
|
|
9091
|
+
value: 16,
|
|
9092
|
+
unit: "px"
|
|
9093
|
+
},
|
|
9094
|
+
$type: "dimension"
|
|
9095
|
+
},
|
|
9096
|
+
sm: {
|
|
9097
|
+
$value: {
|
|
9098
|
+
value: 20,
|
|
9099
|
+
unit: "px"
|
|
9100
|
+
},
|
|
9101
|
+
$type: "dimension"
|
|
9102
|
+
},
|
|
9103
|
+
base: {
|
|
9104
|
+
$value: {
|
|
9105
|
+
value: 24,
|
|
9106
|
+
unit: "px"
|
|
9107
|
+
},
|
|
9108
|
+
$type: "dimension"
|
|
9109
|
+
},
|
|
9110
|
+
lg: {
|
|
9111
|
+
$value: {
|
|
9112
|
+
value: 28,
|
|
9113
|
+
unit: "px"
|
|
9114
|
+
},
|
|
9115
|
+
$type: "dimension"
|
|
9116
|
+
},
|
|
9117
|
+
xl: {
|
|
9118
|
+
$value: {
|
|
9119
|
+
value: 28,
|
|
9120
|
+
unit: "px"
|
|
8859
9121
|
},
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
9122
|
+
$type: "dimension"
|
|
9123
|
+
},
|
|
9124
|
+
"2xl": {
|
|
9125
|
+
$value: {
|
|
9126
|
+
value: 32,
|
|
9127
|
+
unit: "px"
|
|
8866
9128
|
},
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
9129
|
+
$type: "dimension"
|
|
9130
|
+
},
|
|
9131
|
+
"3xl": {
|
|
9132
|
+
$value: {
|
|
9133
|
+
value: 36,
|
|
9134
|
+
unit: "px"
|
|
8873
9135
|
},
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
9136
|
+
$type: "dimension"
|
|
9137
|
+
},
|
|
9138
|
+
"4xl": {
|
|
9139
|
+
$value: {
|
|
9140
|
+
value: 48,
|
|
9141
|
+
unit: "px"
|
|
8880
9142
|
},
|
|
8881
|
-
|
|
8882
|
-
$value: "#0000002e",
|
|
8883
|
-
$type: "color"
|
|
8884
|
-
}
|
|
9143
|
+
$type: "dimension"
|
|
8885
9144
|
},
|
|
8886
|
-
"
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
unit: "px"
|
|
8891
|
-
},
|
|
8892
|
-
$type: "dimension"
|
|
9145
|
+
"5xl": {
|
|
9146
|
+
$value: {
|
|
9147
|
+
value: 48,
|
|
9148
|
+
unit: "px"
|
|
8893
9149
|
},
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
9150
|
+
$type: "dimension"
|
|
9151
|
+
},
|
|
9152
|
+
"6xl": {
|
|
9153
|
+
$value: {
|
|
9154
|
+
value: 60,
|
|
9155
|
+
unit: "px"
|
|
8900
9156
|
},
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
9157
|
+
$type: "dimension"
|
|
9158
|
+
},
|
|
9159
|
+
"7xl": {
|
|
9160
|
+
$value: {
|
|
9161
|
+
value: 72,
|
|
9162
|
+
unit: "px"
|
|
8907
9163
|
},
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
9164
|
+
$type: "dimension"
|
|
9165
|
+
},
|
|
9166
|
+
"8xl": {
|
|
9167
|
+
$value: {
|
|
9168
|
+
value: 96,
|
|
9169
|
+
unit: "px"
|
|
8914
9170
|
},
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
9171
|
+
$type: "dimension"
|
|
9172
|
+
},
|
|
9173
|
+
"9xl": {
|
|
9174
|
+
$value: {
|
|
9175
|
+
value: 128,
|
|
9176
|
+
unit: "px"
|
|
9177
|
+
},
|
|
9178
|
+
$type: "dimension"
|
|
8919
9179
|
}
|
|
8920
9180
|
},
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
unit: "px"
|
|
8927
|
-
},
|
|
8928
|
-
$type: "dimension"
|
|
8929
|
-
},
|
|
8930
|
-
y: {
|
|
8931
|
-
$value: {
|
|
8932
|
-
value: 1,
|
|
8933
|
-
unit: "px"
|
|
8934
|
-
},
|
|
8935
|
-
$type: "dimension"
|
|
9181
|
+
letterspacing: {
|
|
9182
|
+
tighter: {
|
|
9183
|
+
$value: {
|
|
9184
|
+
value: -0.800000011920929,
|
|
9185
|
+
unit: "px"
|
|
8936
9186
|
},
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
9187
|
+
$type: "dimension"
|
|
9188
|
+
},
|
|
9189
|
+
tight: {
|
|
9190
|
+
$value: {
|
|
9191
|
+
value: -0.4000000059604645,
|
|
9192
|
+
unit: "px"
|
|
8943
9193
|
},
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
9194
|
+
$type: "dimension"
|
|
9195
|
+
},
|
|
9196
|
+
normal: {
|
|
9197
|
+
$value: {
|
|
9198
|
+
value: 0,
|
|
9199
|
+
unit: "px"
|
|
8950
9200
|
},
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
inner: {
|
|
8958
|
-
"layer-1": {
|
|
8959
|
-
x: {
|
|
8960
|
-
$value: {
|
|
8961
|
-
value: 0,
|
|
8962
|
-
unit: "px"
|
|
8963
|
-
},
|
|
8964
|
-
$type: "dimension"
|
|
9201
|
+
$type: "dimension"
|
|
9202
|
+
},
|
|
9203
|
+
wide: {
|
|
9204
|
+
$value: {
|
|
9205
|
+
value: 0.4000000059604645,
|
|
9206
|
+
unit: "px"
|
|
8965
9207
|
},
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
9208
|
+
$type: "dimension"
|
|
9209
|
+
},
|
|
9210
|
+
wider: {
|
|
9211
|
+
$value: {
|
|
9212
|
+
value: 0.800000011920929,
|
|
9213
|
+
unit: "px"
|
|
8972
9214
|
},
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
9215
|
+
$type: "dimension"
|
|
9216
|
+
},
|
|
9217
|
+
widest: {
|
|
9218
|
+
$value: {
|
|
9219
|
+
value: 1.600000023841858,
|
|
9220
|
+
unit: "px"
|
|
8979
9221
|
},
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
9222
|
+
$type: "dimension"
|
|
9223
|
+
}
|
|
9224
|
+
},
|
|
9225
|
+
code: {
|
|
9226
|
+
size: {
|
|
9227
|
+
$value: {
|
|
9228
|
+
value: 12,
|
|
9229
|
+
unit: "px"
|
|
8986
9230
|
},
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
$type: "color"
|
|
8990
|
-
}
|
|
9231
|
+
$type: "dimension",
|
|
9232
|
+
$description: "Code text size. The code font size setting writes it, and the code text styles read it."
|
|
8991
9233
|
}
|
|
8992
9234
|
}
|
|
8993
9235
|
};
|
|
@@ -9063,189 +9305,189 @@ var spacing_comfortable_default = {
|
|
|
9063
9305
|
},
|
|
9064
9306
|
"3": {
|
|
9065
9307
|
$value: {
|
|
9066
|
-
value:
|
|
9308
|
+
value: 13,
|
|
9067
9309
|
unit: "px"
|
|
9068
9310
|
},
|
|
9069
9311
|
$type: "dimension"
|
|
9070
9312
|
},
|
|
9071
9313
|
"4": {
|
|
9072
9314
|
$value: {
|
|
9073
|
-
value:
|
|
9315
|
+
value: 17,
|
|
9074
9316
|
unit: "px"
|
|
9075
9317
|
},
|
|
9076
9318
|
$type: "dimension"
|
|
9077
9319
|
},
|
|
9078
9320
|
"5": {
|
|
9079
9321
|
$value: {
|
|
9080
|
-
value:
|
|
9322
|
+
value: 22,
|
|
9081
9323
|
unit: "px"
|
|
9082
9324
|
},
|
|
9083
9325
|
$type: "dimension"
|
|
9084
9326
|
},
|
|
9085
9327
|
"6": {
|
|
9086
9328
|
$value: {
|
|
9087
|
-
value:
|
|
9329
|
+
value: 26,
|
|
9088
9330
|
unit: "px"
|
|
9089
9331
|
},
|
|
9090
9332
|
$type: "dimension"
|
|
9091
9333
|
},
|
|
9092
9334
|
"7": {
|
|
9093
9335
|
$value: {
|
|
9094
|
-
value:
|
|
9336
|
+
value: 30,
|
|
9095
9337
|
unit: "px"
|
|
9096
9338
|
},
|
|
9097
9339
|
$type: "dimension"
|
|
9098
9340
|
},
|
|
9099
9341
|
"8": {
|
|
9100
9342
|
$value: {
|
|
9101
|
-
value:
|
|
9343
|
+
value: 34,
|
|
9102
9344
|
unit: "px"
|
|
9103
9345
|
},
|
|
9104
9346
|
$type: "dimension"
|
|
9105
9347
|
},
|
|
9106
9348
|
"9": {
|
|
9107
9349
|
$value: {
|
|
9108
|
-
value:
|
|
9350
|
+
value: 38,
|
|
9109
9351
|
unit: "px"
|
|
9110
9352
|
},
|
|
9111
9353
|
$type: "dimension"
|
|
9112
9354
|
},
|
|
9113
9355
|
"10": {
|
|
9114
9356
|
$value: {
|
|
9115
|
-
value:
|
|
9357
|
+
value: 42,
|
|
9116
9358
|
unit: "px"
|
|
9117
9359
|
},
|
|
9118
9360
|
$type: "dimension"
|
|
9119
9361
|
},
|
|
9120
9362
|
"11": {
|
|
9121
9363
|
$value: {
|
|
9122
|
-
value:
|
|
9364
|
+
value: 46,
|
|
9123
9365
|
unit: "px"
|
|
9124
9366
|
},
|
|
9125
9367
|
$type: "dimension"
|
|
9126
9368
|
},
|
|
9127
9369
|
"12": {
|
|
9128
9370
|
$value: {
|
|
9129
|
-
value:
|
|
9371
|
+
value: 50,
|
|
9130
9372
|
unit: "px"
|
|
9131
9373
|
},
|
|
9132
9374
|
$type: "dimension"
|
|
9133
9375
|
},
|
|
9134
9376
|
"14": {
|
|
9135
9377
|
$value: {
|
|
9136
|
-
value:
|
|
9378
|
+
value: 58,
|
|
9137
9379
|
unit: "px"
|
|
9138
9380
|
},
|
|
9139
9381
|
$type: "dimension"
|
|
9140
9382
|
},
|
|
9141
9383
|
"16": {
|
|
9142
9384
|
$value: {
|
|
9143
|
-
value:
|
|
9385
|
+
value: 66,
|
|
9144
9386
|
unit: "px"
|
|
9145
9387
|
},
|
|
9146
9388
|
$type: "dimension"
|
|
9147
9389
|
},
|
|
9148
9390
|
"20": {
|
|
9149
9391
|
$value: {
|
|
9150
|
-
value:
|
|
9392
|
+
value: 82,
|
|
9151
9393
|
unit: "px"
|
|
9152
9394
|
},
|
|
9153
9395
|
$type: "dimension"
|
|
9154
9396
|
},
|
|
9155
9397
|
"24": {
|
|
9156
9398
|
$value: {
|
|
9157
|
-
value:
|
|
9399
|
+
value: 98,
|
|
9158
9400
|
unit: "px"
|
|
9159
9401
|
},
|
|
9160
9402
|
$type: "dimension"
|
|
9161
9403
|
},
|
|
9162
9404
|
"28": {
|
|
9163
9405
|
$value: {
|
|
9164
|
-
value:
|
|
9406
|
+
value: 114,
|
|
9165
9407
|
unit: "px"
|
|
9166
9408
|
},
|
|
9167
9409
|
$type: "dimension"
|
|
9168
9410
|
},
|
|
9169
9411
|
"32": {
|
|
9170
9412
|
$value: {
|
|
9171
|
-
value:
|
|
9413
|
+
value: 130,
|
|
9172
9414
|
unit: "px"
|
|
9173
9415
|
},
|
|
9174
9416
|
$type: "dimension"
|
|
9175
9417
|
},
|
|
9176
9418
|
"36": {
|
|
9177
9419
|
$value: {
|
|
9178
|
-
value:
|
|
9420
|
+
value: 146,
|
|
9179
9421
|
unit: "px"
|
|
9180
9422
|
},
|
|
9181
9423
|
$type: "dimension"
|
|
9182
9424
|
},
|
|
9183
9425
|
"40": {
|
|
9184
9426
|
$value: {
|
|
9185
|
-
value:
|
|
9427
|
+
value: 162,
|
|
9186
9428
|
unit: "px"
|
|
9187
9429
|
},
|
|
9188
9430
|
$type: "dimension"
|
|
9189
9431
|
},
|
|
9190
9432
|
"44": {
|
|
9191
9433
|
$value: {
|
|
9192
|
-
value:
|
|
9434
|
+
value: 178,
|
|
9193
9435
|
unit: "px"
|
|
9194
9436
|
},
|
|
9195
9437
|
$type: "dimension"
|
|
9196
9438
|
},
|
|
9197
9439
|
"48": {
|
|
9198
9440
|
$value: {
|
|
9199
|
-
value:
|
|
9441
|
+
value: 194,
|
|
9200
9442
|
unit: "px"
|
|
9201
9443
|
},
|
|
9202
9444
|
$type: "dimension"
|
|
9203
9445
|
},
|
|
9204
9446
|
"52": {
|
|
9205
9447
|
$value: {
|
|
9206
|
-
value:
|
|
9448
|
+
value: 210,
|
|
9207
9449
|
unit: "px"
|
|
9208
9450
|
},
|
|
9209
9451
|
$type: "dimension"
|
|
9210
9452
|
},
|
|
9211
9453
|
"56": {
|
|
9212
9454
|
$value: {
|
|
9213
|
-
value:
|
|
9455
|
+
value: 226,
|
|
9214
9456
|
unit: "px"
|
|
9215
9457
|
},
|
|
9216
9458
|
$type: "dimension"
|
|
9217
9459
|
},
|
|
9218
9460
|
"60": {
|
|
9219
9461
|
$value: {
|
|
9220
|
-
value:
|
|
9462
|
+
value: 242,
|
|
9221
9463
|
unit: "px"
|
|
9222
9464
|
},
|
|
9223
9465
|
$type: "dimension"
|
|
9224
9466
|
},
|
|
9225
9467
|
"64": {
|
|
9226
9468
|
$value: {
|
|
9227
|
-
value:
|
|
9469
|
+
value: 258,
|
|
9228
9470
|
unit: "px"
|
|
9229
9471
|
},
|
|
9230
9472
|
$type: "dimension"
|
|
9231
9473
|
},
|
|
9232
9474
|
"72": {
|
|
9233
9475
|
$value: {
|
|
9234
|
-
value:
|
|
9476
|
+
value: 290,
|
|
9235
9477
|
unit: "px"
|
|
9236
9478
|
},
|
|
9237
9479
|
$type: "dimension"
|
|
9238
9480
|
},
|
|
9239
9481
|
"80": {
|
|
9240
9482
|
$value: {
|
|
9241
|
-
value:
|
|
9483
|
+
value: 322,
|
|
9242
9484
|
unit: "px"
|
|
9243
9485
|
},
|
|
9244
9486
|
$type: "dimension"
|
|
9245
9487
|
},
|
|
9246
9488
|
"96": {
|
|
9247
9489
|
$value: {
|
|
9248
|
-
value:
|
|
9490
|
+
value: 386,
|
|
9249
9491
|
unit: "px"
|
|
9250
9492
|
},
|
|
9251
9493
|
$type: "dimension"
|
|
@@ -9266,48 +9508,36 @@ var spacing_comfortable_default = {
|
|
|
9266
9508
|
},
|
|
9267
9509
|
"2_5": {
|
|
9268
9510
|
$value: {
|
|
9269
|
-
value:
|
|
9511
|
+
value: 11,
|
|
9270
9512
|
unit: "px"
|
|
9271
9513
|
},
|
|
9272
9514
|
$type: "dimension"
|
|
9273
9515
|
},
|
|
9274
9516
|
"3_5": {
|
|
9275
9517
|
$value: {
|
|
9276
|
-
value:
|
|
9518
|
+
value: 15,
|
|
9277
9519
|
unit: "px"
|
|
9278
9520
|
},
|
|
9279
9521
|
$type: "dimension"
|
|
9280
9522
|
}
|
|
9281
9523
|
},
|
|
9282
|
-
container: {
|
|
9283
|
-
p: {
|
|
9284
|
-
$value: {
|
|
9285
|
-
value: 28,
|
|
9286
|
-
unit: "px"
|
|
9287
|
-
},
|
|
9524
|
+
container: {
|
|
9525
|
+
p: {
|
|
9526
|
+
$value: "{spacing.6}",
|
|
9288
9527
|
$type: "dimension"
|
|
9289
9528
|
},
|
|
9290
9529
|
gap: {
|
|
9291
|
-
$value: {
|
|
9292
|
-
value: 20,
|
|
9293
|
-
unit: "px"
|
|
9294
|
-
},
|
|
9530
|
+
$value: "{spacing.4}",
|
|
9295
9531
|
$type: "dimension"
|
|
9296
9532
|
}
|
|
9297
9533
|
},
|
|
9298
9534
|
layout: {
|
|
9299
9535
|
"section-gap": {
|
|
9300
|
-
$value: {
|
|
9301
|
-
value: 40,
|
|
9302
|
-
unit: "px"
|
|
9303
|
-
},
|
|
9536
|
+
$value: "{spacing.8}",
|
|
9304
9537
|
$type: "dimension"
|
|
9305
9538
|
},
|
|
9306
9539
|
"stack-gap": {
|
|
9307
|
-
$value: {
|
|
9308
|
-
value: 10,
|
|
9309
|
-
unit: "px"
|
|
9310
|
-
},
|
|
9540
|
+
$value: "{spacing.2}",
|
|
9311
9541
|
$type: "dimension"
|
|
9312
9542
|
}
|
|
9313
9543
|
}
|
|
@@ -9339,21 +9569,21 @@ var spacing_compact_default = {
|
|
|
9339
9569
|
},
|
|
9340
9570
|
"3": {
|
|
9341
9571
|
$value: {
|
|
9342
|
-
value:
|
|
9572
|
+
value: 12,
|
|
9343
9573
|
unit: "px"
|
|
9344
9574
|
},
|
|
9345
9575
|
$type: "dimension"
|
|
9346
9576
|
},
|
|
9347
9577
|
"4": {
|
|
9348
9578
|
$value: {
|
|
9349
|
-
value:
|
|
9579
|
+
value: 15,
|
|
9350
9580
|
unit: "px"
|
|
9351
9581
|
},
|
|
9352
9582
|
$type: "dimension"
|
|
9353
9583
|
},
|
|
9354
9584
|
"5": {
|
|
9355
9585
|
$value: {
|
|
9356
|
-
value:
|
|
9586
|
+
value: 19,
|
|
9357
9587
|
unit: "px"
|
|
9358
9588
|
},
|
|
9359
9589
|
$type: "dimension"
|
|
@@ -9409,119 +9639,119 @@ var spacing_compact_default = {
|
|
|
9409
9639
|
},
|
|
9410
9640
|
"14": {
|
|
9411
9641
|
$value: {
|
|
9412
|
-
value:
|
|
9642
|
+
value: 54,
|
|
9413
9643
|
unit: "px"
|
|
9414
9644
|
},
|
|
9415
9645
|
$type: "dimension"
|
|
9416
9646
|
},
|
|
9417
9647
|
"16": {
|
|
9418
9648
|
$value: {
|
|
9419
|
-
value:
|
|
9649
|
+
value: 62,
|
|
9420
9650
|
unit: "px"
|
|
9421
9651
|
},
|
|
9422
9652
|
$type: "dimension"
|
|
9423
9653
|
},
|
|
9424
9654
|
"20": {
|
|
9425
9655
|
$value: {
|
|
9426
|
-
value:
|
|
9656
|
+
value: 78,
|
|
9427
9657
|
unit: "px"
|
|
9428
9658
|
},
|
|
9429
9659
|
$type: "dimension"
|
|
9430
9660
|
},
|
|
9431
9661
|
"24": {
|
|
9432
9662
|
$value: {
|
|
9433
|
-
value:
|
|
9663
|
+
value: 94,
|
|
9434
9664
|
unit: "px"
|
|
9435
9665
|
},
|
|
9436
9666
|
$type: "dimension"
|
|
9437
9667
|
},
|
|
9438
9668
|
"28": {
|
|
9439
9669
|
$value: {
|
|
9440
|
-
value:
|
|
9670
|
+
value: 110,
|
|
9441
9671
|
unit: "px"
|
|
9442
9672
|
},
|
|
9443
9673
|
$type: "dimension"
|
|
9444
9674
|
},
|
|
9445
9675
|
"32": {
|
|
9446
9676
|
$value: {
|
|
9447
|
-
value:
|
|
9677
|
+
value: 126,
|
|
9448
9678
|
unit: "px"
|
|
9449
9679
|
},
|
|
9450
9680
|
$type: "dimension"
|
|
9451
9681
|
},
|
|
9452
9682
|
"36": {
|
|
9453
9683
|
$value: {
|
|
9454
|
-
value:
|
|
9684
|
+
value: 142,
|
|
9455
9685
|
unit: "px"
|
|
9456
9686
|
},
|
|
9457
9687
|
$type: "dimension"
|
|
9458
9688
|
},
|
|
9459
9689
|
"40": {
|
|
9460
9690
|
$value: {
|
|
9461
|
-
value:
|
|
9691
|
+
value: 158,
|
|
9462
9692
|
unit: "px"
|
|
9463
9693
|
},
|
|
9464
9694
|
$type: "dimension"
|
|
9465
9695
|
},
|
|
9466
9696
|
"44": {
|
|
9467
9697
|
$value: {
|
|
9468
|
-
value:
|
|
9698
|
+
value: 174,
|
|
9469
9699
|
unit: "px"
|
|
9470
9700
|
},
|
|
9471
9701
|
$type: "dimension"
|
|
9472
9702
|
},
|
|
9473
9703
|
"48": {
|
|
9474
9704
|
$value: {
|
|
9475
|
-
value:
|
|
9705
|
+
value: 190,
|
|
9476
9706
|
unit: "px"
|
|
9477
9707
|
},
|
|
9478
9708
|
$type: "dimension"
|
|
9479
9709
|
},
|
|
9480
9710
|
"52": {
|
|
9481
9711
|
$value: {
|
|
9482
|
-
value:
|
|
9712
|
+
value: 206,
|
|
9483
9713
|
unit: "px"
|
|
9484
9714
|
},
|
|
9485
9715
|
$type: "dimension"
|
|
9486
9716
|
},
|
|
9487
9717
|
"56": {
|
|
9488
9718
|
$value: {
|
|
9489
|
-
value:
|
|
9719
|
+
value: 222,
|
|
9490
9720
|
unit: "px"
|
|
9491
9721
|
},
|
|
9492
9722
|
$type: "dimension"
|
|
9493
9723
|
},
|
|
9494
9724
|
"60": {
|
|
9495
9725
|
$value: {
|
|
9496
|
-
value:
|
|
9726
|
+
value: 238,
|
|
9497
9727
|
unit: "px"
|
|
9498
9728
|
},
|
|
9499
9729
|
$type: "dimension"
|
|
9500
9730
|
},
|
|
9501
9731
|
"64": {
|
|
9502
9732
|
$value: {
|
|
9503
|
-
value:
|
|
9733
|
+
value: 254,
|
|
9504
9734
|
unit: "px"
|
|
9505
9735
|
},
|
|
9506
9736
|
$type: "dimension"
|
|
9507
9737
|
},
|
|
9508
9738
|
"72": {
|
|
9509
9739
|
$value: {
|
|
9510
|
-
value:
|
|
9740
|
+
value: 286,
|
|
9511
9741
|
unit: "px"
|
|
9512
9742
|
},
|
|
9513
9743
|
$type: "dimension"
|
|
9514
9744
|
},
|
|
9515
9745
|
"80": {
|
|
9516
9746
|
$value: {
|
|
9517
|
-
value:
|
|
9747
|
+
value: 318,
|
|
9518
9748
|
unit: "px"
|
|
9519
9749
|
},
|
|
9520
9750
|
$type: "dimension"
|
|
9521
9751
|
},
|
|
9522
9752
|
"96": {
|
|
9523
9753
|
$value: {
|
|
9524
|
-
value:
|
|
9754
|
+
value: 382,
|
|
9525
9755
|
unit: "px"
|
|
9526
9756
|
},
|
|
9527
9757
|
$type: "dimension"
|
|
@@ -9542,14 +9772,14 @@ var spacing_compact_default = {
|
|
|
9542
9772
|
},
|
|
9543
9773
|
"2_5": {
|
|
9544
9774
|
$value: {
|
|
9545
|
-
value:
|
|
9775
|
+
value: 10,
|
|
9546
9776
|
unit: "px"
|
|
9547
9777
|
},
|
|
9548
9778
|
$type: "dimension"
|
|
9549
9779
|
},
|
|
9550
9780
|
"3_5": {
|
|
9551
9781
|
$value: {
|
|
9552
|
-
value:
|
|
9782
|
+
value: 14,
|
|
9553
9783
|
unit: "px"
|
|
9554
9784
|
},
|
|
9555
9785
|
$type: "dimension"
|
|
@@ -9557,33 +9787,21 @@ var spacing_compact_default = {
|
|
|
9557
9787
|
},
|
|
9558
9788
|
container: {
|
|
9559
9789
|
p: {
|
|
9560
|
-
$value: {
|
|
9561
|
-
value: 20,
|
|
9562
|
-
unit: "px"
|
|
9563
|
-
},
|
|
9790
|
+
$value: "{spacing.6}",
|
|
9564
9791
|
$type: "dimension"
|
|
9565
9792
|
},
|
|
9566
9793
|
gap: {
|
|
9567
|
-
$value: {
|
|
9568
|
-
value: 12,
|
|
9569
|
-
unit: "px"
|
|
9570
|
-
},
|
|
9794
|
+
$value: "{spacing.4}",
|
|
9571
9795
|
$type: "dimension"
|
|
9572
9796
|
}
|
|
9573
9797
|
},
|
|
9574
9798
|
layout: {
|
|
9575
9799
|
"section-gap": {
|
|
9576
|
-
$value: {
|
|
9577
|
-
value: 28,
|
|
9578
|
-
unit: "px"
|
|
9579
|
-
},
|
|
9800
|
+
$value: "{spacing.8}",
|
|
9580
9801
|
$type: "dimension"
|
|
9581
9802
|
},
|
|
9582
9803
|
"stack-gap": {
|
|
9583
|
-
$value: {
|
|
9584
|
-
value: 6,
|
|
9585
|
-
unit: "px"
|
|
9586
|
-
},
|
|
9804
|
+
$value: "{spacing.2}",
|
|
9587
9805
|
$type: "dimension"
|
|
9588
9806
|
}
|
|
9589
9807
|
}
|
|
@@ -9833,33 +10051,21 @@ var spacing_default_default = {
|
|
|
9833
10051
|
},
|
|
9834
10052
|
container: {
|
|
9835
10053
|
p: {
|
|
9836
|
-
$value: {
|
|
9837
|
-
value: 24,
|
|
9838
|
-
unit: "px"
|
|
9839
|
-
},
|
|
10054
|
+
$value: "{spacing.6}",
|
|
9840
10055
|
$type: "dimension"
|
|
9841
10056
|
},
|
|
9842
10057
|
gap: {
|
|
9843
|
-
$value: {
|
|
9844
|
-
value: 16,
|
|
9845
|
-
unit: "px"
|
|
9846
|
-
},
|
|
10058
|
+
$value: "{spacing.4}",
|
|
9847
10059
|
$type: "dimension"
|
|
9848
10060
|
}
|
|
9849
10061
|
},
|
|
9850
10062
|
layout: {
|
|
9851
10063
|
"section-gap": {
|
|
9852
|
-
$value: {
|
|
9853
|
-
value: 32,
|
|
9854
|
-
unit: "px"
|
|
9855
|
-
},
|
|
10064
|
+
$value: "{spacing.8}",
|
|
9856
10065
|
$type: "dimension"
|
|
9857
10066
|
},
|
|
9858
10067
|
"stack-gap": {
|
|
9859
|
-
$value: {
|
|
9860
|
-
value: 8,
|
|
9861
|
-
unit: "px"
|
|
9862
|
-
},
|
|
10068
|
+
$value: "{spacing.2}",
|
|
9863
10069
|
$type: "dimension"
|
|
9864
10070
|
}
|
|
9865
10071
|
}
|
|
@@ -9891,7 +10097,7 @@ var spacing_relaxed_default = {
|
|
|
9891
10097
|
},
|
|
9892
10098
|
"3": {
|
|
9893
10099
|
$value: {
|
|
9894
|
-
value:
|
|
10100
|
+
value: 13,
|
|
9895
10101
|
unit: "px"
|
|
9896
10102
|
},
|
|
9897
10103
|
$type: "dimension"
|
|
@@ -9905,7 +10111,7 @@ var spacing_relaxed_default = {
|
|
|
9905
10111
|
},
|
|
9906
10112
|
"5": {
|
|
9907
10113
|
$value: {
|
|
9908
|
-
value:
|
|
10114
|
+
value: 23,
|
|
9909
10115
|
unit: "px"
|
|
9910
10116
|
},
|
|
9911
10117
|
$type: "dimension"
|
|
@@ -10109,33 +10315,21 @@ var spacing_relaxed_default = {
|
|
|
10109
10315
|
},
|
|
10110
10316
|
container: {
|
|
10111
10317
|
p: {
|
|
10112
|
-
$value: {
|
|
10113
|
-
value: 28,
|
|
10114
|
-
unit: "px"
|
|
10115
|
-
},
|
|
10318
|
+
$value: "{spacing.6}",
|
|
10116
10319
|
$type: "dimension"
|
|
10117
10320
|
},
|
|
10118
10321
|
gap: {
|
|
10119
|
-
$value: {
|
|
10120
|
-
value: 20,
|
|
10121
|
-
unit: "px"
|
|
10122
|
-
},
|
|
10322
|
+
$value: "{spacing.4}",
|
|
10123
10323
|
$type: "dimension"
|
|
10124
10324
|
}
|
|
10125
10325
|
},
|
|
10126
10326
|
layout: {
|
|
10127
10327
|
"section-gap": {
|
|
10128
|
-
$value: {
|
|
10129
|
-
value: 40,
|
|
10130
|
-
unit: "px"
|
|
10131
|
-
},
|
|
10328
|
+
$value: "{spacing.8}",
|
|
10132
10329
|
$type: "dimension"
|
|
10133
10330
|
},
|
|
10134
10331
|
"stack-gap": {
|
|
10135
|
-
$value: {
|
|
10136
|
-
value: 10,
|
|
10137
|
-
unit: "px"
|
|
10138
|
-
},
|
|
10332
|
+
$value: "{spacing.2}",
|
|
10139
10333
|
$type: "dimension"
|
|
10140
10334
|
}
|
|
10141
10335
|
}
|
|
@@ -10167,189 +10361,189 @@ var spacing_spacious_default = {
|
|
|
10167
10361
|
},
|
|
10168
10362
|
"3": {
|
|
10169
10363
|
$value: {
|
|
10170
|
-
value:
|
|
10364
|
+
value: 14,
|
|
10171
10365
|
unit: "px"
|
|
10172
10366
|
},
|
|
10173
10367
|
$type: "dimension"
|
|
10174
10368
|
},
|
|
10175
10369
|
"4": {
|
|
10176
10370
|
$value: {
|
|
10177
|
-
value:
|
|
10371
|
+
value: 19,
|
|
10178
10372
|
unit: "px"
|
|
10179
10373
|
},
|
|
10180
10374
|
$type: "dimension"
|
|
10181
10375
|
},
|
|
10182
10376
|
"5": {
|
|
10183
10377
|
$value: {
|
|
10184
|
-
value:
|
|
10378
|
+
value: 25,
|
|
10185
10379
|
unit: "px"
|
|
10186
10380
|
},
|
|
10187
10381
|
$type: "dimension"
|
|
10188
10382
|
},
|
|
10189
10383
|
"6": {
|
|
10190
10384
|
$value: {
|
|
10191
|
-
value:
|
|
10385
|
+
value: 30,
|
|
10192
10386
|
unit: "px"
|
|
10193
10387
|
},
|
|
10194
10388
|
$type: "dimension"
|
|
10195
10389
|
},
|
|
10196
10390
|
"7": {
|
|
10197
10391
|
$value: {
|
|
10198
|
-
value:
|
|
10392
|
+
value: 34,
|
|
10199
10393
|
unit: "px"
|
|
10200
10394
|
},
|
|
10201
10395
|
$type: "dimension"
|
|
10202
10396
|
},
|
|
10203
10397
|
"8": {
|
|
10204
10398
|
$value: {
|
|
10205
|
-
value:
|
|
10399
|
+
value: 38,
|
|
10206
10400
|
unit: "px"
|
|
10207
10401
|
},
|
|
10208
10402
|
$type: "dimension"
|
|
10209
10403
|
},
|
|
10210
10404
|
"9": {
|
|
10211
10405
|
$value: {
|
|
10212
|
-
value:
|
|
10406
|
+
value: 42,
|
|
10213
10407
|
unit: "px"
|
|
10214
10408
|
},
|
|
10215
10409
|
$type: "dimension"
|
|
10216
10410
|
},
|
|
10217
10411
|
"10": {
|
|
10218
10412
|
$value: {
|
|
10219
|
-
value:
|
|
10413
|
+
value: 46,
|
|
10220
10414
|
unit: "px"
|
|
10221
10415
|
},
|
|
10222
10416
|
$type: "dimension"
|
|
10223
10417
|
},
|
|
10224
10418
|
"11": {
|
|
10225
10419
|
$value: {
|
|
10226
|
-
value:
|
|
10420
|
+
value: 50,
|
|
10227
10421
|
unit: "px"
|
|
10228
10422
|
},
|
|
10229
10423
|
$type: "dimension"
|
|
10230
10424
|
},
|
|
10231
10425
|
"12": {
|
|
10232
10426
|
$value: {
|
|
10233
|
-
value:
|
|
10427
|
+
value: 54,
|
|
10234
10428
|
unit: "px"
|
|
10235
10429
|
},
|
|
10236
10430
|
$type: "dimension"
|
|
10237
10431
|
},
|
|
10238
10432
|
"14": {
|
|
10239
10433
|
$value: {
|
|
10240
|
-
value:
|
|
10434
|
+
value: 62,
|
|
10241
10435
|
unit: "px"
|
|
10242
10436
|
},
|
|
10243
10437
|
$type: "dimension"
|
|
10244
10438
|
},
|
|
10245
10439
|
"16": {
|
|
10246
10440
|
$value: {
|
|
10247
|
-
value:
|
|
10441
|
+
value: 70,
|
|
10248
10442
|
unit: "px"
|
|
10249
10443
|
},
|
|
10250
10444
|
$type: "dimension"
|
|
10251
10445
|
},
|
|
10252
10446
|
"20": {
|
|
10253
10447
|
$value: {
|
|
10254
|
-
value:
|
|
10448
|
+
value: 86,
|
|
10255
10449
|
unit: "px"
|
|
10256
10450
|
},
|
|
10257
10451
|
$type: "dimension"
|
|
10258
10452
|
},
|
|
10259
10453
|
"24": {
|
|
10260
10454
|
$value: {
|
|
10261
|
-
value:
|
|
10455
|
+
value: 102,
|
|
10262
10456
|
unit: "px"
|
|
10263
10457
|
},
|
|
10264
10458
|
$type: "dimension"
|
|
10265
10459
|
},
|
|
10266
10460
|
"28": {
|
|
10267
10461
|
$value: {
|
|
10268
|
-
value:
|
|
10462
|
+
value: 118,
|
|
10269
10463
|
unit: "px"
|
|
10270
10464
|
},
|
|
10271
10465
|
$type: "dimension"
|
|
10272
10466
|
},
|
|
10273
10467
|
"32": {
|
|
10274
10468
|
$value: {
|
|
10275
|
-
value:
|
|
10469
|
+
value: 134,
|
|
10276
10470
|
unit: "px"
|
|
10277
10471
|
},
|
|
10278
10472
|
$type: "dimension"
|
|
10279
10473
|
},
|
|
10280
10474
|
"36": {
|
|
10281
10475
|
$value: {
|
|
10282
|
-
value:
|
|
10476
|
+
value: 150,
|
|
10283
10477
|
unit: "px"
|
|
10284
10478
|
},
|
|
10285
10479
|
$type: "dimension"
|
|
10286
10480
|
},
|
|
10287
10481
|
"40": {
|
|
10288
10482
|
$value: {
|
|
10289
|
-
value:
|
|
10483
|
+
value: 166,
|
|
10290
10484
|
unit: "px"
|
|
10291
10485
|
},
|
|
10292
10486
|
$type: "dimension"
|
|
10293
10487
|
},
|
|
10294
10488
|
"44": {
|
|
10295
10489
|
$value: {
|
|
10296
|
-
value:
|
|
10490
|
+
value: 182,
|
|
10297
10491
|
unit: "px"
|
|
10298
10492
|
},
|
|
10299
10493
|
$type: "dimension"
|
|
10300
10494
|
},
|
|
10301
10495
|
"48": {
|
|
10302
10496
|
$value: {
|
|
10303
|
-
value:
|
|
10497
|
+
value: 198,
|
|
10304
10498
|
unit: "px"
|
|
10305
10499
|
},
|
|
10306
10500
|
$type: "dimension"
|
|
10307
10501
|
},
|
|
10308
10502
|
"52": {
|
|
10309
10503
|
$value: {
|
|
10310
|
-
value:
|
|
10504
|
+
value: 214,
|
|
10311
10505
|
unit: "px"
|
|
10312
10506
|
},
|
|
10313
10507
|
$type: "dimension"
|
|
10314
10508
|
},
|
|
10315
10509
|
"56": {
|
|
10316
10510
|
$value: {
|
|
10317
|
-
value:
|
|
10511
|
+
value: 230,
|
|
10318
10512
|
unit: "px"
|
|
10319
10513
|
},
|
|
10320
10514
|
$type: "dimension"
|
|
10321
10515
|
},
|
|
10322
10516
|
"60": {
|
|
10323
10517
|
$value: {
|
|
10324
|
-
value:
|
|
10518
|
+
value: 246,
|
|
10325
10519
|
unit: "px"
|
|
10326
10520
|
},
|
|
10327
10521
|
$type: "dimension"
|
|
10328
10522
|
},
|
|
10329
10523
|
"64": {
|
|
10330
10524
|
$value: {
|
|
10331
|
-
value:
|
|
10525
|
+
value: 262,
|
|
10332
10526
|
unit: "px"
|
|
10333
10527
|
},
|
|
10334
10528
|
$type: "dimension"
|
|
10335
10529
|
},
|
|
10336
10530
|
"72": {
|
|
10337
10531
|
$value: {
|
|
10338
|
-
value:
|
|
10532
|
+
value: 294,
|
|
10339
10533
|
unit: "px"
|
|
10340
10534
|
},
|
|
10341
10535
|
$type: "dimension"
|
|
10342
10536
|
},
|
|
10343
10537
|
"80": {
|
|
10344
10538
|
$value: {
|
|
10345
|
-
value:
|
|
10539
|
+
value: 326,
|
|
10346
10540
|
unit: "px"
|
|
10347
10541
|
},
|
|
10348
10542
|
$type: "dimension"
|
|
10349
10543
|
},
|
|
10350
10544
|
"96": {
|
|
10351
10545
|
$value: {
|
|
10352
|
-
value:
|
|
10546
|
+
value: 390,
|
|
10353
10547
|
unit: "px"
|
|
10354
10548
|
},
|
|
10355
10549
|
$type: "dimension"
|
|
@@ -10370,14 +10564,14 @@ var spacing_spacious_default = {
|
|
|
10370
10564
|
},
|
|
10371
10565
|
"2_5": {
|
|
10372
10566
|
$value: {
|
|
10373
|
-
value:
|
|
10567
|
+
value: 11,
|
|
10374
10568
|
unit: "px"
|
|
10375
10569
|
},
|
|
10376
10570
|
$type: "dimension"
|
|
10377
10571
|
},
|
|
10378
10572
|
"3_5": {
|
|
10379
10573
|
$value: {
|
|
10380
|
-
value:
|
|
10574
|
+
value: 17,
|
|
10381
10575
|
unit: "px"
|
|
10382
10576
|
},
|
|
10383
10577
|
$type: "dimension"
|
|
@@ -10385,33 +10579,21 @@ var spacing_spacious_default = {
|
|
|
10385
10579
|
},
|
|
10386
10580
|
container: {
|
|
10387
10581
|
p: {
|
|
10388
|
-
$value: {
|
|
10389
|
-
value: 40,
|
|
10390
|
-
unit: "px"
|
|
10391
|
-
},
|
|
10582
|
+
$value: "{spacing.6}",
|
|
10392
10583
|
$type: "dimension"
|
|
10393
10584
|
},
|
|
10394
10585
|
gap: {
|
|
10395
|
-
$value: {
|
|
10396
|
-
value: 24,
|
|
10397
|
-
unit: "px"
|
|
10398
|
-
},
|
|
10586
|
+
$value: "{spacing.4}",
|
|
10399
10587
|
$type: "dimension"
|
|
10400
10588
|
}
|
|
10401
10589
|
},
|
|
10402
10590
|
layout: {
|
|
10403
10591
|
"section-gap": {
|
|
10404
|
-
$value: {
|
|
10405
|
-
value: 56,
|
|
10406
|
-
unit: "px"
|
|
10407
|
-
},
|
|
10592
|
+
$value: "{spacing.8}",
|
|
10408
10593
|
$type: "dimension"
|
|
10409
10594
|
},
|
|
10410
10595
|
"stack-gap": {
|
|
10411
|
-
$value: {
|
|
10412
|
-
value: 16,
|
|
10413
|
-
unit: "px"
|
|
10414
|
-
},
|
|
10596
|
+
$value: "{spacing.2}",
|
|
10415
10597
|
$type: "dimension"
|
|
10416
10598
|
}
|
|
10417
10599
|
}
|
|
@@ -10443,189 +10625,189 @@ var spacing_tight_default = {
|
|
|
10443
10625
|
},
|
|
10444
10626
|
"3": {
|
|
10445
10627
|
$value: {
|
|
10446
|
-
value:
|
|
10628
|
+
value: 11,
|
|
10447
10629
|
unit: "px"
|
|
10448
10630
|
},
|
|
10449
10631
|
$type: "dimension"
|
|
10450
10632
|
},
|
|
10451
10633
|
"4": {
|
|
10452
10634
|
$value: {
|
|
10453
|
-
value:
|
|
10635
|
+
value: 14,
|
|
10454
10636
|
unit: "px"
|
|
10455
10637
|
},
|
|
10456
10638
|
$type: "dimension"
|
|
10457
10639
|
},
|
|
10458
10640
|
"5": {
|
|
10459
10641
|
$value: {
|
|
10460
|
-
value:
|
|
10642
|
+
value: 17,
|
|
10461
10643
|
unit: "px"
|
|
10462
10644
|
},
|
|
10463
10645
|
$type: "dimension"
|
|
10464
10646
|
},
|
|
10465
10647
|
"6": {
|
|
10466
10648
|
$value: {
|
|
10467
|
-
value:
|
|
10649
|
+
value: 20,
|
|
10468
10650
|
unit: "px"
|
|
10469
10651
|
},
|
|
10470
10652
|
$type: "dimension"
|
|
10471
10653
|
},
|
|
10472
10654
|
"7": {
|
|
10473
10655
|
$value: {
|
|
10474
|
-
value:
|
|
10656
|
+
value: 24,
|
|
10475
10657
|
unit: "px"
|
|
10476
10658
|
},
|
|
10477
10659
|
$type: "dimension"
|
|
10478
10660
|
},
|
|
10479
10661
|
"8": {
|
|
10480
10662
|
$value: {
|
|
10481
|
-
value:
|
|
10663
|
+
value: 28,
|
|
10482
10664
|
unit: "px"
|
|
10483
10665
|
},
|
|
10484
10666
|
$type: "dimension"
|
|
10485
10667
|
},
|
|
10486
10668
|
"9": {
|
|
10487
10669
|
$value: {
|
|
10488
|
-
value:
|
|
10670
|
+
value: 32,
|
|
10489
10671
|
unit: "px"
|
|
10490
10672
|
},
|
|
10491
10673
|
$type: "dimension"
|
|
10492
10674
|
},
|
|
10493
10675
|
"10": {
|
|
10494
10676
|
$value: {
|
|
10495
|
-
value:
|
|
10677
|
+
value: 36,
|
|
10496
10678
|
unit: "px"
|
|
10497
10679
|
},
|
|
10498
10680
|
$type: "dimension"
|
|
10499
10681
|
},
|
|
10500
10682
|
"11": {
|
|
10501
10683
|
$value: {
|
|
10502
|
-
value:
|
|
10684
|
+
value: 40,
|
|
10503
10685
|
unit: "px"
|
|
10504
10686
|
},
|
|
10505
10687
|
$type: "dimension"
|
|
10506
10688
|
},
|
|
10507
10689
|
"12": {
|
|
10508
10690
|
$value: {
|
|
10509
|
-
value:
|
|
10691
|
+
value: 44,
|
|
10510
10692
|
unit: "px"
|
|
10511
10693
|
},
|
|
10512
10694
|
$type: "dimension"
|
|
10513
10695
|
},
|
|
10514
10696
|
"14": {
|
|
10515
10697
|
$value: {
|
|
10516
|
-
value:
|
|
10698
|
+
value: 52,
|
|
10517
10699
|
unit: "px"
|
|
10518
10700
|
},
|
|
10519
10701
|
$type: "dimension"
|
|
10520
10702
|
},
|
|
10521
10703
|
"16": {
|
|
10522
10704
|
$value: {
|
|
10523
|
-
value:
|
|
10705
|
+
value: 60,
|
|
10524
10706
|
unit: "px"
|
|
10525
10707
|
},
|
|
10526
10708
|
$type: "dimension"
|
|
10527
10709
|
},
|
|
10528
10710
|
"20": {
|
|
10529
10711
|
$value: {
|
|
10530
|
-
value:
|
|
10712
|
+
value: 76,
|
|
10531
10713
|
unit: "px"
|
|
10532
10714
|
},
|
|
10533
10715
|
$type: "dimension"
|
|
10534
10716
|
},
|
|
10535
10717
|
"24": {
|
|
10536
10718
|
$value: {
|
|
10537
|
-
value:
|
|
10719
|
+
value: 92,
|
|
10538
10720
|
unit: "px"
|
|
10539
10721
|
},
|
|
10540
10722
|
$type: "dimension"
|
|
10541
10723
|
},
|
|
10542
10724
|
"28": {
|
|
10543
10725
|
$value: {
|
|
10544
|
-
value:
|
|
10726
|
+
value: 108,
|
|
10545
10727
|
unit: "px"
|
|
10546
10728
|
},
|
|
10547
10729
|
$type: "dimension"
|
|
10548
10730
|
},
|
|
10549
10731
|
"32": {
|
|
10550
10732
|
$value: {
|
|
10551
|
-
value:
|
|
10733
|
+
value: 124,
|
|
10552
10734
|
unit: "px"
|
|
10553
10735
|
},
|
|
10554
10736
|
$type: "dimension"
|
|
10555
10737
|
},
|
|
10556
10738
|
"36": {
|
|
10557
10739
|
$value: {
|
|
10558
|
-
value:
|
|
10740
|
+
value: 140,
|
|
10559
10741
|
unit: "px"
|
|
10560
10742
|
},
|
|
10561
10743
|
$type: "dimension"
|
|
10562
10744
|
},
|
|
10563
10745
|
"40": {
|
|
10564
10746
|
$value: {
|
|
10565
|
-
value:
|
|
10747
|
+
value: 156,
|
|
10566
10748
|
unit: "px"
|
|
10567
10749
|
},
|
|
10568
10750
|
$type: "dimension"
|
|
10569
10751
|
},
|
|
10570
10752
|
"44": {
|
|
10571
10753
|
$value: {
|
|
10572
|
-
value:
|
|
10754
|
+
value: 172,
|
|
10573
10755
|
unit: "px"
|
|
10574
10756
|
},
|
|
10575
10757
|
$type: "dimension"
|
|
10576
10758
|
},
|
|
10577
10759
|
"48": {
|
|
10578
10760
|
$value: {
|
|
10579
|
-
value:
|
|
10761
|
+
value: 188,
|
|
10580
10762
|
unit: "px"
|
|
10581
10763
|
},
|
|
10582
10764
|
$type: "dimension"
|
|
10583
10765
|
},
|
|
10584
10766
|
"52": {
|
|
10585
10767
|
$value: {
|
|
10586
|
-
value:
|
|
10768
|
+
value: 204,
|
|
10587
10769
|
unit: "px"
|
|
10588
10770
|
},
|
|
10589
10771
|
$type: "dimension"
|
|
10590
10772
|
},
|
|
10591
10773
|
"56": {
|
|
10592
10774
|
$value: {
|
|
10593
|
-
value:
|
|
10775
|
+
value: 220,
|
|
10594
10776
|
unit: "px"
|
|
10595
10777
|
},
|
|
10596
10778
|
$type: "dimension"
|
|
10597
10779
|
},
|
|
10598
10780
|
"60": {
|
|
10599
10781
|
$value: {
|
|
10600
|
-
value:
|
|
10782
|
+
value: 236,
|
|
10601
10783
|
unit: "px"
|
|
10602
10784
|
},
|
|
10603
10785
|
$type: "dimension"
|
|
10604
10786
|
},
|
|
10605
10787
|
"64": {
|
|
10606
10788
|
$value: {
|
|
10607
|
-
value:
|
|
10789
|
+
value: 252,
|
|
10608
10790
|
unit: "px"
|
|
10609
10791
|
},
|
|
10610
10792
|
$type: "dimension"
|
|
10611
10793
|
},
|
|
10612
10794
|
"72": {
|
|
10613
10795
|
$value: {
|
|
10614
|
-
value:
|
|
10796
|
+
value: 284,
|
|
10615
10797
|
unit: "px"
|
|
10616
10798
|
},
|
|
10617
10799
|
$type: "dimension"
|
|
10618
10800
|
},
|
|
10619
10801
|
"80": {
|
|
10620
10802
|
$value: {
|
|
10621
|
-
value:
|
|
10803
|
+
value: 316,
|
|
10622
10804
|
unit: "px"
|
|
10623
10805
|
},
|
|
10624
10806
|
$type: "dimension"
|
|
10625
10807
|
},
|
|
10626
10808
|
"96": {
|
|
10627
10809
|
$value: {
|
|
10628
|
-
value:
|
|
10810
|
+
value: 380,
|
|
10629
10811
|
unit: "px"
|
|
10630
10812
|
},
|
|
10631
10813
|
$type: "dimension"
|
|
@@ -10653,7 +10835,7 @@ var spacing_tight_default = {
|
|
|
10653
10835
|
},
|
|
10654
10836
|
"3_5": {
|
|
10655
10837
|
$value: {
|
|
10656
|
-
value:
|
|
10838
|
+
value: 13,
|
|
10657
10839
|
unit: "px"
|
|
10658
10840
|
},
|
|
10659
10841
|
$type: "dimension"
|
|
@@ -10661,33 +10843,21 @@ var spacing_tight_default = {
|
|
|
10661
10843
|
},
|
|
10662
10844
|
container: {
|
|
10663
10845
|
p: {
|
|
10664
|
-
$value: {
|
|
10665
|
-
value: 24,
|
|
10666
|
-
unit: "px"
|
|
10667
|
-
},
|
|
10846
|
+
$value: "{spacing.6}",
|
|
10668
10847
|
$type: "dimension"
|
|
10669
10848
|
},
|
|
10670
10849
|
gap: {
|
|
10671
|
-
$value: {
|
|
10672
|
-
value: 16,
|
|
10673
|
-
unit: "px"
|
|
10674
|
-
},
|
|
10850
|
+
$value: "{spacing.4}",
|
|
10675
10851
|
$type: "dimension"
|
|
10676
10852
|
}
|
|
10677
10853
|
},
|
|
10678
10854
|
layout: {
|
|
10679
10855
|
"section-gap": {
|
|
10680
|
-
$value: {
|
|
10681
|
-
value: 32,
|
|
10682
|
-
unit: "px"
|
|
10683
|
-
},
|
|
10856
|
+
$value: "{spacing.8}",
|
|
10684
10857
|
$type: "dimension"
|
|
10685
10858
|
},
|
|
10686
10859
|
"stack-gap": {
|
|
10687
|
-
$value: {
|
|
10688
|
-
value: 8,
|
|
10689
|
-
unit: "px"
|
|
10690
|
-
},
|
|
10860
|
+
$value: "{spacing.2}",
|
|
10691
10861
|
$type: "dimension"
|
|
10692
10862
|
}
|
|
10693
10863
|
}
|
|
@@ -11035,7 +11205,7 @@ var typography_default = {
|
|
|
11035
11205
|
$type: "typography",
|
|
11036
11206
|
$value: {
|
|
11037
11207
|
fontFamily: "{family.font-mono}",
|
|
11038
|
-
fontSize: "{size
|
|
11208
|
+
fontSize: "{code.size}",
|
|
11039
11209
|
fontWeight: "{weight.normal}",
|
|
11040
11210
|
lineHeight: "{line-height.sm}",
|
|
11041
11211
|
letterSpacing: {
|
|
@@ -11048,7 +11218,7 @@ var typography_default = {
|
|
|
11048
11218
|
$type: "typography",
|
|
11049
11219
|
$value: {
|
|
11050
11220
|
fontFamily: "{family.font-mono}",
|
|
11051
|
-
fontSize: "{size
|
|
11221
|
+
fontSize: "{code.size}",
|
|
11052
11222
|
fontWeight: "{weight.semibold}",
|
|
11053
11223
|
lineHeight: "auto",
|
|
11054
11224
|
letterSpacing: {
|
|
@@ -11066,6 +11236,7 @@ var TOKEN_FILES = {
|
|
|
11066
11236
|
"primitives/borderwidth/borderwidth-normal.json": borderwidth_normal_default,
|
|
11067
11237
|
"primitives/borderwidth/borderwidth-strong.json": borderwidth_strong_default,
|
|
11068
11238
|
"primitives/color.json": color_default,
|
|
11239
|
+
"primitives/icon.json": icon_default,
|
|
11069
11240
|
"primitives/motion/motion-snappy.json": motion_snappy_default,
|
|
11070
11241
|
"primitives/radius/radius-extra-round.json": radius_extra_round_default,
|
|
11071
11242
|
"primitives/radius/radius-round.json": radius_round_default,
|
|
@@ -11099,6 +11270,7 @@ var TOKEN_FILES = {
|
|
|
11099
11270
|
var PRIMITIVE_FAMILIES = [
|
|
11100
11271
|
"borderwidth",
|
|
11101
11272
|
"color",
|
|
11273
|
+
"icon",
|
|
11102
11274
|
"motion",
|
|
11103
11275
|
"radius",
|
|
11104
11276
|
"shadow",
|
|
@@ -11110,35 +11282,40 @@ var BREAKPOINTS_FILE = "semantic/breakpoints.json";
|
|
|
11110
11282
|
var TYPOGRAPHY_STYLES_FILE = "styles/typography.json";
|
|
11111
11283
|
var SHADOW_STYLES_FILE = "styles/shadows.json";
|
|
11112
11284
|
var SINGLE_SOURCE = { mode: null, preset: null };
|
|
11113
|
-
var
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11285
|
+
var UI_SCALE = { kind: "scale", field: "uiScale" };
|
|
11286
|
+
var TEXT_SIZE = { kind: "scale", field: "textSize" };
|
|
11287
|
+
var FAMILY_CONTROLS = {
|
|
11288
|
+
spacing: [{ kind: "preset", field: "density" }, UI_SCALE],
|
|
11289
|
+
radius: [{ kind: "preset", field: "corners" }, UI_SCALE],
|
|
11290
|
+
borderwidth: [{ kind: "preset", field: "stroke" }],
|
|
11291
|
+
shadow: [{ kind: "preset", field: "elevation" }]
|
|
11118
11292
|
};
|
|
11119
|
-
function
|
|
11293
|
+
function typographyControls(path) {
|
|
11120
11294
|
const [group, key] = path;
|
|
11121
|
-
if (
|
|
11295
|
+
if (group === "code" && key === "size") {
|
|
11296
|
+
return [{ kind: "pref", field: "codeFontSize" }, UI_SCALE, TEXT_SIZE];
|
|
11297
|
+
}
|
|
11122
11298
|
if (group === "size" || group === "line-height") {
|
|
11123
|
-
return
|
|
11299
|
+
return [UI_SCALE, TEXT_SIZE];
|
|
11124
11300
|
}
|
|
11125
|
-
if (group !== "family") return
|
|
11126
|
-
if (key === "font-sans") return { kind: "pref", field: "uiFont" };
|
|
11127
|
-
if (key === "font-heading") return { kind: "pref", field: "headingFont" };
|
|
11128
|
-
if (key === "font-mono") return { kind: "pref", field: "codeFont" };
|
|
11129
|
-
return
|
|
11301
|
+
if (group !== "family") return [];
|
|
11302
|
+
if (key === "font-sans") return [{ kind: "pref", field: "uiFont" }];
|
|
11303
|
+
if (key === "font-heading") return [{ kind: "pref", field: "headingFont" }];
|
|
11304
|
+
if (key === "font-mono") return [{ kind: "pref", field: "codeFont" }];
|
|
11305
|
+
return [];
|
|
11130
11306
|
}
|
|
11131
|
-
function
|
|
11307
|
+
function leafControls({
|
|
11132
11308
|
family,
|
|
11133
11309
|
file,
|
|
11134
11310
|
preset,
|
|
11135
11311
|
leaf
|
|
11136
11312
|
}) {
|
|
11137
11313
|
if (family === "typography" && file.startsWith("primitives/")) {
|
|
11138
|
-
return
|
|
11314
|
+
return typographyControls(leaf.path);
|
|
11139
11315
|
}
|
|
11140
|
-
if (
|
|
11141
|
-
return
|
|
11316
|
+
if (family === "icon") return leaf.path[0] === "glyph" ? [UI_SCALE] : [];
|
|
11317
|
+
if (preset === null) return [];
|
|
11318
|
+
return FAMILY_CONTROLS[family] ?? [];
|
|
11142
11319
|
}
|
|
11143
11320
|
var cssVariable = (name) => ({
|
|
11144
11321
|
kind: "css-variable",
|
|
@@ -11241,7 +11418,7 @@ function authoredTokens(leaves, lookup, entryFor) {
|
|
|
11241
11418
|
type: leaf.type,
|
|
11242
11419
|
description: leaf.description ?? null,
|
|
11243
11420
|
aliases,
|
|
11244
|
-
|
|
11421
|
+
controls: leafControls(authored),
|
|
11245
11422
|
variants: []
|
|
11246
11423
|
};
|
|
11247
11424
|
token2.variants.push({
|
|
@@ -11259,6 +11436,7 @@ function authoredTokens(leaves, lookup, entryFor) {
|
|
|
11259
11436
|
}
|
|
11260
11437
|
function primitiveAliases(family, path) {
|
|
11261
11438
|
const key = path.join("-");
|
|
11439
|
+
if (family === "icon") return [utility(iconUtility(path).name)];
|
|
11262
11440
|
if (family === "radius") return [cssVariable(`--radius-${key}`)];
|
|
11263
11441
|
if (family === "borderwidth") {
|
|
11264
11442
|
return [
|
|
@@ -11285,7 +11463,7 @@ function primitiveAliases(family, path) {
|
|
|
11285
11463
|
}
|
|
11286
11464
|
return [];
|
|
11287
11465
|
}
|
|
11288
|
-
function primitiveEntry(lookup
|
|
11466
|
+
function primitiveEntry(lookup) {
|
|
11289
11467
|
return ({ family, leaf }) => {
|
|
11290
11468
|
const name = primitiveName(family, leaf.path);
|
|
11291
11469
|
const reference = leaf.path.join(".");
|
|
@@ -11299,24 +11477,35 @@ function primitiveEntry(lookup, scaled) {
|
|
|
11299
11477
|
declarations: [
|
|
11300
11478
|
{
|
|
11301
11479
|
property: name,
|
|
11302
|
-
value:
|
|
11480
|
+
value: resolveValue(leaf.value, lookup, leaf.type, leaf.path)
|
|
11303
11481
|
}
|
|
11304
11482
|
]
|
|
11305
11483
|
};
|
|
11306
11484
|
};
|
|
11307
11485
|
}
|
|
11308
|
-
function
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11486
|
+
function spacingName(path) {
|
|
11487
|
+
return `--nx-${path.join("-")}`;
|
|
11488
|
+
}
|
|
11489
|
+
function spacingStepLookup(leaves) {
|
|
11490
|
+
return new Map(
|
|
11491
|
+
leaves.filter(({ leaf }) => spacingTokenKind(leaf.path) === "numeric").map(({ leaf }) => {
|
|
11492
|
+
const name = spacingName(leaf.path);
|
|
11493
|
+
return [
|
|
11494
|
+
leaf.path.join("."),
|
|
11495
|
+
{ cssName: name.slice("--".length), name }
|
|
11496
|
+
];
|
|
11497
|
+
})
|
|
11498
|
+
);
|
|
11499
|
+
}
|
|
11500
|
+
function spacingEntry({ file, leaf }) {
|
|
11501
|
+
const name = spacingName(leaf.path);
|
|
11502
|
+
const alias = spacingTokenKind(leaf.path) === "role" ? utility(spacingRoleUtility(leaf.path).name) : cssVariable(`--${leaf.path.join("-")}`);
|
|
11503
|
+
const value = spacingValue(leaf, extractTokens(TOKEN_FILES[file]));
|
|
11312
11504
|
return {
|
|
11313
11505
|
name,
|
|
11314
11506
|
aliases: [alias],
|
|
11315
11507
|
declarations: [
|
|
11316
|
-
{
|
|
11317
|
-
property: name,
|
|
11318
|
-
value: formatTokenValue(leaf.value, leaf.type, leaf.path)
|
|
11319
|
-
}
|
|
11508
|
+
{ property: name, value: formatTokenValue(value, leaf.type, leaf.path) }
|
|
11320
11509
|
]
|
|
11321
11510
|
};
|
|
11322
11511
|
}
|
|
@@ -11381,7 +11570,7 @@ function shadowStyleTokens(layers, lookup) {
|
|
|
11381
11570
|
type: leaf.type,
|
|
11382
11571
|
description: leaf.description ?? null,
|
|
11383
11572
|
aliases: [cssVariable(`--${key}`)],
|
|
11384
|
-
|
|
11573
|
+
controls: FAMILY_CONTROLS.shadow ?? [],
|
|
11385
11574
|
variants: sets.map(({ preset, mode, values }) => ({
|
|
11386
11575
|
mode,
|
|
11387
11576
|
preset,
|
|
@@ -11426,7 +11615,7 @@ function runtimeColorTokens(appearance) {
|
|
|
11426
11615
|
type: "color",
|
|
11427
11616
|
description: RUNTIME_COLOR_DESCRIPTIONS[name] ?? null,
|
|
11428
11617
|
aliases: runtimeColorAliases(name),
|
|
11429
|
-
|
|
11618
|
+
controls: [],
|
|
11430
11619
|
variants: themes.map(({ mode, appearance: appearance2, values }) => {
|
|
11431
11620
|
const value = values[property];
|
|
11432
11621
|
if (value === void 0) {
|
|
@@ -11445,24 +11634,130 @@ function runtimeColorTokens(appearance) {
|
|
|
11445
11634
|
};
|
|
11446
11635
|
});
|
|
11447
11636
|
}
|
|
11637
|
+
function uiScaleToken({ cssName, value }, {
|
|
11638
|
+
family,
|
|
11639
|
+
type,
|
|
11640
|
+
description
|
|
11641
|
+
}) {
|
|
11642
|
+
const name = `--nx-${cssName}`;
|
|
11643
|
+
return {
|
|
11644
|
+
name,
|
|
11645
|
+
family,
|
|
11646
|
+
group: family,
|
|
11647
|
+
type,
|
|
11648
|
+
description,
|
|
11649
|
+
aliases: [],
|
|
11650
|
+
controls: [UI_SCALE],
|
|
11651
|
+
variants: [
|
|
11652
|
+
{
|
|
11653
|
+
mode: null,
|
|
11654
|
+
preset: null,
|
|
11655
|
+
source: null,
|
|
11656
|
+
appearance: null,
|
|
11657
|
+
authoredValue: null,
|
|
11658
|
+
declarations: [{ property: name, value }],
|
|
11659
|
+
references: []
|
|
11660
|
+
}
|
|
11661
|
+
]
|
|
11662
|
+
};
|
|
11663
|
+
}
|
|
11664
|
+
function uiScaleEntry(token2) {
|
|
11665
|
+
if (token2.cssName === "ui-scale") {
|
|
11666
|
+
return uiScaleToken(token2, {
|
|
11667
|
+
family: "ui-scale",
|
|
11668
|
+
type: "number",
|
|
11669
|
+
description: "The UI scale as a factor of the Default scale. Multiply a fixed size by it, such as `calc(16rem*var(--nx-ui-scale))`, so the size follows the UI scale."
|
|
11670
|
+
});
|
|
11671
|
+
}
|
|
11672
|
+
const width = token2.cssName.replace("container-", "");
|
|
11673
|
+
return uiScaleToken(token2, {
|
|
11674
|
+
family: "width",
|
|
11675
|
+
type: "dimension",
|
|
11676
|
+
description: `The \`nx:max-w-${width}\` and \`nx:w-${width}\` width. It follows the UI scale.`
|
|
11677
|
+
});
|
|
11678
|
+
}
|
|
11679
|
+
var CSS_NAME_START = "--nx-".length;
|
|
11680
|
+
function variantValue(variant) {
|
|
11681
|
+
return variant?.declarations[0]?.value;
|
|
11682
|
+
}
|
|
11683
|
+
function scaledPresets(tokens, family, factor) {
|
|
11684
|
+
const modes = /* @__PURE__ */ new Map();
|
|
11685
|
+
for (const token2 of tokens.filter((each) => each.family === family)) {
|
|
11686
|
+
for (const variant of token2.variants) {
|
|
11687
|
+
const value = variantValue(variant);
|
|
11688
|
+
if (variant.preset === null || value === void 0) continue;
|
|
11689
|
+
const target = variant.references[0]?.target;
|
|
11690
|
+
const mode = modes.get(variant.preset) ?? [];
|
|
11691
|
+
mode.push({
|
|
11692
|
+
cssName: token2.name.slice(CSS_NAME_START),
|
|
11693
|
+
value,
|
|
11694
|
+
...target && { step: target.slice(CSS_NAME_START) }
|
|
11695
|
+
});
|
|
11696
|
+
modes.set(variant.preset, mode);
|
|
11697
|
+
}
|
|
11698
|
+
}
|
|
11699
|
+
return [...modes].flatMap(
|
|
11700
|
+
([preset, mode]) => scaleMode(mode, factor).map(({ cssName, value }) => [
|
|
11701
|
+
`${preset}/--nx-${cssName}`,
|
|
11702
|
+
value
|
|
11703
|
+
])
|
|
11704
|
+
);
|
|
11705
|
+
}
|
|
11706
|
+
function sizeValues(tokens, { uiScale, textSize }) {
|
|
11707
|
+
const base = uiScaleBase(
|
|
11708
|
+
TOKEN_FILES["primitives/typography/typography-default.json"],
|
|
11709
|
+
TOKEN_FILES["primitives/icon.json"]
|
|
11710
|
+
);
|
|
11711
|
+
const selectors = [
|
|
11712
|
+
uiScaleSelector(uiScale),
|
|
11713
|
+
textSizeSelector(uiScale, textSize)
|
|
11714
|
+
];
|
|
11715
|
+
const values = [...scaleBlocks(base), ...textSizeBlocks(base)].filter((block) => block.selectors.some((each) => selectors.includes(each))).flatMap((block) => block.tokens).map(({ cssName, value }) => [`--nx-${cssName}`, value]);
|
|
11716
|
+
if (uiScale === "default") return values;
|
|
11717
|
+
const { spacing } = UI_SCALES[uiScale];
|
|
11718
|
+
return [
|
|
11719
|
+
...values,
|
|
11720
|
+
...scaledPresets(tokens, "spacing", spacing),
|
|
11721
|
+
...scaledPresets(tokens, "radius", spacing)
|
|
11722
|
+
];
|
|
11723
|
+
}
|
|
11724
|
+
function atSizes(tokens, appearance) {
|
|
11725
|
+
const { uiScale, textSize, prefs } = appearance;
|
|
11726
|
+
const scaled = new Map([
|
|
11727
|
+
...sizeValues(tokens, appearance),
|
|
11728
|
+
[
|
|
11729
|
+
"--nx-typography-code-size",
|
|
11730
|
+
`${scaleText(prefs.codeFontSize, uiScale, textSize)}px`
|
|
11731
|
+
]
|
|
11732
|
+
]);
|
|
11733
|
+
return tokens.map((token2) => ({
|
|
11734
|
+
...token2,
|
|
11735
|
+
variants: token2.variants.map((variant) => {
|
|
11736
|
+
const value = scaled.get(`${variant.preset}/${token2.name}`) ?? scaled.get(token2.name);
|
|
11737
|
+
if (value === void 0) return variant;
|
|
11738
|
+
return {
|
|
11739
|
+
...variant,
|
|
11740
|
+
declarations: variant.declarations.map((each) => ({
|
|
11741
|
+
...each,
|
|
11742
|
+
value
|
|
11743
|
+
}))
|
|
11744
|
+
};
|
|
11745
|
+
})
|
|
11746
|
+
}));
|
|
11747
|
+
}
|
|
11448
11748
|
function createTokenCatalogue(appearance = DEFAULT_NXDS_APPEARANCE) {
|
|
11449
11749
|
const primitives = PRIMITIVE_FAMILIES.flatMap(primitiveLeaves);
|
|
11450
11750
|
const lookup = primitiveLookup(primitives);
|
|
11451
11751
|
const shadowLayers = primitives.filter(({ family }) => family === "shadow");
|
|
11452
|
-
|
|
11752
|
+
const spacing = spacingLeaves();
|
|
11753
|
+
const tokens = [
|
|
11453
11754
|
...authoredTokens(
|
|
11454
11755
|
primitives.filter((leaf) => leaf.family !== "shadow"),
|
|
11455
11756
|
lookup,
|
|
11456
|
-
primitiveEntry(
|
|
11457
|
-
lookup,
|
|
11458
|
-
typographyScale(
|
|
11459
|
-
appearance.prefs.uiFontSize,
|
|
11460
|
-
appearance.prefs.codeFontSize
|
|
11461
|
-
)
|
|
11462
|
-
)
|
|
11757
|
+
primitiveEntry(lookup)
|
|
11463
11758
|
),
|
|
11464
11759
|
...runtimeColorTokens(appearance),
|
|
11465
|
-
...authoredTokens(
|
|
11760
|
+
...authoredTokens(spacing, spacingStepLookup(spacing), spacingEntry),
|
|
11466
11761
|
...authoredTokens(
|
|
11467
11762
|
fileLeaves("z-index", Z_INDEX_FILE, SINGLE_SOURCE),
|
|
11468
11763
|
lookup,
|
|
@@ -11478,8 +11773,10 @@ function createTokenCatalogue(appearance = DEFAULT_NXDS_APPEARANCE) {
|
|
|
11478
11773
|
lookup,
|
|
11479
11774
|
typographyStyleEntry(lookup)
|
|
11480
11775
|
),
|
|
11481
|
-
...shadowStyleTokens(shadowLayers, lookup)
|
|
11776
|
+
...shadowStyleTokens(shadowLayers, lookup),
|
|
11777
|
+
...widthTokens(PAGE_WIDTHS_REM, "default").map(uiScaleEntry)
|
|
11482
11778
|
];
|
|
11779
|
+
return atSizes(tokens, appearance);
|
|
11483
11780
|
}
|
|
11484
11781
|
export {
|
|
11485
11782
|
DARK_SURFACE_LADDER,
|