@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
|
@@ -27,6 +27,181 @@ __export(catalogue_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(catalogue_exports);
|
|
29
29
|
|
|
30
|
+
// src/lib/token-scales.generated.ts
|
|
31
|
+
var PRIMITIVE_PALETTE_NAMES = [
|
|
32
|
+
"green",
|
|
33
|
+
"emerald",
|
|
34
|
+
"teal",
|
|
35
|
+
"cyan",
|
|
36
|
+
"sky",
|
|
37
|
+
"indigo",
|
|
38
|
+
"violet",
|
|
39
|
+
"purple",
|
|
40
|
+
"fuchsia",
|
|
41
|
+
"pink",
|
|
42
|
+
"slate",
|
|
43
|
+
"rose",
|
|
44
|
+
"lime",
|
|
45
|
+
"yellow",
|
|
46
|
+
"blue",
|
|
47
|
+
"gray",
|
|
48
|
+
"zinc",
|
|
49
|
+
"neutral",
|
|
50
|
+
"stone",
|
|
51
|
+
"red",
|
|
52
|
+
"orange",
|
|
53
|
+
"amber"
|
|
54
|
+
];
|
|
55
|
+
var PAGE_WIDTHS_REM = {
|
|
56
|
+
"3xs": 16,
|
|
57
|
+
"2xs": 18,
|
|
58
|
+
xs: 20,
|
|
59
|
+
sm: 24,
|
|
60
|
+
md: 28,
|
|
61
|
+
lg: 32,
|
|
62
|
+
xl: 36,
|
|
63
|
+
"2xl": 42,
|
|
64
|
+
"3xl": 48,
|
|
65
|
+
"4xl": 56,
|
|
66
|
+
"5xl": 64,
|
|
67
|
+
"6xl": 72,
|
|
68
|
+
"7xl": 80
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// src/token-source/ui-scale.ts
|
|
72
|
+
var UI_SCALES = {
|
|
73
|
+
small: { spacing: 0.9, text: 12 / 14, icon: 14 / 16 },
|
|
74
|
+
default: { spacing: 1, text: 1, icon: 1 },
|
|
75
|
+
large: { spacing: 1.1, text: 16 / 14, icon: 18 / 16 },
|
|
76
|
+
larger: { spacing: 1.25, text: 18 / 14, icon: 20 / 16 }
|
|
77
|
+
};
|
|
78
|
+
var NON_DEFAULT_UI_SCALES = Object.keys(UI_SCALES).filter((scale) => scale !== "default");
|
|
79
|
+
var uiScaleSelector = (scale) => `[data-ui-scale='${scale}']`;
|
|
80
|
+
var TEXT_SIZES = [12, 13, 14, 15, 16];
|
|
81
|
+
var DEFAULT_TEXT_SIZE = 14;
|
|
82
|
+
function textSizeAttr(scale, textSize) {
|
|
83
|
+
const sizeAttr = `[data-text-size='${textSize}']`;
|
|
84
|
+
return scale === "default" ? sizeAttr : `${uiScaleSelector(scale)}${sizeAttr}`;
|
|
85
|
+
}
|
|
86
|
+
function textSizeSelector(scale, textSize) {
|
|
87
|
+
if (textSize !== DEFAULT_TEXT_SIZE) return textSizeAttr(scale, textSize);
|
|
88
|
+
return scale === "default" ? null : uiScaleSelector(scale);
|
|
89
|
+
}
|
|
90
|
+
var FULL_RADIUS = "9999px";
|
|
91
|
+
var MIN_TEXT_PX = 8;
|
|
92
|
+
var px = (value) => Number.parseFloat(value);
|
|
93
|
+
var evenPx = (value) => 2 * Math.round(value / 2);
|
|
94
|
+
function scaleLength(value, factor) {
|
|
95
|
+
const scaled = value * factor;
|
|
96
|
+
return scaled >= 16 ? evenPx(scaled) : Math.round(scaled);
|
|
97
|
+
}
|
|
98
|
+
var textFactor = (scale, textSize) => UI_SCALES[scale].text * (textSize / DEFAULT_TEXT_SIZE);
|
|
99
|
+
function scaleText(size, scale, textSize = DEFAULT_TEXT_SIZE) {
|
|
100
|
+
return Math.max(MIN_TEXT_PX, Math.round(size * textFactor(scale, textSize)));
|
|
101
|
+
}
|
|
102
|
+
function scaleLineHeight(lineHeight, scale, textSize) {
|
|
103
|
+
return Math.max(
|
|
104
|
+
MIN_TEXT_PX,
|
|
105
|
+
evenPx(lineHeight * textFactor(scale, textSize))
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function above(previous) {
|
|
109
|
+
const next = previous + 1;
|
|
110
|
+
return next >= 16 && next % 2 === 1 ? next + 1 : next;
|
|
111
|
+
}
|
|
112
|
+
var stepOf = (cssName) => Number(cssName.replace("spacing-", "").replace("_", "."));
|
|
113
|
+
function scaleMode(tokens, factor) {
|
|
114
|
+
const scaled = new Map(
|
|
115
|
+
tokens.filter(({ step }) => !step).map(({ cssName, value }) => [
|
|
116
|
+
cssName,
|
|
117
|
+
value === FULL_RADIUS ? value : `${scaleLength(px(value), factor)}px`
|
|
118
|
+
])
|
|
119
|
+
);
|
|
120
|
+
const steps = [...scaled].filter(([cssName]) => /^spacing-\d/.test(cssName)).sort(([a], [b]) => stepOf(a) - stepOf(b));
|
|
121
|
+
let previous = -1;
|
|
122
|
+
for (const [cssName, value] of steps) {
|
|
123
|
+
const length = px(value) > previous ? px(value) : above(previous);
|
|
124
|
+
scaled.set(cssName, `${length}px`);
|
|
125
|
+
previous = length;
|
|
126
|
+
}
|
|
127
|
+
return tokens.map(({ cssName, step }) => {
|
|
128
|
+
const value = scaled.get(step ?? cssName);
|
|
129
|
+
if (value === void 0) {
|
|
130
|
+
throw new Error(
|
|
131
|
+
`scaleMode: ${cssName} references ${step}, which its mode lacks`
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
return { cssName, value };
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function widthTokens(widths, scale) {
|
|
138
|
+
const factor = UI_SCALES[scale].spacing;
|
|
139
|
+
return [
|
|
140
|
+
{ cssName: "ui-scale", value: String(factor) },
|
|
141
|
+
...Object.entries(widths).map(([name, rem]) => ({
|
|
142
|
+
cssName: `container-${name}`,
|
|
143
|
+
value: `${Number((rem * factor).toFixed(4))}rem`
|
|
144
|
+
}))
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
var groupValues = (group) => Object.fromEntries(
|
|
148
|
+
Object.entries(group).map(([name, token2]) => [name, token2.$value.value])
|
|
149
|
+
);
|
|
150
|
+
function uiScaleBase(typography, icon) {
|
|
151
|
+
return {
|
|
152
|
+
sizes: groupValues(typography.size),
|
|
153
|
+
lineHeights: groupValues(typography["line-height"]),
|
|
154
|
+
codeSize: typography.code.size.$value.value,
|
|
155
|
+
glyphs: groupValues(icon.glyph),
|
|
156
|
+
widths: PAGE_WIDTHS_REM
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function typeTokens({ sizes, lineHeights, codeSize }, scale, textSize) {
|
|
160
|
+
return [
|
|
161
|
+
...Object.entries(sizes).map(([name, size]) => ({
|
|
162
|
+
cssName: `typography-size-${name}`,
|
|
163
|
+
value: `${scaleText(size, scale, textSize)}px`
|
|
164
|
+
})),
|
|
165
|
+
...Object.entries(lineHeights).map(([name, lineHeight]) => ({
|
|
166
|
+
cssName: `typography-line-height-${name}`,
|
|
167
|
+
value: `${scaleLineHeight(lineHeight, scale, textSize)}px`
|
|
168
|
+
})),
|
|
169
|
+
{
|
|
170
|
+
cssName: "typography-code-size",
|
|
171
|
+
value: `${scaleText(codeSize, scale, textSize)}px`
|
|
172
|
+
}
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
function scaleBlocks(base) {
|
|
176
|
+
const { glyphs, widths } = base;
|
|
177
|
+
const root = { selectors: [":root"], tokens: widthTokens(widths, "default") };
|
|
178
|
+
return [
|
|
179
|
+
root,
|
|
180
|
+
...NON_DEFAULT_UI_SCALES.map((scale) => {
|
|
181
|
+
const { icon } = UI_SCALES[scale];
|
|
182
|
+
const tokens = [
|
|
183
|
+
...typeTokens(base, scale, DEFAULT_TEXT_SIZE),
|
|
184
|
+
...Object.entries(glyphs).map(([name, glyph]) => ({
|
|
185
|
+
cssName: `icon-glyph-${name}`,
|
|
186
|
+
value: `${evenPx(glyph * icon)}px`
|
|
187
|
+
})),
|
|
188
|
+
...widthTokens(widths, scale)
|
|
189
|
+
];
|
|
190
|
+
return { selectors: [uiScaleSelector(scale)], tokens };
|
|
191
|
+
})
|
|
192
|
+
];
|
|
193
|
+
}
|
|
194
|
+
function textSizeBlocks(base) {
|
|
195
|
+
return Object.keys(UI_SCALES).flatMap(
|
|
196
|
+
(scale) => TEXT_SIZES.filter((textSize) => textSize !== DEFAULT_TEXT_SIZE).map(
|
|
197
|
+
(textSize) => ({
|
|
198
|
+
selectors: [textSizeAttr(scale, textSize)],
|
|
199
|
+
tokens: typeTokens(base, scale, textSize)
|
|
200
|
+
})
|
|
201
|
+
)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
30
205
|
// src/lib/contrast.ts
|
|
31
206
|
var import_apca_w32 = require("apca-w3");
|
|
32
207
|
var import_culori5 = require("culori");
|
|
@@ -748,495 +923,151 @@ function constrainColors(map, mode, contrast) {
|
|
|
748
923
|
return map;
|
|
749
924
|
}
|
|
750
925
|
|
|
751
|
-
//
|
|
752
|
-
var
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
926
|
+
// src/lib/appearance-model.ts
|
|
927
|
+
var DEFAULT_BRAND_COLOR = "#0a0a0a";
|
|
928
|
+
var BASE_TONE_OPTIONS = [
|
|
929
|
+
{ value: "stone", label: "Stone", color: "#747271" },
|
|
930
|
+
{ value: "neutral", label: "Neutral", color: "#737373" },
|
|
931
|
+
{ value: "zinc", label: "Zinc", color: "#717175" },
|
|
932
|
+
{ value: "slate", label: "Slate", color: "#717376" },
|
|
933
|
+
{ value: "gray", label: "Gray", color: "#707274" }
|
|
934
|
+
];
|
|
935
|
+
var BASE_TONE_SEEDS = {
|
|
936
|
+
stone: {
|
|
937
|
+
light: { background: "#fafaf9", foreground: "#1c1917" },
|
|
938
|
+
dark: { background: "#1c1917", foreground: "#fafaf9" }
|
|
939
|
+
},
|
|
940
|
+
neutral: {
|
|
941
|
+
light: { background: "#fafafa", foreground: "#171717" },
|
|
942
|
+
dark: { background: "#171717", foreground: "#fafafa" }
|
|
943
|
+
},
|
|
944
|
+
zinc: {
|
|
945
|
+
light: { background: "#fafafa", foreground: "#09090b" },
|
|
946
|
+
dark: { background: "#09090b", foreground: "#fafafa" }
|
|
947
|
+
},
|
|
948
|
+
slate: {
|
|
949
|
+
light: { background: "#f8fafc", foreground: "#0f172a" },
|
|
950
|
+
dark: { background: "#0f172a", foreground: "#f8fafc" }
|
|
951
|
+
},
|
|
952
|
+
gray: {
|
|
953
|
+
light: { background: "#f9fafb", foreground: "#111827" },
|
|
954
|
+
dark: { background: "#111827", foreground: "#f9fafb" }
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
var UI_SCALE_OPTIONS = [
|
|
958
|
+
{ value: "small", label: "Small" },
|
|
959
|
+
{ value: "default", label: "Default" },
|
|
960
|
+
{ value: "large", label: "Large" },
|
|
961
|
+
{ value: "larger", label: "Larger" }
|
|
962
|
+
];
|
|
963
|
+
var TEXT_SIZE_OPTIONS = TEXT_SIZES.map((value) => ({ value, label: `${value}px` }));
|
|
964
|
+
var DENSITY_OPTIONS = [
|
|
965
|
+
{ value: "tight", label: "Tight" },
|
|
966
|
+
{ value: "compact", label: "Compact" },
|
|
967
|
+
{ value: "default", label: "Default" },
|
|
968
|
+
{ value: "comfortable", label: "Comfortable" },
|
|
969
|
+
{ value: "relaxed", label: "Relaxed" },
|
|
970
|
+
{ value: "spacious", label: "Spacious" }
|
|
971
|
+
];
|
|
972
|
+
var CORNER_OPTIONS = [
|
|
973
|
+
{ value: "square", label: "Square" },
|
|
974
|
+
{ value: "subtle", label: "Subtle" },
|
|
975
|
+
{ value: "smooth", label: "Smooth" },
|
|
976
|
+
{ value: "round", label: "Round" },
|
|
977
|
+
{ value: "extra-round", label: "Extra Round" }
|
|
978
|
+
];
|
|
979
|
+
var ELEVATION_OPTIONS = [
|
|
980
|
+
{ value: "flat", label: "Flat" },
|
|
981
|
+
{ value: "quiet", label: "Quiet" },
|
|
982
|
+
{ value: "soft", label: "Soft" },
|
|
983
|
+
{ value: "standard", label: "Standard" },
|
|
984
|
+
{ value: "strong", label: "Strong" }
|
|
985
|
+
];
|
|
986
|
+
var STROKE_OPTIONS = [
|
|
987
|
+
{ value: "fine", label: "Fine" },
|
|
988
|
+
{ value: "normal", label: "Normal" },
|
|
989
|
+
{ value: "strong", label: "Strong" }
|
|
990
|
+
];
|
|
991
|
+
var DEFAULT_NXDS_APPEARANCE = {
|
|
992
|
+
mode: "light",
|
|
993
|
+
brandColor: DEFAULT_BRAND_COLOR,
|
|
994
|
+
surfaceTone: "zinc",
|
|
995
|
+
lightContrast: 50,
|
|
996
|
+
darkContrast: 50,
|
|
997
|
+
uiScale: "default",
|
|
998
|
+
textSize: 14,
|
|
999
|
+
density: "default",
|
|
1000
|
+
corners: "subtle",
|
|
1001
|
+
elevation: "quiet",
|
|
1002
|
+
stroke: "normal",
|
|
1003
|
+
prefs: {
|
|
1004
|
+
uiFont: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
1005
|
+
headingFont: null,
|
|
1006
|
+
codeFont: 'ui-monospace, "SF Mono", Menlo, monospace',
|
|
1007
|
+
codeFontSize: 12,
|
|
1008
|
+
reduceMotion: false,
|
|
1009
|
+
pointerCursors: false,
|
|
1010
|
+
fontSmoothing: false
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
var SURFACE_TONES = new Set(
|
|
1014
|
+
BASE_TONE_OPTIONS.map((option) => option.value)
|
|
1015
|
+
);
|
|
1016
|
+
var SCALES = new Set(
|
|
1017
|
+
UI_SCALE_OPTIONS.map((option) => option.value)
|
|
1018
|
+
);
|
|
1019
|
+
var TEXT_SIZE_VALUES = new Set(TEXT_SIZES);
|
|
1020
|
+
var DENSITIES = new Set(
|
|
1021
|
+
DENSITY_OPTIONS.map((option) => option.value)
|
|
1022
|
+
);
|
|
1023
|
+
var CORNERS = new Set(
|
|
1024
|
+
CORNER_OPTIONS.map((option) => option.value)
|
|
1025
|
+
);
|
|
1026
|
+
var ELEVATIONS = new Set(
|
|
1027
|
+
ELEVATION_OPTIONS.map((option) => option.value)
|
|
1028
|
+
);
|
|
1029
|
+
var STROKES = new Set(
|
|
1030
|
+
STROKE_OPTIONS.map((option) => option.value)
|
|
1031
|
+
);
|
|
1032
|
+
function createNxdsThemeContract(state) {
|
|
1033
|
+
const tone = BASE_TONE_SEEDS[state.surfaceTone];
|
|
1034
|
+
return {
|
|
1035
|
+
surfaceTone: state.surfaceTone,
|
|
1036
|
+
contrast: { light: state.lightContrast, dark: state.darkContrast },
|
|
1037
|
+
light: { accent: state.brandColor, ...tone.light },
|
|
1038
|
+
dark: { accent: state.brandColor, ...tone.dark }
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// src/lib/derive-theme.ts
|
|
1043
|
+
var import_culori6 = require("culori");
|
|
1044
|
+
|
|
1045
|
+
// tokens/primitives/color.json
|
|
1046
|
+
var color_default = {
|
|
1047
|
+
green: {
|
|
1048
|
+
"50": {
|
|
1049
|
+
$value: "#f1f7ef",
|
|
1050
|
+
$type: "color"
|
|
762
1051
|
},
|
|
763
|
-
"
|
|
764
|
-
$value: "
|
|
765
|
-
$type: "
|
|
766
|
-
$extensions: {
|
|
767
|
-
"nx-font-source": {
|
|
768
|
-
type: "system"
|
|
769
|
-
}
|
|
770
|
-
}
|
|
1052
|
+
"100": {
|
|
1053
|
+
$value: "#e6f3e3",
|
|
1054
|
+
$type: "color"
|
|
771
1055
|
},
|
|
772
|
-
"
|
|
773
|
-
$value: "
|
|
774
|
-
$type: "
|
|
775
|
-
$extensions: {
|
|
776
|
-
"nx-font-source": {
|
|
777
|
-
type: "system"
|
|
778
|
-
}
|
|
779
|
-
}
|
|
1056
|
+
"200": {
|
|
1057
|
+
$value: "#cce2c7",
|
|
1058
|
+
$type: "color"
|
|
780
1059
|
},
|
|
781
|
-
"
|
|
782
|
-
$value: "
|
|
783
|
-
$type: "
|
|
784
|
-
$extensions: {
|
|
785
|
-
"nx-font-source": {
|
|
786
|
-
type: "system"
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
size: {
|
|
792
|
-
xxs: {
|
|
793
|
-
$value: {
|
|
794
|
-
value: 11,
|
|
795
|
-
unit: "px"
|
|
796
|
-
},
|
|
797
|
-
$type: "dimension"
|
|
1060
|
+
"300": {
|
|
1061
|
+
$value: "#a6c99e",
|
|
1062
|
+
$type: "color"
|
|
798
1063
|
},
|
|
799
|
-
|
|
800
|
-
$value:
|
|
801
|
-
|
|
802
|
-
unit: "px"
|
|
803
|
-
},
|
|
804
|
-
$type: "dimension"
|
|
1064
|
+
"400": {
|
|
1065
|
+
$value: "#7fb175",
|
|
1066
|
+
$type: "color"
|
|
805
1067
|
},
|
|
806
|
-
|
|
807
|
-
$value:
|
|
808
|
-
|
|
809
|
-
unit: "px"
|
|
810
|
-
},
|
|
811
|
-
$type: "dimension"
|
|
812
|
-
},
|
|
813
|
-
base: {
|
|
814
|
-
$value: {
|
|
815
|
-
value: 16,
|
|
816
|
-
unit: "px"
|
|
817
|
-
},
|
|
818
|
-
$type: "dimension"
|
|
819
|
-
},
|
|
820
|
-
lg: {
|
|
821
|
-
$value: {
|
|
822
|
-
value: 18,
|
|
823
|
-
unit: "px"
|
|
824
|
-
},
|
|
825
|
-
$type: "dimension"
|
|
826
|
-
},
|
|
827
|
-
xl: {
|
|
828
|
-
$value: {
|
|
829
|
-
value: 20,
|
|
830
|
-
unit: "px"
|
|
831
|
-
},
|
|
832
|
-
$type: "dimension"
|
|
833
|
-
},
|
|
834
|
-
"2xl": {
|
|
835
|
-
$value: {
|
|
836
|
-
value: 24,
|
|
837
|
-
unit: "px"
|
|
838
|
-
},
|
|
839
|
-
$type: "dimension"
|
|
840
|
-
},
|
|
841
|
-
"3xl": {
|
|
842
|
-
$value: {
|
|
843
|
-
value: 30,
|
|
844
|
-
unit: "px"
|
|
845
|
-
},
|
|
846
|
-
$type: "dimension"
|
|
847
|
-
},
|
|
848
|
-
"4xl": {
|
|
849
|
-
$value: {
|
|
850
|
-
value: 36,
|
|
851
|
-
unit: "px"
|
|
852
|
-
},
|
|
853
|
-
$type: "dimension"
|
|
854
|
-
},
|
|
855
|
-
"5xl": {
|
|
856
|
-
$value: {
|
|
857
|
-
value: 48,
|
|
858
|
-
unit: "px"
|
|
859
|
-
},
|
|
860
|
-
$type: "dimension"
|
|
861
|
-
},
|
|
862
|
-
"6xl": {
|
|
863
|
-
$value: {
|
|
864
|
-
value: 60,
|
|
865
|
-
unit: "px"
|
|
866
|
-
},
|
|
867
|
-
$type: "dimension"
|
|
868
|
-
},
|
|
869
|
-
"7xl": {
|
|
870
|
-
$value: {
|
|
871
|
-
value: 72,
|
|
872
|
-
unit: "px"
|
|
873
|
-
},
|
|
874
|
-
$type: "dimension"
|
|
875
|
-
},
|
|
876
|
-
"8xl": {
|
|
877
|
-
$value: {
|
|
878
|
-
value: 96,
|
|
879
|
-
unit: "px"
|
|
880
|
-
},
|
|
881
|
-
$type: "dimension"
|
|
882
|
-
},
|
|
883
|
-
"9xl": {
|
|
884
|
-
$value: {
|
|
885
|
-
value: 128,
|
|
886
|
-
unit: "px"
|
|
887
|
-
},
|
|
888
|
-
$type: "dimension"
|
|
889
|
-
},
|
|
890
|
-
code: {
|
|
891
|
-
$value: {
|
|
892
|
-
value: 12,
|
|
893
|
-
unit: "px"
|
|
894
|
-
},
|
|
895
|
-
$type: "dimension"
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
weight: {
|
|
899
|
-
thin: {
|
|
900
|
-
$value: 100,
|
|
901
|
-
$type: "fontWeight"
|
|
902
|
-
},
|
|
903
|
-
extralight: {
|
|
904
|
-
$value: 200,
|
|
905
|
-
$type: "fontWeight"
|
|
906
|
-
},
|
|
907
|
-
light: {
|
|
908
|
-
$value: 300,
|
|
909
|
-
$type: "fontWeight"
|
|
910
|
-
},
|
|
911
|
-
normal: {
|
|
912
|
-
$value: 400,
|
|
913
|
-
$type: "fontWeight"
|
|
914
|
-
},
|
|
915
|
-
medium: {
|
|
916
|
-
$value: 500,
|
|
917
|
-
$type: "fontWeight"
|
|
918
|
-
},
|
|
919
|
-
semibold: {
|
|
920
|
-
$value: 600,
|
|
921
|
-
$type: "fontWeight"
|
|
922
|
-
},
|
|
923
|
-
bold: {
|
|
924
|
-
$value: 700,
|
|
925
|
-
$type: "fontWeight"
|
|
926
|
-
},
|
|
927
|
-
extrabold: {
|
|
928
|
-
$value: 800,
|
|
929
|
-
$type: "fontWeight"
|
|
930
|
-
},
|
|
931
|
-
black: {
|
|
932
|
-
$value: 900,
|
|
933
|
-
$type: "fontWeight"
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
"line-height": {
|
|
937
|
-
xxs: {
|
|
938
|
-
$value: {
|
|
939
|
-
value: 12,
|
|
940
|
-
unit: "px"
|
|
941
|
-
},
|
|
942
|
-
$type: "dimension"
|
|
943
|
-
},
|
|
944
|
-
xs: {
|
|
945
|
-
$value: {
|
|
946
|
-
value: 16,
|
|
947
|
-
unit: "px"
|
|
948
|
-
},
|
|
949
|
-
$type: "dimension"
|
|
950
|
-
},
|
|
951
|
-
sm: {
|
|
952
|
-
$value: {
|
|
953
|
-
value: 20,
|
|
954
|
-
unit: "px"
|
|
955
|
-
},
|
|
956
|
-
$type: "dimension"
|
|
957
|
-
},
|
|
958
|
-
base: {
|
|
959
|
-
$value: {
|
|
960
|
-
value: 24,
|
|
961
|
-
unit: "px"
|
|
962
|
-
},
|
|
963
|
-
$type: "dimension"
|
|
964
|
-
},
|
|
965
|
-
lg: {
|
|
966
|
-
$value: {
|
|
967
|
-
value: 28,
|
|
968
|
-
unit: "px"
|
|
969
|
-
},
|
|
970
|
-
$type: "dimension"
|
|
971
|
-
},
|
|
972
|
-
xl: {
|
|
973
|
-
$value: {
|
|
974
|
-
value: 28,
|
|
975
|
-
unit: "px"
|
|
976
|
-
},
|
|
977
|
-
$type: "dimension"
|
|
978
|
-
},
|
|
979
|
-
"2xl": {
|
|
980
|
-
$value: {
|
|
981
|
-
value: 32,
|
|
982
|
-
unit: "px"
|
|
983
|
-
},
|
|
984
|
-
$type: "dimension"
|
|
985
|
-
},
|
|
986
|
-
"3xl": {
|
|
987
|
-
$value: {
|
|
988
|
-
value: 36,
|
|
989
|
-
unit: "px"
|
|
990
|
-
},
|
|
991
|
-
$type: "dimension"
|
|
992
|
-
},
|
|
993
|
-
"4xl": {
|
|
994
|
-
$value: {
|
|
995
|
-
value: 48,
|
|
996
|
-
unit: "px"
|
|
997
|
-
},
|
|
998
|
-
$type: "dimension"
|
|
999
|
-
},
|
|
1000
|
-
"5xl": {
|
|
1001
|
-
$value: {
|
|
1002
|
-
value: 48,
|
|
1003
|
-
unit: "px"
|
|
1004
|
-
},
|
|
1005
|
-
$type: "dimension"
|
|
1006
|
-
},
|
|
1007
|
-
"6xl": {
|
|
1008
|
-
$value: {
|
|
1009
|
-
value: 60,
|
|
1010
|
-
unit: "px"
|
|
1011
|
-
},
|
|
1012
|
-
$type: "dimension"
|
|
1013
|
-
},
|
|
1014
|
-
"7xl": {
|
|
1015
|
-
$value: {
|
|
1016
|
-
value: 72,
|
|
1017
|
-
unit: "px"
|
|
1018
|
-
},
|
|
1019
|
-
$type: "dimension"
|
|
1020
|
-
},
|
|
1021
|
-
"8xl": {
|
|
1022
|
-
$value: {
|
|
1023
|
-
value: 96,
|
|
1024
|
-
unit: "px"
|
|
1025
|
-
},
|
|
1026
|
-
$type: "dimension"
|
|
1027
|
-
},
|
|
1028
|
-
"9xl": {
|
|
1029
|
-
$value: {
|
|
1030
|
-
value: 128,
|
|
1031
|
-
unit: "px"
|
|
1032
|
-
},
|
|
1033
|
-
$type: "dimension"
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
letterspacing: {
|
|
1037
|
-
tighter: {
|
|
1038
|
-
$value: {
|
|
1039
|
-
value: -0.800000011920929,
|
|
1040
|
-
unit: "px"
|
|
1041
|
-
},
|
|
1042
|
-
$type: "dimension"
|
|
1043
|
-
},
|
|
1044
|
-
tight: {
|
|
1045
|
-
$value: {
|
|
1046
|
-
value: -0.4000000059604645,
|
|
1047
|
-
unit: "px"
|
|
1048
|
-
},
|
|
1049
|
-
$type: "dimension"
|
|
1050
|
-
},
|
|
1051
|
-
normal: {
|
|
1052
|
-
$value: {
|
|
1053
|
-
value: 0,
|
|
1054
|
-
unit: "px"
|
|
1055
|
-
},
|
|
1056
|
-
$type: "dimension"
|
|
1057
|
-
},
|
|
1058
|
-
wide: {
|
|
1059
|
-
$value: {
|
|
1060
|
-
value: 0.4000000059604645,
|
|
1061
|
-
unit: "px"
|
|
1062
|
-
},
|
|
1063
|
-
$type: "dimension"
|
|
1064
|
-
},
|
|
1065
|
-
wider: {
|
|
1066
|
-
$value: {
|
|
1067
|
-
value: 0.800000011920929,
|
|
1068
|
-
unit: "px"
|
|
1069
|
-
},
|
|
1070
|
-
$type: "dimension"
|
|
1071
|
-
},
|
|
1072
|
-
widest: {
|
|
1073
|
-
$value: {
|
|
1074
|
-
value: 1.600000023841858,
|
|
1075
|
-
unit: "px"
|
|
1076
|
-
},
|
|
1077
|
-
$type: "dimension"
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
// src/lib/typography-scale.ts
|
|
1083
|
-
var TYPOGRAPHY_BASE_PX = 14;
|
|
1084
|
-
function formatPx(value) {
|
|
1085
|
-
return `${Number(value.toFixed(4))}px`;
|
|
1086
|
-
}
|
|
1087
|
-
var CODE_SIZE = "code";
|
|
1088
|
-
function typographyScale(uiPx, codePx) {
|
|
1089
|
-
const scale = uiPx / TYPOGRAPHY_BASE_PX;
|
|
1090
|
-
return new Map([
|
|
1091
|
-
...Object.entries(typography_default_default.size).map(
|
|
1092
|
-
([name, token2]) => [
|
|
1093
|
-
`--nx-typography-size-${name}`,
|
|
1094
|
-
formatPx(name === CODE_SIZE ? codePx : token2.$value.value * scale)
|
|
1095
|
-
]
|
|
1096
|
-
),
|
|
1097
|
-
...Object.entries(typography_default_default["line-height"]).map(
|
|
1098
|
-
([name, token2]) => [
|
|
1099
|
-
`--nx-typography-line-height-${name}`,
|
|
1100
|
-
formatPx(token2.$value.value * scale)
|
|
1101
|
-
]
|
|
1102
|
-
)
|
|
1103
|
-
]);
|
|
1104
|
-
}
|
|
1105
|
-
var isCodeSize = (path) => path[0] === "size" && path[1] === CODE_SIZE;
|
|
1106
|
-
|
|
1107
|
-
// src/lib/appearance-model.ts
|
|
1108
|
-
var DEFAULT_BRAND_COLOR = "#0a0a0a";
|
|
1109
|
-
var BASE_TONE_OPTIONS = [
|
|
1110
|
-
{ value: "stone", label: "Stone", color: "#747271" },
|
|
1111
|
-
{ value: "neutral", label: "Neutral", color: "#737373" },
|
|
1112
|
-
{ value: "zinc", label: "Zinc", color: "#717175" },
|
|
1113
|
-
{ value: "slate", label: "Slate", color: "#717376" },
|
|
1114
|
-
{ value: "gray", label: "Gray", color: "#707274" }
|
|
1115
|
-
];
|
|
1116
|
-
var BASE_TONE_SEEDS = {
|
|
1117
|
-
stone: {
|
|
1118
|
-
light: { background: "#fafaf9", foreground: "#1c1917" },
|
|
1119
|
-
dark: { background: "#1c1917", foreground: "#fafaf9" }
|
|
1120
|
-
},
|
|
1121
|
-
neutral: {
|
|
1122
|
-
light: { background: "#fafafa", foreground: "#171717" },
|
|
1123
|
-
dark: { background: "#171717", foreground: "#fafafa" }
|
|
1124
|
-
},
|
|
1125
|
-
zinc: {
|
|
1126
|
-
light: { background: "#fafafa", foreground: "#09090b" },
|
|
1127
|
-
dark: { background: "#09090b", foreground: "#fafafa" }
|
|
1128
|
-
},
|
|
1129
|
-
slate: {
|
|
1130
|
-
light: { background: "#f8fafc", foreground: "#0f172a" },
|
|
1131
|
-
dark: { background: "#0f172a", foreground: "#f8fafc" }
|
|
1132
|
-
},
|
|
1133
|
-
gray: {
|
|
1134
|
-
light: { background: "#f9fafb", foreground: "#111827" },
|
|
1135
|
-
dark: { background: "#111827", foreground: "#f9fafb" }
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
|
-
var DENSITY_OPTIONS = [
|
|
1139
|
-
{ value: "tight", label: "Tight" },
|
|
1140
|
-
{ value: "compact", label: "Compact" },
|
|
1141
|
-
{ value: "default", label: "Default" },
|
|
1142
|
-
{ value: "comfortable", label: "Comfortable" },
|
|
1143
|
-
{ value: "relaxed", label: "Relaxed" },
|
|
1144
|
-
{ value: "spacious", label: "Spacious" }
|
|
1145
|
-
];
|
|
1146
|
-
var CORNER_OPTIONS = [
|
|
1147
|
-
{ value: "square", label: "Square" },
|
|
1148
|
-
{ value: "subtle", label: "Subtle" },
|
|
1149
|
-
{ value: "smooth", label: "Smooth" },
|
|
1150
|
-
{ value: "round", label: "Round" },
|
|
1151
|
-
{ value: "extra-round", label: "Extra Round" }
|
|
1152
|
-
];
|
|
1153
|
-
var ELEVATION_OPTIONS = [
|
|
1154
|
-
{ value: "flat", label: "Flat" },
|
|
1155
|
-
{ value: "quiet", label: "Quiet" },
|
|
1156
|
-
{ value: "soft", label: "Soft" },
|
|
1157
|
-
{ value: "standard", label: "Standard" },
|
|
1158
|
-
{ value: "strong", label: "Strong" }
|
|
1159
|
-
];
|
|
1160
|
-
var STROKE_OPTIONS = [
|
|
1161
|
-
{ value: "fine", label: "Fine" },
|
|
1162
|
-
{ value: "normal", label: "Normal" },
|
|
1163
|
-
{ value: "strong", label: "Strong" }
|
|
1164
|
-
];
|
|
1165
|
-
var DEFAULT_NXDS_APPEARANCE = {
|
|
1166
|
-
mode: "light",
|
|
1167
|
-
brandColor: DEFAULT_BRAND_COLOR,
|
|
1168
|
-
surfaceTone: "zinc",
|
|
1169
|
-
lightContrast: 50,
|
|
1170
|
-
darkContrast: 50,
|
|
1171
|
-
density: "default",
|
|
1172
|
-
corners: "subtle",
|
|
1173
|
-
elevation: "quiet",
|
|
1174
|
-
stroke: "normal",
|
|
1175
|
-
prefs: {
|
|
1176
|
-
uiFont: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
1177
|
-
headingFont: null,
|
|
1178
|
-
codeFont: 'ui-monospace, "SF Mono", Menlo, monospace',
|
|
1179
|
-
uiFontSize: TYPOGRAPHY_BASE_PX,
|
|
1180
|
-
codeFontSize: 12,
|
|
1181
|
-
reduceMotion: false,
|
|
1182
|
-
pointerCursors: false,
|
|
1183
|
-
fontSmoothing: false
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
var SURFACE_TONES = new Set(
|
|
1187
|
-
BASE_TONE_OPTIONS.map((option) => option.value)
|
|
1188
|
-
);
|
|
1189
|
-
var DENSITIES = new Set(
|
|
1190
|
-
DENSITY_OPTIONS.map((option) => option.value)
|
|
1191
|
-
);
|
|
1192
|
-
var CORNERS = new Set(
|
|
1193
|
-
CORNER_OPTIONS.map((option) => option.value)
|
|
1194
|
-
);
|
|
1195
|
-
var ELEVATIONS = new Set(
|
|
1196
|
-
ELEVATION_OPTIONS.map((option) => option.value)
|
|
1197
|
-
);
|
|
1198
|
-
var STROKES = new Set(
|
|
1199
|
-
STROKE_OPTIONS.map((option) => option.value)
|
|
1200
|
-
);
|
|
1201
|
-
function createNxdsThemeContract(state) {
|
|
1202
|
-
const tone = BASE_TONE_SEEDS[state.surfaceTone];
|
|
1203
|
-
return {
|
|
1204
|
-
surfaceTone: state.surfaceTone,
|
|
1205
|
-
contrast: { light: state.lightContrast, dark: state.darkContrast },
|
|
1206
|
-
light: { accent: state.brandColor, ...tone.light },
|
|
1207
|
-
dark: { accent: state.brandColor, ...tone.dark }
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
// src/lib/derive-theme.ts
|
|
1212
|
-
var import_culori6 = require("culori");
|
|
1213
|
-
|
|
1214
|
-
// tokens/primitives/color.json
|
|
1215
|
-
var color_default = {
|
|
1216
|
-
green: {
|
|
1217
|
-
"50": {
|
|
1218
|
-
$value: "#f1f7ef",
|
|
1219
|
-
$type: "color"
|
|
1220
|
-
},
|
|
1221
|
-
"100": {
|
|
1222
|
-
$value: "#e6f3e3",
|
|
1223
|
-
$type: "color"
|
|
1224
|
-
},
|
|
1225
|
-
"200": {
|
|
1226
|
-
$value: "#cce2c7",
|
|
1227
|
-
$type: "color"
|
|
1228
|
-
},
|
|
1229
|
-
"300": {
|
|
1230
|
-
$value: "#a6c99e",
|
|
1231
|
-
$type: "color"
|
|
1232
|
-
},
|
|
1233
|
-
"400": {
|
|
1234
|
-
$value: "#7fb175",
|
|
1235
|
-
$type: "color"
|
|
1236
|
-
},
|
|
1237
|
-
"500": {
|
|
1238
|
-
$value: "#569947",
|
|
1239
|
-
$type: "color"
|
|
1068
|
+
"500": {
|
|
1069
|
+
$value: "#569947",
|
|
1070
|
+
$type: "color"
|
|
1240
1071
|
},
|
|
1241
1072
|
"600": {
|
|
1242
1073
|
$value: "#3f7932",
|
|
@@ -2587,32 +2418,6 @@ var color_default = {
|
|
|
2587
2418
|
}
|
|
2588
2419
|
};
|
|
2589
2420
|
|
|
2590
|
-
// src/lib/token-scales.generated.ts
|
|
2591
|
-
var PRIMITIVE_PALETTE_NAMES = [
|
|
2592
|
-
"green",
|
|
2593
|
-
"emerald",
|
|
2594
|
-
"teal",
|
|
2595
|
-
"cyan",
|
|
2596
|
-
"sky",
|
|
2597
|
-
"indigo",
|
|
2598
|
-
"violet",
|
|
2599
|
-
"purple",
|
|
2600
|
-
"fuchsia",
|
|
2601
|
-
"pink",
|
|
2602
|
-
"slate",
|
|
2603
|
-
"rose",
|
|
2604
|
-
"lime",
|
|
2605
|
-
"yellow",
|
|
2606
|
-
"blue",
|
|
2607
|
-
"gray",
|
|
2608
|
-
"zinc",
|
|
2609
|
-
"neutral",
|
|
2610
|
-
"stone",
|
|
2611
|
-
"red",
|
|
2612
|
-
"orange",
|
|
2613
|
-
"amber"
|
|
2614
|
-
];
|
|
2615
|
-
|
|
2616
2421
|
// src/lib/primitive-palette.ts
|
|
2617
2422
|
var rampCache = /* @__PURE__ */ new Map();
|
|
2618
2423
|
function getPaletteRamp(palette) {
|
|
@@ -3339,6 +3144,22 @@ function spacingTokenKind(tokenPath) {
|
|
|
3339
3144
|
`spacingTokenKind: unknown top-level key "${root}" in path [${tokenPath.join(".")}] \u2014 extend SPACING_NUMERIC_ROOTS / SPACING_ROLE_ROOTS`
|
|
3340
3145
|
);
|
|
3341
3146
|
}
|
|
3147
|
+
function referencedStep(token2, fileTokens) {
|
|
3148
|
+
if (!isReference(token2.value)) return void 0;
|
|
3149
|
+
const reference = extractRefPath(token2.value);
|
|
3150
|
+
const step = fileTokens.find(
|
|
3151
|
+
({ path }) => path.join(".") === reference && spacingTokenKind(path) === "numeric"
|
|
3152
|
+
);
|
|
3153
|
+
if (!step || isReference(step.value)) {
|
|
3154
|
+
throw new Error(
|
|
3155
|
+
`referencedStep: ${token2.path.join(".")} references {${reference}}, which is not a spacing step with a value`
|
|
3156
|
+
);
|
|
3157
|
+
}
|
|
3158
|
+
return step;
|
|
3159
|
+
}
|
|
3160
|
+
function spacingValue(token2, fileTokens) {
|
|
3161
|
+
return (referencedStep(token2, fileTokens) ?? token2).value;
|
|
3162
|
+
}
|
|
3342
3163
|
var FAMILY_TO_UTILITY = {
|
|
3343
3164
|
"padding-x": { prefix: "px", properties: ["padding-left", "padding-right"] },
|
|
3344
3165
|
"padding-y": { prefix: "py", properties: ["padding-top", "padding-bottom"] },
|
|
@@ -3423,6 +3244,32 @@ function durationUtility(key) {
|
|
|
3423
3244
|
]
|
|
3424
3245
|
};
|
|
3425
3246
|
}
|
|
3247
|
+
function iconSizeUtility(key) {
|
|
3248
|
+
const value = `var(--nx-icon-${key})`;
|
|
3249
|
+
return {
|
|
3250
|
+
name: `size-icon-${key}`,
|
|
3251
|
+
declarations: [
|
|
3252
|
+
{ property: "width", value },
|
|
3253
|
+
{ property: "height", value },
|
|
3254
|
+
{ property: "--nx-icon-size", value }
|
|
3255
|
+
]
|
|
3256
|
+
};
|
|
3257
|
+
}
|
|
3258
|
+
var ICON_STROKE_UTILITY = {
|
|
3259
|
+
name: "icon-stroke",
|
|
3260
|
+
selectors: ["&:is(svg)", "&:is(svg) *", "& svg", "& svg *"],
|
|
3261
|
+
declarations: [
|
|
3262
|
+
{
|
|
3263
|
+
property: "stroke-width",
|
|
3264
|
+
value: "calc(var(--nx-icon-stroke-base) + var(--nx-icon-size, var(--nx-icon-glyph-default)) * var(--nx-icon-stroke-ratio))"
|
|
3265
|
+
},
|
|
3266
|
+
{ property: "vector-effect", value: "non-scaling-stroke" }
|
|
3267
|
+
]
|
|
3268
|
+
};
|
|
3269
|
+
function iconUtility(path) {
|
|
3270
|
+
if (path[0] === "stroke") return ICON_STROKE_UTILITY;
|
|
3271
|
+
return iconSizeUtility(path.join("-"));
|
|
3272
|
+
}
|
|
3426
3273
|
var DEFAULT_TRANSITION = {
|
|
3427
3274
|
duration: "default",
|
|
3428
3275
|
ease: "enter"
|
|
@@ -3643,6 +3490,67 @@ var borderwidth_strong_default = {
|
|
|
3643
3490
|
}
|
|
3644
3491
|
};
|
|
3645
3492
|
|
|
3493
|
+
// tokens/primitives/icon.json
|
|
3494
|
+
var icon_default = {
|
|
3495
|
+
glyph: {
|
|
3496
|
+
xs: {
|
|
3497
|
+
$value: {
|
|
3498
|
+
value: 12,
|
|
3499
|
+
unit: "px"
|
|
3500
|
+
},
|
|
3501
|
+
$type: "dimension",
|
|
3502
|
+
$description: "Small icon in a compact part, such as Kbd. It follows the UI scale and is the same at every density."
|
|
3503
|
+
},
|
|
3504
|
+
sm: {
|
|
3505
|
+
$value: {
|
|
3506
|
+
value: 14,
|
|
3507
|
+
unit: "px"
|
|
3508
|
+
},
|
|
3509
|
+
$type: "dimension",
|
|
3510
|
+
$description: "Small icon, such as a Badge icon or the small Switch. It follows the UI scale and is the same at every density."
|
|
3511
|
+
},
|
|
3512
|
+
default: {
|
|
3513
|
+
$value: {
|
|
3514
|
+
value: 16,
|
|
3515
|
+
unit: "px"
|
|
3516
|
+
},
|
|
3517
|
+
$type: "dimension",
|
|
3518
|
+
$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."
|
|
3519
|
+
},
|
|
3520
|
+
lg: {
|
|
3521
|
+
$value: {
|
|
3522
|
+
value: 24,
|
|
3523
|
+
unit: "px"
|
|
3524
|
+
},
|
|
3525
|
+
$type: "dimension",
|
|
3526
|
+
$description: "Large standalone icon, such as in an EmptyState. It follows the UI scale and is the same at every density."
|
|
3527
|
+
},
|
|
3528
|
+
xl: {
|
|
3529
|
+
$value: {
|
|
3530
|
+
value: 32,
|
|
3531
|
+
unit: "px"
|
|
3532
|
+
},
|
|
3533
|
+
$type: "dimension",
|
|
3534
|
+
$description: "Extra large standalone icon, such as in a vertical Attachment. It follows the UI scale and is the same at every density."
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
stroke: {
|
|
3538
|
+
base: {
|
|
3539
|
+
$value: {
|
|
3540
|
+
value: 0.5,
|
|
3541
|
+
unit: "px"
|
|
3542
|
+
},
|
|
3543
|
+
$type: "dimension",
|
|
3544
|
+
$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."
|
|
3545
|
+
},
|
|
3546
|
+
ratio: {
|
|
3547
|
+
$value: 0.0625,
|
|
3548
|
+
$type: "number",
|
|
3549
|
+
$description: "Line a stroked icon adds for each pixel of its size. 0.0625 adds 1px of line for every 16px of icon."
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
};
|
|
3553
|
+
|
|
3646
3554
|
// tokens/primitives/motion/motion-snappy.json
|
|
3647
3555
|
var motion_snappy_default = {
|
|
3648
3556
|
duration: {
|
|
@@ -8712,14 +8620,154 @@ var shadow_strong_light_default = {
|
|
|
8712
8620
|
},
|
|
8713
8621
|
y: {
|
|
8714
8622
|
$value: {
|
|
8715
|
-
value: 3,
|
|
8623
|
+
value: 3,
|
|
8624
|
+
unit: "px"
|
|
8625
|
+
},
|
|
8626
|
+
$type: "dimension"
|
|
8627
|
+
},
|
|
8628
|
+
blur: {
|
|
8629
|
+
$value: {
|
|
8630
|
+
value: 6,
|
|
8631
|
+
unit: "px"
|
|
8632
|
+
},
|
|
8633
|
+
$type: "dimension"
|
|
8634
|
+
},
|
|
8635
|
+
spread: {
|
|
8636
|
+
$value: {
|
|
8637
|
+
value: -1,
|
|
8638
|
+
unit: "px"
|
|
8639
|
+
},
|
|
8640
|
+
$type: "dimension"
|
|
8641
|
+
},
|
|
8642
|
+
color: {
|
|
8643
|
+
$value: "#0000001f",
|
|
8644
|
+
$type: "color"
|
|
8645
|
+
}
|
|
8646
|
+
}
|
|
8647
|
+
},
|
|
8648
|
+
md: {
|
|
8649
|
+
"layer-1": {
|
|
8650
|
+
x: {
|
|
8651
|
+
$value: {
|
|
8652
|
+
value: 0,
|
|
8653
|
+
unit: "px"
|
|
8654
|
+
},
|
|
8655
|
+
$type: "dimension"
|
|
8656
|
+
},
|
|
8657
|
+
y: {
|
|
8658
|
+
$value: {
|
|
8659
|
+
value: 1,
|
|
8660
|
+
unit: "px"
|
|
8661
|
+
},
|
|
8662
|
+
$type: "dimension"
|
|
8663
|
+
},
|
|
8664
|
+
blur: {
|
|
8665
|
+
$value: {
|
|
8666
|
+
value: 3,
|
|
8667
|
+
unit: "px"
|
|
8668
|
+
},
|
|
8669
|
+
$type: "dimension"
|
|
8670
|
+
},
|
|
8671
|
+
spread: {
|
|
8672
|
+
$value: {
|
|
8673
|
+
value: 0,
|
|
8674
|
+
unit: "px"
|
|
8675
|
+
},
|
|
8676
|
+
$type: "dimension"
|
|
8677
|
+
},
|
|
8678
|
+
color: {
|
|
8679
|
+
$value: "#0000001f",
|
|
8680
|
+
$type: "color"
|
|
8681
|
+
}
|
|
8682
|
+
},
|
|
8683
|
+
"layer-2": {
|
|
8684
|
+
x: {
|
|
8685
|
+
$value: {
|
|
8686
|
+
value: 0,
|
|
8687
|
+
unit: "px"
|
|
8688
|
+
},
|
|
8689
|
+
$type: "dimension"
|
|
8690
|
+
},
|
|
8691
|
+
y: {
|
|
8692
|
+
$value: {
|
|
8693
|
+
value: 4,
|
|
8694
|
+
unit: "px"
|
|
8695
|
+
},
|
|
8696
|
+
$type: "dimension"
|
|
8697
|
+
},
|
|
8698
|
+
blur: {
|
|
8699
|
+
$value: {
|
|
8700
|
+
value: 8,
|
|
8701
|
+
unit: "px"
|
|
8702
|
+
},
|
|
8703
|
+
$type: "dimension"
|
|
8704
|
+
},
|
|
8705
|
+
spread: {
|
|
8706
|
+
$value: {
|
|
8707
|
+
value: -1,
|
|
8708
|
+
unit: "px"
|
|
8709
|
+
},
|
|
8710
|
+
$type: "dimension"
|
|
8711
|
+
},
|
|
8712
|
+
color: {
|
|
8713
|
+
$value: "#0000001f",
|
|
8714
|
+
$type: "color"
|
|
8715
|
+
}
|
|
8716
|
+
}
|
|
8717
|
+
},
|
|
8718
|
+
lg: {
|
|
8719
|
+
"layer-1": {
|
|
8720
|
+
x: {
|
|
8721
|
+
$value: {
|
|
8722
|
+
value: 0,
|
|
8723
|
+
unit: "px"
|
|
8724
|
+
},
|
|
8725
|
+
$type: "dimension"
|
|
8726
|
+
},
|
|
8727
|
+
y: {
|
|
8728
|
+
$value: {
|
|
8729
|
+
value: 1,
|
|
8730
|
+
unit: "px"
|
|
8731
|
+
},
|
|
8732
|
+
$type: "dimension"
|
|
8733
|
+
},
|
|
8734
|
+
blur: {
|
|
8735
|
+
$value: {
|
|
8736
|
+
value: 3,
|
|
8737
|
+
unit: "px"
|
|
8738
|
+
},
|
|
8739
|
+
$type: "dimension"
|
|
8740
|
+
},
|
|
8741
|
+
spread: {
|
|
8742
|
+
$value: {
|
|
8743
|
+
value: 0,
|
|
8744
|
+
unit: "px"
|
|
8745
|
+
},
|
|
8746
|
+
$type: "dimension"
|
|
8747
|
+
},
|
|
8748
|
+
color: {
|
|
8749
|
+
$value: "#00000026",
|
|
8750
|
+
$type: "color"
|
|
8751
|
+
}
|
|
8752
|
+
},
|
|
8753
|
+
"layer-2": {
|
|
8754
|
+
x: {
|
|
8755
|
+
$value: {
|
|
8756
|
+
value: 0,
|
|
8757
|
+
unit: "px"
|
|
8758
|
+
},
|
|
8759
|
+
$type: "dimension"
|
|
8760
|
+
},
|
|
8761
|
+
y: {
|
|
8762
|
+
$value: {
|
|
8763
|
+
value: 8,
|
|
8716
8764
|
unit: "px"
|
|
8717
8765
|
},
|
|
8718
8766
|
$type: "dimension"
|
|
8719
8767
|
},
|
|
8720
8768
|
blur: {
|
|
8721
8769
|
$value: {
|
|
8722
|
-
value:
|
|
8770
|
+
value: 16,
|
|
8723
8771
|
unit: "px"
|
|
8724
8772
|
},
|
|
8725
8773
|
$type: "dimension"
|
|
@@ -8732,12 +8780,12 @@ var shadow_strong_light_default = {
|
|
|
8732
8780
|
$type: "dimension"
|
|
8733
8781
|
},
|
|
8734
8782
|
color: {
|
|
8735
|
-
$value: "#
|
|
8783
|
+
$value: "#00000026",
|
|
8736
8784
|
$type: "color"
|
|
8737
8785
|
}
|
|
8738
8786
|
}
|
|
8739
8787
|
},
|
|
8740
|
-
|
|
8788
|
+
xl: {
|
|
8741
8789
|
"layer-1": {
|
|
8742
8790
|
x: {
|
|
8743
8791
|
$value: {
|
|
@@ -8768,7 +8816,7 @@ var shadow_strong_light_default = {
|
|
|
8768
8816
|
$type: "dimension"
|
|
8769
8817
|
},
|
|
8770
8818
|
color: {
|
|
8771
|
-
$value: "#
|
|
8819
|
+
$value: "#0000002e",
|
|
8772
8820
|
$type: "color"
|
|
8773
8821
|
}
|
|
8774
8822
|
},
|
|
@@ -8782,14 +8830,14 @@ var shadow_strong_light_default = {
|
|
|
8782
8830
|
},
|
|
8783
8831
|
y: {
|
|
8784
8832
|
$value: {
|
|
8785
|
-
value:
|
|
8833
|
+
value: 16,
|
|
8786
8834
|
unit: "px"
|
|
8787
8835
|
},
|
|
8788
8836
|
$type: "dimension"
|
|
8789
8837
|
},
|
|
8790
8838
|
blur: {
|
|
8791
8839
|
$value: {
|
|
8792
|
-
value:
|
|
8840
|
+
value: 24,
|
|
8793
8841
|
unit: "px"
|
|
8794
8842
|
},
|
|
8795
8843
|
$type: "dimension"
|
|
@@ -8802,12 +8850,12 @@ var shadow_strong_light_default = {
|
|
|
8802
8850
|
$type: "dimension"
|
|
8803
8851
|
},
|
|
8804
8852
|
color: {
|
|
8805
|
-
$value: "#
|
|
8853
|
+
$value: "#0000002e",
|
|
8806
8854
|
$type: "color"
|
|
8807
8855
|
}
|
|
8808
8856
|
}
|
|
8809
8857
|
},
|
|
8810
|
-
|
|
8858
|
+
"2xl": {
|
|
8811
8859
|
"layer-1": {
|
|
8812
8860
|
x: {
|
|
8813
8861
|
$value: {
|
|
@@ -8838,11 +8886,13 @@ var shadow_strong_light_default = {
|
|
|
8838
8886
|
$type: "dimension"
|
|
8839
8887
|
},
|
|
8840
8888
|
color: {
|
|
8841
|
-
$value: "#
|
|
8889
|
+
$value: "#0000004d",
|
|
8842
8890
|
$type: "color"
|
|
8843
8891
|
}
|
|
8844
|
-
}
|
|
8845
|
-
|
|
8892
|
+
}
|
|
8893
|
+
},
|
|
8894
|
+
inner: {
|
|
8895
|
+
"layer-1": {
|
|
8846
8896
|
x: {
|
|
8847
8897
|
$value: {
|
|
8848
8898
|
value: 0,
|
|
@@ -8852,171 +8902,363 @@ var shadow_strong_light_default = {
|
|
|
8852
8902
|
},
|
|
8853
8903
|
y: {
|
|
8854
8904
|
$value: {
|
|
8855
|
-
value:
|
|
8905
|
+
value: 2,
|
|
8856
8906
|
unit: "px"
|
|
8857
8907
|
},
|
|
8858
8908
|
$type: "dimension"
|
|
8859
8909
|
},
|
|
8860
8910
|
blur: {
|
|
8861
8911
|
$value: {
|
|
8862
|
-
value:
|
|
8912
|
+
value: 6,
|
|
8863
8913
|
unit: "px"
|
|
8864
8914
|
},
|
|
8865
8915
|
$type: "dimension"
|
|
8866
8916
|
},
|
|
8867
8917
|
spread: {
|
|
8868
8918
|
$value: {
|
|
8869
|
-
value:
|
|
8919
|
+
value: 0,
|
|
8870
8920
|
unit: "px"
|
|
8871
8921
|
},
|
|
8872
8922
|
$type: "dimension"
|
|
8873
8923
|
},
|
|
8874
8924
|
color: {
|
|
8875
|
-
$value: "#
|
|
8925
|
+
$value: "#00000014",
|
|
8876
8926
|
$type: "color"
|
|
8877
8927
|
}
|
|
8878
8928
|
}
|
|
8929
|
+
}
|
|
8930
|
+
};
|
|
8931
|
+
|
|
8932
|
+
// tokens/primitives/typography/typography-default.json
|
|
8933
|
+
var typography_default_default = {
|
|
8934
|
+
family: {
|
|
8935
|
+
"font-sans": {
|
|
8936
|
+
$value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
8937
|
+
$type: "fontFamily",
|
|
8938
|
+
$extensions: {
|
|
8939
|
+
"nx-font-source": {
|
|
8940
|
+
type: "system"
|
|
8941
|
+
}
|
|
8942
|
+
}
|
|
8943
|
+
},
|
|
8944
|
+
"font-heading": {
|
|
8945
|
+
$value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
8946
|
+
$type: "fontFamily",
|
|
8947
|
+
$extensions: {
|
|
8948
|
+
"nx-font-source": {
|
|
8949
|
+
type: "system"
|
|
8950
|
+
}
|
|
8951
|
+
}
|
|
8952
|
+
},
|
|
8953
|
+
"font-serif": {
|
|
8954
|
+
$value: "Georgia",
|
|
8955
|
+
$type: "fontFamily",
|
|
8956
|
+
$extensions: {
|
|
8957
|
+
"nx-font-source": {
|
|
8958
|
+
type: "system"
|
|
8959
|
+
}
|
|
8960
|
+
}
|
|
8961
|
+
},
|
|
8962
|
+
"font-mono": {
|
|
8963
|
+
$value: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
|
|
8964
|
+
$type: "fontFamily",
|
|
8965
|
+
$extensions: {
|
|
8966
|
+
"nx-font-source": {
|
|
8967
|
+
type: "system"
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8970
|
+
}
|
|
8879
8971
|
},
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8972
|
+
size: {
|
|
8973
|
+
xxs: {
|
|
8974
|
+
$value: {
|
|
8975
|
+
value: 11,
|
|
8976
|
+
unit: "px"
|
|
8977
|
+
},
|
|
8978
|
+
$type: "dimension"
|
|
8979
|
+
},
|
|
8980
|
+
xs: {
|
|
8981
|
+
$value: {
|
|
8982
|
+
value: 12,
|
|
8983
|
+
unit: "px"
|
|
8984
|
+
},
|
|
8985
|
+
$type: "dimension"
|
|
8986
|
+
},
|
|
8987
|
+
sm: {
|
|
8988
|
+
$value: {
|
|
8989
|
+
value: 14,
|
|
8990
|
+
unit: "px"
|
|
8991
|
+
},
|
|
8992
|
+
$type: "dimension"
|
|
8993
|
+
},
|
|
8994
|
+
base: {
|
|
8995
|
+
$value: {
|
|
8996
|
+
value: 16,
|
|
8997
|
+
unit: "px"
|
|
8998
|
+
},
|
|
8999
|
+
$type: "dimension"
|
|
9000
|
+
},
|
|
9001
|
+
lg: {
|
|
9002
|
+
$value: {
|
|
9003
|
+
value: 18,
|
|
9004
|
+
unit: "px"
|
|
9005
|
+
},
|
|
9006
|
+
$type: "dimension"
|
|
9007
|
+
},
|
|
9008
|
+
xl: {
|
|
9009
|
+
$value: {
|
|
9010
|
+
value: 20,
|
|
9011
|
+
unit: "px"
|
|
9012
|
+
},
|
|
9013
|
+
$type: "dimension"
|
|
9014
|
+
},
|
|
9015
|
+
"2xl": {
|
|
9016
|
+
$value: {
|
|
9017
|
+
value: 24,
|
|
9018
|
+
unit: "px"
|
|
9019
|
+
},
|
|
9020
|
+
$type: "dimension"
|
|
9021
|
+
},
|
|
9022
|
+
"3xl": {
|
|
9023
|
+
$value: {
|
|
9024
|
+
value: 30,
|
|
9025
|
+
unit: "px"
|
|
9026
|
+
},
|
|
9027
|
+
$type: "dimension"
|
|
9028
|
+
},
|
|
9029
|
+
"4xl": {
|
|
9030
|
+
$value: {
|
|
9031
|
+
value: 36,
|
|
9032
|
+
unit: "px"
|
|
9033
|
+
},
|
|
9034
|
+
$type: "dimension"
|
|
9035
|
+
},
|
|
9036
|
+
"5xl": {
|
|
9037
|
+
$value: {
|
|
9038
|
+
value: 48,
|
|
9039
|
+
unit: "px"
|
|
9040
|
+
},
|
|
9041
|
+
$type: "dimension"
|
|
9042
|
+
},
|
|
9043
|
+
"6xl": {
|
|
9044
|
+
$value: {
|
|
9045
|
+
value: 60,
|
|
9046
|
+
unit: "px"
|
|
9047
|
+
},
|
|
9048
|
+
$type: "dimension"
|
|
9049
|
+
},
|
|
9050
|
+
"7xl": {
|
|
9051
|
+
$value: {
|
|
9052
|
+
value: 72,
|
|
9053
|
+
unit: "px"
|
|
9054
|
+
},
|
|
9055
|
+
$type: "dimension"
|
|
9056
|
+
},
|
|
9057
|
+
"8xl": {
|
|
9058
|
+
$value: {
|
|
9059
|
+
value: 96,
|
|
9060
|
+
unit: "px"
|
|
9061
|
+
},
|
|
9062
|
+
$type: "dimension"
|
|
9063
|
+
},
|
|
9064
|
+
"9xl": {
|
|
9065
|
+
$value: {
|
|
9066
|
+
value: 128,
|
|
9067
|
+
unit: "px"
|
|
9068
|
+
},
|
|
9069
|
+
$type: "dimension"
|
|
9070
|
+
}
|
|
9071
|
+
},
|
|
9072
|
+
weight: {
|
|
9073
|
+
thin: {
|
|
9074
|
+
$value: 100,
|
|
9075
|
+
$type: "fontWeight"
|
|
9076
|
+
},
|
|
9077
|
+
extralight: {
|
|
9078
|
+
$value: 200,
|
|
9079
|
+
$type: "fontWeight"
|
|
9080
|
+
},
|
|
9081
|
+
light: {
|
|
9082
|
+
$value: 300,
|
|
9083
|
+
$type: "fontWeight"
|
|
9084
|
+
},
|
|
9085
|
+
normal: {
|
|
9086
|
+
$value: 400,
|
|
9087
|
+
$type: "fontWeight"
|
|
9088
|
+
},
|
|
9089
|
+
medium: {
|
|
9090
|
+
$value: 500,
|
|
9091
|
+
$type: "fontWeight"
|
|
9092
|
+
},
|
|
9093
|
+
semibold: {
|
|
9094
|
+
$value: 600,
|
|
9095
|
+
$type: "fontWeight"
|
|
9096
|
+
},
|
|
9097
|
+
bold: {
|
|
9098
|
+
$value: 700,
|
|
9099
|
+
$type: "fontWeight"
|
|
9100
|
+
},
|
|
9101
|
+
extrabold: {
|
|
9102
|
+
$value: 800,
|
|
9103
|
+
$type: "fontWeight"
|
|
9104
|
+
},
|
|
9105
|
+
black: {
|
|
9106
|
+
$value: 900,
|
|
9107
|
+
$type: "fontWeight"
|
|
9108
|
+
}
|
|
9109
|
+
},
|
|
9110
|
+
"line-height": {
|
|
9111
|
+
xxs: {
|
|
9112
|
+
$value: {
|
|
9113
|
+
value: 12,
|
|
9114
|
+
unit: "px"
|
|
9115
|
+
},
|
|
9116
|
+
$type: "dimension"
|
|
9117
|
+
},
|
|
9118
|
+
xs: {
|
|
9119
|
+
$value: {
|
|
9120
|
+
value: 16,
|
|
9121
|
+
unit: "px"
|
|
9122
|
+
},
|
|
9123
|
+
$type: "dimension"
|
|
9124
|
+
},
|
|
9125
|
+
sm: {
|
|
9126
|
+
$value: {
|
|
9127
|
+
value: 20,
|
|
9128
|
+
unit: "px"
|
|
9129
|
+
},
|
|
9130
|
+
$type: "dimension"
|
|
9131
|
+
},
|
|
9132
|
+
base: {
|
|
9133
|
+
$value: {
|
|
9134
|
+
value: 24,
|
|
9135
|
+
unit: "px"
|
|
9136
|
+
},
|
|
9137
|
+
$type: "dimension"
|
|
9138
|
+
},
|
|
9139
|
+
lg: {
|
|
9140
|
+
$value: {
|
|
9141
|
+
value: 28,
|
|
9142
|
+
unit: "px"
|
|
9143
|
+
},
|
|
9144
|
+
$type: "dimension"
|
|
9145
|
+
},
|
|
9146
|
+
xl: {
|
|
9147
|
+
$value: {
|
|
9148
|
+
value: 28,
|
|
9149
|
+
unit: "px"
|
|
8888
9150
|
},
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
9151
|
+
$type: "dimension"
|
|
9152
|
+
},
|
|
9153
|
+
"2xl": {
|
|
9154
|
+
$value: {
|
|
9155
|
+
value: 32,
|
|
9156
|
+
unit: "px"
|
|
8895
9157
|
},
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
9158
|
+
$type: "dimension"
|
|
9159
|
+
},
|
|
9160
|
+
"3xl": {
|
|
9161
|
+
$value: {
|
|
9162
|
+
value: 36,
|
|
9163
|
+
unit: "px"
|
|
8902
9164
|
},
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
9165
|
+
$type: "dimension"
|
|
9166
|
+
},
|
|
9167
|
+
"4xl": {
|
|
9168
|
+
$value: {
|
|
9169
|
+
value: 48,
|
|
9170
|
+
unit: "px"
|
|
8909
9171
|
},
|
|
8910
|
-
|
|
8911
|
-
$value: "#0000002e",
|
|
8912
|
-
$type: "color"
|
|
8913
|
-
}
|
|
9172
|
+
$type: "dimension"
|
|
8914
9173
|
},
|
|
8915
|
-
"
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
unit: "px"
|
|
8920
|
-
},
|
|
8921
|
-
$type: "dimension"
|
|
9174
|
+
"5xl": {
|
|
9175
|
+
$value: {
|
|
9176
|
+
value: 48,
|
|
9177
|
+
unit: "px"
|
|
8922
9178
|
},
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
9179
|
+
$type: "dimension"
|
|
9180
|
+
},
|
|
9181
|
+
"6xl": {
|
|
9182
|
+
$value: {
|
|
9183
|
+
value: 60,
|
|
9184
|
+
unit: "px"
|
|
8929
9185
|
},
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
9186
|
+
$type: "dimension"
|
|
9187
|
+
},
|
|
9188
|
+
"7xl": {
|
|
9189
|
+
$value: {
|
|
9190
|
+
value: 72,
|
|
9191
|
+
unit: "px"
|
|
8936
9192
|
},
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
9193
|
+
$type: "dimension"
|
|
9194
|
+
},
|
|
9195
|
+
"8xl": {
|
|
9196
|
+
$value: {
|
|
9197
|
+
value: 96,
|
|
9198
|
+
unit: "px"
|
|
8943
9199
|
},
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
9200
|
+
$type: "dimension"
|
|
9201
|
+
},
|
|
9202
|
+
"9xl": {
|
|
9203
|
+
$value: {
|
|
9204
|
+
value: 128,
|
|
9205
|
+
unit: "px"
|
|
9206
|
+
},
|
|
9207
|
+
$type: "dimension"
|
|
8948
9208
|
}
|
|
8949
9209
|
},
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
unit: "px"
|
|
8956
|
-
},
|
|
8957
|
-
$type: "dimension"
|
|
8958
|
-
},
|
|
8959
|
-
y: {
|
|
8960
|
-
$value: {
|
|
8961
|
-
value: 1,
|
|
8962
|
-
unit: "px"
|
|
8963
|
-
},
|
|
8964
|
-
$type: "dimension"
|
|
9210
|
+
letterspacing: {
|
|
9211
|
+
tighter: {
|
|
9212
|
+
$value: {
|
|
9213
|
+
value: -0.800000011920929,
|
|
9214
|
+
unit: "px"
|
|
8965
9215
|
},
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
9216
|
+
$type: "dimension"
|
|
9217
|
+
},
|
|
9218
|
+
tight: {
|
|
9219
|
+
$value: {
|
|
9220
|
+
value: -0.4000000059604645,
|
|
9221
|
+
unit: "px"
|
|
8972
9222
|
},
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
9223
|
+
$type: "dimension"
|
|
9224
|
+
},
|
|
9225
|
+
normal: {
|
|
9226
|
+
$value: {
|
|
9227
|
+
value: 0,
|
|
9228
|
+
unit: "px"
|
|
8979
9229
|
},
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
inner: {
|
|
8987
|
-
"layer-1": {
|
|
8988
|
-
x: {
|
|
8989
|
-
$value: {
|
|
8990
|
-
value: 0,
|
|
8991
|
-
unit: "px"
|
|
8992
|
-
},
|
|
8993
|
-
$type: "dimension"
|
|
9230
|
+
$type: "dimension"
|
|
9231
|
+
},
|
|
9232
|
+
wide: {
|
|
9233
|
+
$value: {
|
|
9234
|
+
value: 0.4000000059604645,
|
|
9235
|
+
unit: "px"
|
|
8994
9236
|
},
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9237
|
+
$type: "dimension"
|
|
9238
|
+
},
|
|
9239
|
+
wider: {
|
|
9240
|
+
$value: {
|
|
9241
|
+
value: 0.800000011920929,
|
|
9242
|
+
unit: "px"
|
|
9001
9243
|
},
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9244
|
+
$type: "dimension"
|
|
9245
|
+
},
|
|
9246
|
+
widest: {
|
|
9247
|
+
$value: {
|
|
9248
|
+
value: 1.600000023841858,
|
|
9249
|
+
unit: "px"
|
|
9008
9250
|
},
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9251
|
+
$type: "dimension"
|
|
9252
|
+
}
|
|
9253
|
+
},
|
|
9254
|
+
code: {
|
|
9255
|
+
size: {
|
|
9256
|
+
$value: {
|
|
9257
|
+
value: 12,
|
|
9258
|
+
unit: "px"
|
|
9015
9259
|
},
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
$type: "color"
|
|
9019
|
-
}
|
|
9260
|
+
$type: "dimension",
|
|
9261
|
+
$description: "Code text size. The code font size setting writes it, and the code text styles read it."
|
|
9020
9262
|
}
|
|
9021
9263
|
}
|
|
9022
9264
|
};
|
|
@@ -9092,189 +9334,189 @@ var spacing_comfortable_default = {
|
|
|
9092
9334
|
},
|
|
9093
9335
|
"3": {
|
|
9094
9336
|
$value: {
|
|
9095
|
-
value:
|
|
9337
|
+
value: 13,
|
|
9096
9338
|
unit: "px"
|
|
9097
9339
|
},
|
|
9098
9340
|
$type: "dimension"
|
|
9099
9341
|
},
|
|
9100
9342
|
"4": {
|
|
9101
9343
|
$value: {
|
|
9102
|
-
value:
|
|
9344
|
+
value: 17,
|
|
9103
9345
|
unit: "px"
|
|
9104
9346
|
},
|
|
9105
9347
|
$type: "dimension"
|
|
9106
9348
|
},
|
|
9107
9349
|
"5": {
|
|
9108
9350
|
$value: {
|
|
9109
|
-
value:
|
|
9351
|
+
value: 22,
|
|
9110
9352
|
unit: "px"
|
|
9111
9353
|
},
|
|
9112
9354
|
$type: "dimension"
|
|
9113
9355
|
},
|
|
9114
9356
|
"6": {
|
|
9115
9357
|
$value: {
|
|
9116
|
-
value:
|
|
9358
|
+
value: 26,
|
|
9117
9359
|
unit: "px"
|
|
9118
9360
|
},
|
|
9119
9361
|
$type: "dimension"
|
|
9120
9362
|
},
|
|
9121
9363
|
"7": {
|
|
9122
9364
|
$value: {
|
|
9123
|
-
value:
|
|
9365
|
+
value: 30,
|
|
9124
9366
|
unit: "px"
|
|
9125
9367
|
},
|
|
9126
9368
|
$type: "dimension"
|
|
9127
9369
|
},
|
|
9128
9370
|
"8": {
|
|
9129
9371
|
$value: {
|
|
9130
|
-
value:
|
|
9372
|
+
value: 34,
|
|
9131
9373
|
unit: "px"
|
|
9132
9374
|
},
|
|
9133
9375
|
$type: "dimension"
|
|
9134
9376
|
},
|
|
9135
9377
|
"9": {
|
|
9136
9378
|
$value: {
|
|
9137
|
-
value:
|
|
9379
|
+
value: 38,
|
|
9138
9380
|
unit: "px"
|
|
9139
9381
|
},
|
|
9140
9382
|
$type: "dimension"
|
|
9141
9383
|
},
|
|
9142
9384
|
"10": {
|
|
9143
9385
|
$value: {
|
|
9144
|
-
value:
|
|
9386
|
+
value: 42,
|
|
9145
9387
|
unit: "px"
|
|
9146
9388
|
},
|
|
9147
9389
|
$type: "dimension"
|
|
9148
9390
|
},
|
|
9149
9391
|
"11": {
|
|
9150
9392
|
$value: {
|
|
9151
|
-
value:
|
|
9393
|
+
value: 46,
|
|
9152
9394
|
unit: "px"
|
|
9153
9395
|
},
|
|
9154
9396
|
$type: "dimension"
|
|
9155
9397
|
},
|
|
9156
9398
|
"12": {
|
|
9157
9399
|
$value: {
|
|
9158
|
-
value:
|
|
9400
|
+
value: 50,
|
|
9159
9401
|
unit: "px"
|
|
9160
9402
|
},
|
|
9161
9403
|
$type: "dimension"
|
|
9162
9404
|
},
|
|
9163
9405
|
"14": {
|
|
9164
9406
|
$value: {
|
|
9165
|
-
value:
|
|
9407
|
+
value: 58,
|
|
9166
9408
|
unit: "px"
|
|
9167
9409
|
},
|
|
9168
9410
|
$type: "dimension"
|
|
9169
9411
|
},
|
|
9170
9412
|
"16": {
|
|
9171
9413
|
$value: {
|
|
9172
|
-
value:
|
|
9414
|
+
value: 66,
|
|
9173
9415
|
unit: "px"
|
|
9174
9416
|
},
|
|
9175
9417
|
$type: "dimension"
|
|
9176
9418
|
},
|
|
9177
9419
|
"20": {
|
|
9178
9420
|
$value: {
|
|
9179
|
-
value:
|
|
9421
|
+
value: 82,
|
|
9180
9422
|
unit: "px"
|
|
9181
9423
|
},
|
|
9182
9424
|
$type: "dimension"
|
|
9183
9425
|
},
|
|
9184
9426
|
"24": {
|
|
9185
9427
|
$value: {
|
|
9186
|
-
value:
|
|
9428
|
+
value: 98,
|
|
9187
9429
|
unit: "px"
|
|
9188
9430
|
},
|
|
9189
9431
|
$type: "dimension"
|
|
9190
9432
|
},
|
|
9191
9433
|
"28": {
|
|
9192
9434
|
$value: {
|
|
9193
|
-
value:
|
|
9435
|
+
value: 114,
|
|
9194
9436
|
unit: "px"
|
|
9195
9437
|
},
|
|
9196
9438
|
$type: "dimension"
|
|
9197
9439
|
},
|
|
9198
9440
|
"32": {
|
|
9199
9441
|
$value: {
|
|
9200
|
-
value:
|
|
9442
|
+
value: 130,
|
|
9201
9443
|
unit: "px"
|
|
9202
9444
|
},
|
|
9203
9445
|
$type: "dimension"
|
|
9204
9446
|
},
|
|
9205
9447
|
"36": {
|
|
9206
9448
|
$value: {
|
|
9207
|
-
value:
|
|
9449
|
+
value: 146,
|
|
9208
9450
|
unit: "px"
|
|
9209
9451
|
},
|
|
9210
9452
|
$type: "dimension"
|
|
9211
9453
|
},
|
|
9212
9454
|
"40": {
|
|
9213
9455
|
$value: {
|
|
9214
|
-
value:
|
|
9456
|
+
value: 162,
|
|
9215
9457
|
unit: "px"
|
|
9216
9458
|
},
|
|
9217
9459
|
$type: "dimension"
|
|
9218
9460
|
},
|
|
9219
9461
|
"44": {
|
|
9220
9462
|
$value: {
|
|
9221
|
-
value:
|
|
9463
|
+
value: 178,
|
|
9222
9464
|
unit: "px"
|
|
9223
9465
|
},
|
|
9224
9466
|
$type: "dimension"
|
|
9225
9467
|
},
|
|
9226
9468
|
"48": {
|
|
9227
9469
|
$value: {
|
|
9228
|
-
value:
|
|
9470
|
+
value: 194,
|
|
9229
9471
|
unit: "px"
|
|
9230
9472
|
},
|
|
9231
9473
|
$type: "dimension"
|
|
9232
9474
|
},
|
|
9233
9475
|
"52": {
|
|
9234
9476
|
$value: {
|
|
9235
|
-
value:
|
|
9477
|
+
value: 210,
|
|
9236
9478
|
unit: "px"
|
|
9237
9479
|
},
|
|
9238
9480
|
$type: "dimension"
|
|
9239
9481
|
},
|
|
9240
9482
|
"56": {
|
|
9241
9483
|
$value: {
|
|
9242
|
-
value:
|
|
9484
|
+
value: 226,
|
|
9243
9485
|
unit: "px"
|
|
9244
9486
|
},
|
|
9245
9487
|
$type: "dimension"
|
|
9246
9488
|
},
|
|
9247
9489
|
"60": {
|
|
9248
9490
|
$value: {
|
|
9249
|
-
value:
|
|
9491
|
+
value: 242,
|
|
9250
9492
|
unit: "px"
|
|
9251
9493
|
},
|
|
9252
9494
|
$type: "dimension"
|
|
9253
9495
|
},
|
|
9254
9496
|
"64": {
|
|
9255
9497
|
$value: {
|
|
9256
|
-
value:
|
|
9498
|
+
value: 258,
|
|
9257
9499
|
unit: "px"
|
|
9258
9500
|
},
|
|
9259
9501
|
$type: "dimension"
|
|
9260
9502
|
},
|
|
9261
9503
|
"72": {
|
|
9262
9504
|
$value: {
|
|
9263
|
-
value:
|
|
9505
|
+
value: 290,
|
|
9264
9506
|
unit: "px"
|
|
9265
9507
|
},
|
|
9266
9508
|
$type: "dimension"
|
|
9267
9509
|
},
|
|
9268
9510
|
"80": {
|
|
9269
9511
|
$value: {
|
|
9270
|
-
value:
|
|
9512
|
+
value: 322,
|
|
9271
9513
|
unit: "px"
|
|
9272
9514
|
},
|
|
9273
9515
|
$type: "dimension"
|
|
9274
9516
|
},
|
|
9275
9517
|
"96": {
|
|
9276
9518
|
$value: {
|
|
9277
|
-
value:
|
|
9519
|
+
value: 386,
|
|
9278
9520
|
unit: "px"
|
|
9279
9521
|
},
|
|
9280
9522
|
$type: "dimension"
|
|
@@ -9295,48 +9537,36 @@ var spacing_comfortable_default = {
|
|
|
9295
9537
|
},
|
|
9296
9538
|
"2_5": {
|
|
9297
9539
|
$value: {
|
|
9298
|
-
value:
|
|
9540
|
+
value: 11,
|
|
9299
9541
|
unit: "px"
|
|
9300
9542
|
},
|
|
9301
9543
|
$type: "dimension"
|
|
9302
9544
|
},
|
|
9303
9545
|
"3_5": {
|
|
9304
9546
|
$value: {
|
|
9305
|
-
value:
|
|
9547
|
+
value: 15,
|
|
9306
9548
|
unit: "px"
|
|
9307
9549
|
},
|
|
9308
9550
|
$type: "dimension"
|
|
9309
9551
|
}
|
|
9310
9552
|
},
|
|
9311
|
-
container: {
|
|
9312
|
-
p: {
|
|
9313
|
-
$value: {
|
|
9314
|
-
value: 28,
|
|
9315
|
-
unit: "px"
|
|
9316
|
-
},
|
|
9553
|
+
container: {
|
|
9554
|
+
p: {
|
|
9555
|
+
$value: "{spacing.6}",
|
|
9317
9556
|
$type: "dimension"
|
|
9318
9557
|
},
|
|
9319
9558
|
gap: {
|
|
9320
|
-
$value: {
|
|
9321
|
-
value: 20,
|
|
9322
|
-
unit: "px"
|
|
9323
|
-
},
|
|
9559
|
+
$value: "{spacing.4}",
|
|
9324
9560
|
$type: "dimension"
|
|
9325
9561
|
}
|
|
9326
9562
|
},
|
|
9327
9563
|
layout: {
|
|
9328
9564
|
"section-gap": {
|
|
9329
|
-
$value: {
|
|
9330
|
-
value: 40,
|
|
9331
|
-
unit: "px"
|
|
9332
|
-
},
|
|
9565
|
+
$value: "{spacing.8}",
|
|
9333
9566
|
$type: "dimension"
|
|
9334
9567
|
},
|
|
9335
9568
|
"stack-gap": {
|
|
9336
|
-
$value: {
|
|
9337
|
-
value: 10,
|
|
9338
|
-
unit: "px"
|
|
9339
|
-
},
|
|
9569
|
+
$value: "{spacing.2}",
|
|
9340
9570
|
$type: "dimension"
|
|
9341
9571
|
}
|
|
9342
9572
|
}
|
|
@@ -9368,21 +9598,21 @@ var spacing_compact_default = {
|
|
|
9368
9598
|
},
|
|
9369
9599
|
"3": {
|
|
9370
9600
|
$value: {
|
|
9371
|
-
value:
|
|
9601
|
+
value: 12,
|
|
9372
9602
|
unit: "px"
|
|
9373
9603
|
},
|
|
9374
9604
|
$type: "dimension"
|
|
9375
9605
|
},
|
|
9376
9606
|
"4": {
|
|
9377
9607
|
$value: {
|
|
9378
|
-
value:
|
|
9608
|
+
value: 15,
|
|
9379
9609
|
unit: "px"
|
|
9380
9610
|
},
|
|
9381
9611
|
$type: "dimension"
|
|
9382
9612
|
},
|
|
9383
9613
|
"5": {
|
|
9384
9614
|
$value: {
|
|
9385
|
-
value:
|
|
9615
|
+
value: 19,
|
|
9386
9616
|
unit: "px"
|
|
9387
9617
|
},
|
|
9388
9618
|
$type: "dimension"
|
|
@@ -9438,119 +9668,119 @@ var spacing_compact_default = {
|
|
|
9438
9668
|
},
|
|
9439
9669
|
"14": {
|
|
9440
9670
|
$value: {
|
|
9441
|
-
value:
|
|
9671
|
+
value: 54,
|
|
9442
9672
|
unit: "px"
|
|
9443
9673
|
},
|
|
9444
9674
|
$type: "dimension"
|
|
9445
9675
|
},
|
|
9446
9676
|
"16": {
|
|
9447
9677
|
$value: {
|
|
9448
|
-
value:
|
|
9678
|
+
value: 62,
|
|
9449
9679
|
unit: "px"
|
|
9450
9680
|
},
|
|
9451
9681
|
$type: "dimension"
|
|
9452
9682
|
},
|
|
9453
9683
|
"20": {
|
|
9454
9684
|
$value: {
|
|
9455
|
-
value:
|
|
9685
|
+
value: 78,
|
|
9456
9686
|
unit: "px"
|
|
9457
9687
|
},
|
|
9458
9688
|
$type: "dimension"
|
|
9459
9689
|
},
|
|
9460
9690
|
"24": {
|
|
9461
9691
|
$value: {
|
|
9462
|
-
value:
|
|
9692
|
+
value: 94,
|
|
9463
9693
|
unit: "px"
|
|
9464
9694
|
},
|
|
9465
9695
|
$type: "dimension"
|
|
9466
9696
|
},
|
|
9467
9697
|
"28": {
|
|
9468
9698
|
$value: {
|
|
9469
|
-
value:
|
|
9699
|
+
value: 110,
|
|
9470
9700
|
unit: "px"
|
|
9471
9701
|
},
|
|
9472
9702
|
$type: "dimension"
|
|
9473
9703
|
},
|
|
9474
9704
|
"32": {
|
|
9475
9705
|
$value: {
|
|
9476
|
-
value:
|
|
9706
|
+
value: 126,
|
|
9477
9707
|
unit: "px"
|
|
9478
9708
|
},
|
|
9479
9709
|
$type: "dimension"
|
|
9480
9710
|
},
|
|
9481
9711
|
"36": {
|
|
9482
9712
|
$value: {
|
|
9483
|
-
value:
|
|
9713
|
+
value: 142,
|
|
9484
9714
|
unit: "px"
|
|
9485
9715
|
},
|
|
9486
9716
|
$type: "dimension"
|
|
9487
9717
|
},
|
|
9488
9718
|
"40": {
|
|
9489
9719
|
$value: {
|
|
9490
|
-
value:
|
|
9720
|
+
value: 158,
|
|
9491
9721
|
unit: "px"
|
|
9492
9722
|
},
|
|
9493
9723
|
$type: "dimension"
|
|
9494
9724
|
},
|
|
9495
9725
|
"44": {
|
|
9496
9726
|
$value: {
|
|
9497
|
-
value:
|
|
9727
|
+
value: 174,
|
|
9498
9728
|
unit: "px"
|
|
9499
9729
|
},
|
|
9500
9730
|
$type: "dimension"
|
|
9501
9731
|
},
|
|
9502
9732
|
"48": {
|
|
9503
9733
|
$value: {
|
|
9504
|
-
value:
|
|
9734
|
+
value: 190,
|
|
9505
9735
|
unit: "px"
|
|
9506
9736
|
},
|
|
9507
9737
|
$type: "dimension"
|
|
9508
9738
|
},
|
|
9509
9739
|
"52": {
|
|
9510
9740
|
$value: {
|
|
9511
|
-
value:
|
|
9741
|
+
value: 206,
|
|
9512
9742
|
unit: "px"
|
|
9513
9743
|
},
|
|
9514
9744
|
$type: "dimension"
|
|
9515
9745
|
},
|
|
9516
9746
|
"56": {
|
|
9517
9747
|
$value: {
|
|
9518
|
-
value:
|
|
9748
|
+
value: 222,
|
|
9519
9749
|
unit: "px"
|
|
9520
9750
|
},
|
|
9521
9751
|
$type: "dimension"
|
|
9522
9752
|
},
|
|
9523
9753
|
"60": {
|
|
9524
9754
|
$value: {
|
|
9525
|
-
value:
|
|
9755
|
+
value: 238,
|
|
9526
9756
|
unit: "px"
|
|
9527
9757
|
},
|
|
9528
9758
|
$type: "dimension"
|
|
9529
9759
|
},
|
|
9530
9760
|
"64": {
|
|
9531
9761
|
$value: {
|
|
9532
|
-
value:
|
|
9762
|
+
value: 254,
|
|
9533
9763
|
unit: "px"
|
|
9534
9764
|
},
|
|
9535
9765
|
$type: "dimension"
|
|
9536
9766
|
},
|
|
9537
9767
|
"72": {
|
|
9538
9768
|
$value: {
|
|
9539
|
-
value:
|
|
9769
|
+
value: 286,
|
|
9540
9770
|
unit: "px"
|
|
9541
9771
|
},
|
|
9542
9772
|
$type: "dimension"
|
|
9543
9773
|
},
|
|
9544
9774
|
"80": {
|
|
9545
9775
|
$value: {
|
|
9546
|
-
value:
|
|
9776
|
+
value: 318,
|
|
9547
9777
|
unit: "px"
|
|
9548
9778
|
},
|
|
9549
9779
|
$type: "dimension"
|
|
9550
9780
|
},
|
|
9551
9781
|
"96": {
|
|
9552
9782
|
$value: {
|
|
9553
|
-
value:
|
|
9783
|
+
value: 382,
|
|
9554
9784
|
unit: "px"
|
|
9555
9785
|
},
|
|
9556
9786
|
$type: "dimension"
|
|
@@ -9571,14 +9801,14 @@ var spacing_compact_default = {
|
|
|
9571
9801
|
},
|
|
9572
9802
|
"2_5": {
|
|
9573
9803
|
$value: {
|
|
9574
|
-
value:
|
|
9804
|
+
value: 10,
|
|
9575
9805
|
unit: "px"
|
|
9576
9806
|
},
|
|
9577
9807
|
$type: "dimension"
|
|
9578
9808
|
},
|
|
9579
9809
|
"3_5": {
|
|
9580
9810
|
$value: {
|
|
9581
|
-
value:
|
|
9811
|
+
value: 14,
|
|
9582
9812
|
unit: "px"
|
|
9583
9813
|
},
|
|
9584
9814
|
$type: "dimension"
|
|
@@ -9586,33 +9816,21 @@ var spacing_compact_default = {
|
|
|
9586
9816
|
},
|
|
9587
9817
|
container: {
|
|
9588
9818
|
p: {
|
|
9589
|
-
$value: {
|
|
9590
|
-
value: 20,
|
|
9591
|
-
unit: "px"
|
|
9592
|
-
},
|
|
9819
|
+
$value: "{spacing.6}",
|
|
9593
9820
|
$type: "dimension"
|
|
9594
9821
|
},
|
|
9595
9822
|
gap: {
|
|
9596
|
-
$value: {
|
|
9597
|
-
value: 12,
|
|
9598
|
-
unit: "px"
|
|
9599
|
-
},
|
|
9823
|
+
$value: "{spacing.4}",
|
|
9600
9824
|
$type: "dimension"
|
|
9601
9825
|
}
|
|
9602
9826
|
},
|
|
9603
9827
|
layout: {
|
|
9604
9828
|
"section-gap": {
|
|
9605
|
-
$value: {
|
|
9606
|
-
value: 28,
|
|
9607
|
-
unit: "px"
|
|
9608
|
-
},
|
|
9829
|
+
$value: "{spacing.8}",
|
|
9609
9830
|
$type: "dimension"
|
|
9610
9831
|
},
|
|
9611
9832
|
"stack-gap": {
|
|
9612
|
-
$value: {
|
|
9613
|
-
value: 6,
|
|
9614
|
-
unit: "px"
|
|
9615
|
-
},
|
|
9833
|
+
$value: "{spacing.2}",
|
|
9616
9834
|
$type: "dimension"
|
|
9617
9835
|
}
|
|
9618
9836
|
}
|
|
@@ -9862,33 +10080,21 @@ var spacing_default_default = {
|
|
|
9862
10080
|
},
|
|
9863
10081
|
container: {
|
|
9864
10082
|
p: {
|
|
9865
|
-
$value: {
|
|
9866
|
-
value: 24,
|
|
9867
|
-
unit: "px"
|
|
9868
|
-
},
|
|
10083
|
+
$value: "{spacing.6}",
|
|
9869
10084
|
$type: "dimension"
|
|
9870
10085
|
},
|
|
9871
10086
|
gap: {
|
|
9872
|
-
$value: {
|
|
9873
|
-
value: 16,
|
|
9874
|
-
unit: "px"
|
|
9875
|
-
},
|
|
10087
|
+
$value: "{spacing.4}",
|
|
9876
10088
|
$type: "dimension"
|
|
9877
10089
|
}
|
|
9878
10090
|
},
|
|
9879
10091
|
layout: {
|
|
9880
10092
|
"section-gap": {
|
|
9881
|
-
$value: {
|
|
9882
|
-
value: 32,
|
|
9883
|
-
unit: "px"
|
|
9884
|
-
},
|
|
10093
|
+
$value: "{spacing.8}",
|
|
9885
10094
|
$type: "dimension"
|
|
9886
10095
|
},
|
|
9887
10096
|
"stack-gap": {
|
|
9888
|
-
$value: {
|
|
9889
|
-
value: 8,
|
|
9890
|
-
unit: "px"
|
|
9891
|
-
},
|
|
10097
|
+
$value: "{spacing.2}",
|
|
9892
10098
|
$type: "dimension"
|
|
9893
10099
|
}
|
|
9894
10100
|
}
|
|
@@ -9920,7 +10126,7 @@ var spacing_relaxed_default = {
|
|
|
9920
10126
|
},
|
|
9921
10127
|
"3": {
|
|
9922
10128
|
$value: {
|
|
9923
|
-
value:
|
|
10129
|
+
value: 13,
|
|
9924
10130
|
unit: "px"
|
|
9925
10131
|
},
|
|
9926
10132
|
$type: "dimension"
|
|
@@ -9934,7 +10140,7 @@ var spacing_relaxed_default = {
|
|
|
9934
10140
|
},
|
|
9935
10141
|
"5": {
|
|
9936
10142
|
$value: {
|
|
9937
|
-
value:
|
|
10143
|
+
value: 23,
|
|
9938
10144
|
unit: "px"
|
|
9939
10145
|
},
|
|
9940
10146
|
$type: "dimension"
|
|
@@ -10138,33 +10344,21 @@ var spacing_relaxed_default = {
|
|
|
10138
10344
|
},
|
|
10139
10345
|
container: {
|
|
10140
10346
|
p: {
|
|
10141
|
-
$value: {
|
|
10142
|
-
value: 28,
|
|
10143
|
-
unit: "px"
|
|
10144
|
-
},
|
|
10347
|
+
$value: "{spacing.6}",
|
|
10145
10348
|
$type: "dimension"
|
|
10146
10349
|
},
|
|
10147
10350
|
gap: {
|
|
10148
|
-
$value: {
|
|
10149
|
-
value: 20,
|
|
10150
|
-
unit: "px"
|
|
10151
|
-
},
|
|
10351
|
+
$value: "{spacing.4}",
|
|
10152
10352
|
$type: "dimension"
|
|
10153
10353
|
}
|
|
10154
10354
|
},
|
|
10155
10355
|
layout: {
|
|
10156
10356
|
"section-gap": {
|
|
10157
|
-
$value: {
|
|
10158
|
-
value: 40,
|
|
10159
|
-
unit: "px"
|
|
10160
|
-
},
|
|
10357
|
+
$value: "{spacing.8}",
|
|
10161
10358
|
$type: "dimension"
|
|
10162
10359
|
},
|
|
10163
10360
|
"stack-gap": {
|
|
10164
|
-
$value: {
|
|
10165
|
-
value: 10,
|
|
10166
|
-
unit: "px"
|
|
10167
|
-
},
|
|
10361
|
+
$value: "{spacing.2}",
|
|
10168
10362
|
$type: "dimension"
|
|
10169
10363
|
}
|
|
10170
10364
|
}
|
|
@@ -10196,189 +10390,189 @@ var spacing_spacious_default = {
|
|
|
10196
10390
|
},
|
|
10197
10391
|
"3": {
|
|
10198
10392
|
$value: {
|
|
10199
|
-
value:
|
|
10393
|
+
value: 14,
|
|
10200
10394
|
unit: "px"
|
|
10201
10395
|
},
|
|
10202
10396
|
$type: "dimension"
|
|
10203
10397
|
},
|
|
10204
10398
|
"4": {
|
|
10205
10399
|
$value: {
|
|
10206
|
-
value:
|
|
10400
|
+
value: 19,
|
|
10207
10401
|
unit: "px"
|
|
10208
10402
|
},
|
|
10209
10403
|
$type: "dimension"
|
|
10210
10404
|
},
|
|
10211
10405
|
"5": {
|
|
10212
10406
|
$value: {
|
|
10213
|
-
value:
|
|
10407
|
+
value: 25,
|
|
10214
10408
|
unit: "px"
|
|
10215
10409
|
},
|
|
10216
10410
|
$type: "dimension"
|
|
10217
10411
|
},
|
|
10218
10412
|
"6": {
|
|
10219
10413
|
$value: {
|
|
10220
|
-
value:
|
|
10414
|
+
value: 30,
|
|
10221
10415
|
unit: "px"
|
|
10222
10416
|
},
|
|
10223
10417
|
$type: "dimension"
|
|
10224
10418
|
},
|
|
10225
10419
|
"7": {
|
|
10226
10420
|
$value: {
|
|
10227
|
-
value:
|
|
10421
|
+
value: 34,
|
|
10228
10422
|
unit: "px"
|
|
10229
10423
|
},
|
|
10230
10424
|
$type: "dimension"
|
|
10231
10425
|
},
|
|
10232
10426
|
"8": {
|
|
10233
10427
|
$value: {
|
|
10234
|
-
value:
|
|
10428
|
+
value: 38,
|
|
10235
10429
|
unit: "px"
|
|
10236
10430
|
},
|
|
10237
10431
|
$type: "dimension"
|
|
10238
10432
|
},
|
|
10239
10433
|
"9": {
|
|
10240
10434
|
$value: {
|
|
10241
|
-
value:
|
|
10435
|
+
value: 42,
|
|
10242
10436
|
unit: "px"
|
|
10243
10437
|
},
|
|
10244
10438
|
$type: "dimension"
|
|
10245
10439
|
},
|
|
10246
10440
|
"10": {
|
|
10247
10441
|
$value: {
|
|
10248
|
-
value:
|
|
10442
|
+
value: 46,
|
|
10249
10443
|
unit: "px"
|
|
10250
10444
|
},
|
|
10251
10445
|
$type: "dimension"
|
|
10252
10446
|
},
|
|
10253
10447
|
"11": {
|
|
10254
10448
|
$value: {
|
|
10255
|
-
value:
|
|
10449
|
+
value: 50,
|
|
10256
10450
|
unit: "px"
|
|
10257
10451
|
},
|
|
10258
10452
|
$type: "dimension"
|
|
10259
10453
|
},
|
|
10260
10454
|
"12": {
|
|
10261
10455
|
$value: {
|
|
10262
|
-
value:
|
|
10456
|
+
value: 54,
|
|
10263
10457
|
unit: "px"
|
|
10264
10458
|
},
|
|
10265
10459
|
$type: "dimension"
|
|
10266
10460
|
},
|
|
10267
10461
|
"14": {
|
|
10268
10462
|
$value: {
|
|
10269
|
-
value:
|
|
10463
|
+
value: 62,
|
|
10270
10464
|
unit: "px"
|
|
10271
10465
|
},
|
|
10272
10466
|
$type: "dimension"
|
|
10273
10467
|
},
|
|
10274
10468
|
"16": {
|
|
10275
10469
|
$value: {
|
|
10276
|
-
value:
|
|
10470
|
+
value: 70,
|
|
10277
10471
|
unit: "px"
|
|
10278
10472
|
},
|
|
10279
10473
|
$type: "dimension"
|
|
10280
10474
|
},
|
|
10281
10475
|
"20": {
|
|
10282
10476
|
$value: {
|
|
10283
|
-
value:
|
|
10477
|
+
value: 86,
|
|
10284
10478
|
unit: "px"
|
|
10285
10479
|
},
|
|
10286
10480
|
$type: "dimension"
|
|
10287
10481
|
},
|
|
10288
10482
|
"24": {
|
|
10289
10483
|
$value: {
|
|
10290
|
-
value:
|
|
10484
|
+
value: 102,
|
|
10291
10485
|
unit: "px"
|
|
10292
10486
|
},
|
|
10293
10487
|
$type: "dimension"
|
|
10294
10488
|
},
|
|
10295
10489
|
"28": {
|
|
10296
10490
|
$value: {
|
|
10297
|
-
value:
|
|
10491
|
+
value: 118,
|
|
10298
10492
|
unit: "px"
|
|
10299
10493
|
},
|
|
10300
10494
|
$type: "dimension"
|
|
10301
10495
|
},
|
|
10302
10496
|
"32": {
|
|
10303
10497
|
$value: {
|
|
10304
|
-
value:
|
|
10498
|
+
value: 134,
|
|
10305
10499
|
unit: "px"
|
|
10306
10500
|
},
|
|
10307
10501
|
$type: "dimension"
|
|
10308
10502
|
},
|
|
10309
10503
|
"36": {
|
|
10310
10504
|
$value: {
|
|
10311
|
-
value:
|
|
10505
|
+
value: 150,
|
|
10312
10506
|
unit: "px"
|
|
10313
10507
|
},
|
|
10314
10508
|
$type: "dimension"
|
|
10315
10509
|
},
|
|
10316
10510
|
"40": {
|
|
10317
10511
|
$value: {
|
|
10318
|
-
value:
|
|
10512
|
+
value: 166,
|
|
10319
10513
|
unit: "px"
|
|
10320
10514
|
},
|
|
10321
10515
|
$type: "dimension"
|
|
10322
10516
|
},
|
|
10323
10517
|
"44": {
|
|
10324
10518
|
$value: {
|
|
10325
|
-
value:
|
|
10519
|
+
value: 182,
|
|
10326
10520
|
unit: "px"
|
|
10327
10521
|
},
|
|
10328
10522
|
$type: "dimension"
|
|
10329
10523
|
},
|
|
10330
10524
|
"48": {
|
|
10331
10525
|
$value: {
|
|
10332
|
-
value:
|
|
10526
|
+
value: 198,
|
|
10333
10527
|
unit: "px"
|
|
10334
10528
|
},
|
|
10335
10529
|
$type: "dimension"
|
|
10336
10530
|
},
|
|
10337
10531
|
"52": {
|
|
10338
10532
|
$value: {
|
|
10339
|
-
value:
|
|
10533
|
+
value: 214,
|
|
10340
10534
|
unit: "px"
|
|
10341
10535
|
},
|
|
10342
10536
|
$type: "dimension"
|
|
10343
10537
|
},
|
|
10344
10538
|
"56": {
|
|
10345
10539
|
$value: {
|
|
10346
|
-
value:
|
|
10540
|
+
value: 230,
|
|
10347
10541
|
unit: "px"
|
|
10348
10542
|
},
|
|
10349
10543
|
$type: "dimension"
|
|
10350
10544
|
},
|
|
10351
10545
|
"60": {
|
|
10352
10546
|
$value: {
|
|
10353
|
-
value:
|
|
10547
|
+
value: 246,
|
|
10354
10548
|
unit: "px"
|
|
10355
10549
|
},
|
|
10356
10550
|
$type: "dimension"
|
|
10357
10551
|
},
|
|
10358
10552
|
"64": {
|
|
10359
10553
|
$value: {
|
|
10360
|
-
value:
|
|
10554
|
+
value: 262,
|
|
10361
10555
|
unit: "px"
|
|
10362
10556
|
},
|
|
10363
10557
|
$type: "dimension"
|
|
10364
10558
|
},
|
|
10365
10559
|
"72": {
|
|
10366
10560
|
$value: {
|
|
10367
|
-
value:
|
|
10561
|
+
value: 294,
|
|
10368
10562
|
unit: "px"
|
|
10369
10563
|
},
|
|
10370
10564
|
$type: "dimension"
|
|
10371
10565
|
},
|
|
10372
10566
|
"80": {
|
|
10373
10567
|
$value: {
|
|
10374
|
-
value:
|
|
10568
|
+
value: 326,
|
|
10375
10569
|
unit: "px"
|
|
10376
10570
|
},
|
|
10377
10571
|
$type: "dimension"
|
|
10378
10572
|
},
|
|
10379
10573
|
"96": {
|
|
10380
10574
|
$value: {
|
|
10381
|
-
value:
|
|
10575
|
+
value: 390,
|
|
10382
10576
|
unit: "px"
|
|
10383
10577
|
},
|
|
10384
10578
|
$type: "dimension"
|
|
@@ -10399,14 +10593,14 @@ var spacing_spacious_default = {
|
|
|
10399
10593
|
},
|
|
10400
10594
|
"2_5": {
|
|
10401
10595
|
$value: {
|
|
10402
|
-
value:
|
|
10596
|
+
value: 11,
|
|
10403
10597
|
unit: "px"
|
|
10404
10598
|
},
|
|
10405
10599
|
$type: "dimension"
|
|
10406
10600
|
},
|
|
10407
10601
|
"3_5": {
|
|
10408
10602
|
$value: {
|
|
10409
|
-
value:
|
|
10603
|
+
value: 17,
|
|
10410
10604
|
unit: "px"
|
|
10411
10605
|
},
|
|
10412
10606
|
$type: "dimension"
|
|
@@ -10414,33 +10608,21 @@ var spacing_spacious_default = {
|
|
|
10414
10608
|
},
|
|
10415
10609
|
container: {
|
|
10416
10610
|
p: {
|
|
10417
|
-
$value: {
|
|
10418
|
-
value: 40,
|
|
10419
|
-
unit: "px"
|
|
10420
|
-
},
|
|
10611
|
+
$value: "{spacing.6}",
|
|
10421
10612
|
$type: "dimension"
|
|
10422
10613
|
},
|
|
10423
10614
|
gap: {
|
|
10424
|
-
$value: {
|
|
10425
|
-
value: 24,
|
|
10426
|
-
unit: "px"
|
|
10427
|
-
},
|
|
10615
|
+
$value: "{spacing.4}",
|
|
10428
10616
|
$type: "dimension"
|
|
10429
10617
|
}
|
|
10430
10618
|
},
|
|
10431
10619
|
layout: {
|
|
10432
10620
|
"section-gap": {
|
|
10433
|
-
$value: {
|
|
10434
|
-
value: 56,
|
|
10435
|
-
unit: "px"
|
|
10436
|
-
},
|
|
10621
|
+
$value: "{spacing.8}",
|
|
10437
10622
|
$type: "dimension"
|
|
10438
10623
|
},
|
|
10439
10624
|
"stack-gap": {
|
|
10440
|
-
$value: {
|
|
10441
|
-
value: 16,
|
|
10442
|
-
unit: "px"
|
|
10443
|
-
},
|
|
10625
|
+
$value: "{spacing.2}",
|
|
10444
10626
|
$type: "dimension"
|
|
10445
10627
|
}
|
|
10446
10628
|
}
|
|
@@ -10472,189 +10654,189 @@ var spacing_tight_default = {
|
|
|
10472
10654
|
},
|
|
10473
10655
|
"3": {
|
|
10474
10656
|
$value: {
|
|
10475
|
-
value:
|
|
10657
|
+
value: 11,
|
|
10476
10658
|
unit: "px"
|
|
10477
10659
|
},
|
|
10478
10660
|
$type: "dimension"
|
|
10479
10661
|
},
|
|
10480
10662
|
"4": {
|
|
10481
10663
|
$value: {
|
|
10482
|
-
value:
|
|
10664
|
+
value: 14,
|
|
10483
10665
|
unit: "px"
|
|
10484
10666
|
},
|
|
10485
10667
|
$type: "dimension"
|
|
10486
10668
|
},
|
|
10487
10669
|
"5": {
|
|
10488
10670
|
$value: {
|
|
10489
|
-
value:
|
|
10671
|
+
value: 17,
|
|
10490
10672
|
unit: "px"
|
|
10491
10673
|
},
|
|
10492
10674
|
$type: "dimension"
|
|
10493
10675
|
},
|
|
10494
10676
|
"6": {
|
|
10495
10677
|
$value: {
|
|
10496
|
-
value:
|
|
10678
|
+
value: 20,
|
|
10497
10679
|
unit: "px"
|
|
10498
10680
|
},
|
|
10499
10681
|
$type: "dimension"
|
|
10500
10682
|
},
|
|
10501
10683
|
"7": {
|
|
10502
10684
|
$value: {
|
|
10503
|
-
value:
|
|
10685
|
+
value: 24,
|
|
10504
10686
|
unit: "px"
|
|
10505
10687
|
},
|
|
10506
10688
|
$type: "dimension"
|
|
10507
10689
|
},
|
|
10508
10690
|
"8": {
|
|
10509
10691
|
$value: {
|
|
10510
|
-
value:
|
|
10692
|
+
value: 28,
|
|
10511
10693
|
unit: "px"
|
|
10512
10694
|
},
|
|
10513
10695
|
$type: "dimension"
|
|
10514
10696
|
},
|
|
10515
10697
|
"9": {
|
|
10516
10698
|
$value: {
|
|
10517
|
-
value:
|
|
10699
|
+
value: 32,
|
|
10518
10700
|
unit: "px"
|
|
10519
10701
|
},
|
|
10520
10702
|
$type: "dimension"
|
|
10521
10703
|
},
|
|
10522
10704
|
"10": {
|
|
10523
10705
|
$value: {
|
|
10524
|
-
value:
|
|
10706
|
+
value: 36,
|
|
10525
10707
|
unit: "px"
|
|
10526
10708
|
},
|
|
10527
10709
|
$type: "dimension"
|
|
10528
10710
|
},
|
|
10529
10711
|
"11": {
|
|
10530
10712
|
$value: {
|
|
10531
|
-
value:
|
|
10713
|
+
value: 40,
|
|
10532
10714
|
unit: "px"
|
|
10533
10715
|
},
|
|
10534
10716
|
$type: "dimension"
|
|
10535
10717
|
},
|
|
10536
10718
|
"12": {
|
|
10537
10719
|
$value: {
|
|
10538
|
-
value:
|
|
10720
|
+
value: 44,
|
|
10539
10721
|
unit: "px"
|
|
10540
10722
|
},
|
|
10541
10723
|
$type: "dimension"
|
|
10542
10724
|
},
|
|
10543
10725
|
"14": {
|
|
10544
10726
|
$value: {
|
|
10545
|
-
value:
|
|
10727
|
+
value: 52,
|
|
10546
10728
|
unit: "px"
|
|
10547
10729
|
},
|
|
10548
10730
|
$type: "dimension"
|
|
10549
10731
|
},
|
|
10550
10732
|
"16": {
|
|
10551
10733
|
$value: {
|
|
10552
|
-
value:
|
|
10734
|
+
value: 60,
|
|
10553
10735
|
unit: "px"
|
|
10554
10736
|
},
|
|
10555
10737
|
$type: "dimension"
|
|
10556
10738
|
},
|
|
10557
10739
|
"20": {
|
|
10558
10740
|
$value: {
|
|
10559
|
-
value:
|
|
10741
|
+
value: 76,
|
|
10560
10742
|
unit: "px"
|
|
10561
10743
|
},
|
|
10562
10744
|
$type: "dimension"
|
|
10563
10745
|
},
|
|
10564
10746
|
"24": {
|
|
10565
10747
|
$value: {
|
|
10566
|
-
value:
|
|
10748
|
+
value: 92,
|
|
10567
10749
|
unit: "px"
|
|
10568
10750
|
},
|
|
10569
10751
|
$type: "dimension"
|
|
10570
10752
|
},
|
|
10571
10753
|
"28": {
|
|
10572
10754
|
$value: {
|
|
10573
|
-
value:
|
|
10755
|
+
value: 108,
|
|
10574
10756
|
unit: "px"
|
|
10575
10757
|
},
|
|
10576
10758
|
$type: "dimension"
|
|
10577
10759
|
},
|
|
10578
10760
|
"32": {
|
|
10579
10761
|
$value: {
|
|
10580
|
-
value:
|
|
10762
|
+
value: 124,
|
|
10581
10763
|
unit: "px"
|
|
10582
10764
|
},
|
|
10583
10765
|
$type: "dimension"
|
|
10584
10766
|
},
|
|
10585
10767
|
"36": {
|
|
10586
10768
|
$value: {
|
|
10587
|
-
value:
|
|
10769
|
+
value: 140,
|
|
10588
10770
|
unit: "px"
|
|
10589
10771
|
},
|
|
10590
10772
|
$type: "dimension"
|
|
10591
10773
|
},
|
|
10592
10774
|
"40": {
|
|
10593
10775
|
$value: {
|
|
10594
|
-
value:
|
|
10776
|
+
value: 156,
|
|
10595
10777
|
unit: "px"
|
|
10596
10778
|
},
|
|
10597
10779
|
$type: "dimension"
|
|
10598
10780
|
},
|
|
10599
10781
|
"44": {
|
|
10600
10782
|
$value: {
|
|
10601
|
-
value:
|
|
10783
|
+
value: 172,
|
|
10602
10784
|
unit: "px"
|
|
10603
10785
|
},
|
|
10604
10786
|
$type: "dimension"
|
|
10605
10787
|
},
|
|
10606
10788
|
"48": {
|
|
10607
10789
|
$value: {
|
|
10608
|
-
value:
|
|
10790
|
+
value: 188,
|
|
10609
10791
|
unit: "px"
|
|
10610
10792
|
},
|
|
10611
10793
|
$type: "dimension"
|
|
10612
10794
|
},
|
|
10613
10795
|
"52": {
|
|
10614
10796
|
$value: {
|
|
10615
|
-
value:
|
|
10797
|
+
value: 204,
|
|
10616
10798
|
unit: "px"
|
|
10617
10799
|
},
|
|
10618
10800
|
$type: "dimension"
|
|
10619
10801
|
},
|
|
10620
10802
|
"56": {
|
|
10621
10803
|
$value: {
|
|
10622
|
-
value:
|
|
10804
|
+
value: 220,
|
|
10623
10805
|
unit: "px"
|
|
10624
10806
|
},
|
|
10625
10807
|
$type: "dimension"
|
|
10626
10808
|
},
|
|
10627
10809
|
"60": {
|
|
10628
10810
|
$value: {
|
|
10629
|
-
value:
|
|
10811
|
+
value: 236,
|
|
10630
10812
|
unit: "px"
|
|
10631
10813
|
},
|
|
10632
10814
|
$type: "dimension"
|
|
10633
10815
|
},
|
|
10634
10816
|
"64": {
|
|
10635
10817
|
$value: {
|
|
10636
|
-
value:
|
|
10818
|
+
value: 252,
|
|
10637
10819
|
unit: "px"
|
|
10638
10820
|
},
|
|
10639
10821
|
$type: "dimension"
|
|
10640
10822
|
},
|
|
10641
10823
|
"72": {
|
|
10642
10824
|
$value: {
|
|
10643
|
-
value:
|
|
10825
|
+
value: 284,
|
|
10644
10826
|
unit: "px"
|
|
10645
10827
|
},
|
|
10646
10828
|
$type: "dimension"
|
|
10647
10829
|
},
|
|
10648
10830
|
"80": {
|
|
10649
10831
|
$value: {
|
|
10650
|
-
value:
|
|
10832
|
+
value: 316,
|
|
10651
10833
|
unit: "px"
|
|
10652
10834
|
},
|
|
10653
10835
|
$type: "dimension"
|
|
10654
10836
|
},
|
|
10655
10837
|
"96": {
|
|
10656
10838
|
$value: {
|
|
10657
|
-
value:
|
|
10839
|
+
value: 380,
|
|
10658
10840
|
unit: "px"
|
|
10659
10841
|
},
|
|
10660
10842
|
$type: "dimension"
|
|
@@ -10682,7 +10864,7 @@ var spacing_tight_default = {
|
|
|
10682
10864
|
},
|
|
10683
10865
|
"3_5": {
|
|
10684
10866
|
$value: {
|
|
10685
|
-
value:
|
|
10867
|
+
value: 13,
|
|
10686
10868
|
unit: "px"
|
|
10687
10869
|
},
|
|
10688
10870
|
$type: "dimension"
|
|
@@ -10690,33 +10872,21 @@ var spacing_tight_default = {
|
|
|
10690
10872
|
},
|
|
10691
10873
|
container: {
|
|
10692
10874
|
p: {
|
|
10693
|
-
$value: {
|
|
10694
|
-
value: 24,
|
|
10695
|
-
unit: "px"
|
|
10696
|
-
},
|
|
10875
|
+
$value: "{spacing.6}",
|
|
10697
10876
|
$type: "dimension"
|
|
10698
10877
|
},
|
|
10699
10878
|
gap: {
|
|
10700
|
-
$value: {
|
|
10701
|
-
value: 16,
|
|
10702
|
-
unit: "px"
|
|
10703
|
-
},
|
|
10879
|
+
$value: "{spacing.4}",
|
|
10704
10880
|
$type: "dimension"
|
|
10705
10881
|
}
|
|
10706
10882
|
},
|
|
10707
10883
|
layout: {
|
|
10708
10884
|
"section-gap": {
|
|
10709
|
-
$value: {
|
|
10710
|
-
value: 32,
|
|
10711
|
-
unit: "px"
|
|
10712
|
-
},
|
|
10885
|
+
$value: "{spacing.8}",
|
|
10713
10886
|
$type: "dimension"
|
|
10714
10887
|
},
|
|
10715
10888
|
"stack-gap": {
|
|
10716
|
-
$value: {
|
|
10717
|
-
value: 8,
|
|
10718
|
-
unit: "px"
|
|
10719
|
-
},
|
|
10889
|
+
$value: "{spacing.2}",
|
|
10720
10890
|
$type: "dimension"
|
|
10721
10891
|
}
|
|
10722
10892
|
}
|
|
@@ -11064,7 +11234,7 @@ var typography_default = {
|
|
|
11064
11234
|
$type: "typography",
|
|
11065
11235
|
$value: {
|
|
11066
11236
|
fontFamily: "{family.font-mono}",
|
|
11067
|
-
fontSize: "{size
|
|
11237
|
+
fontSize: "{code.size}",
|
|
11068
11238
|
fontWeight: "{weight.normal}",
|
|
11069
11239
|
lineHeight: "{line-height.sm}",
|
|
11070
11240
|
letterSpacing: {
|
|
@@ -11077,7 +11247,7 @@ var typography_default = {
|
|
|
11077
11247
|
$type: "typography",
|
|
11078
11248
|
$value: {
|
|
11079
11249
|
fontFamily: "{family.font-mono}",
|
|
11080
|
-
fontSize: "{size
|
|
11250
|
+
fontSize: "{code.size}",
|
|
11081
11251
|
fontWeight: "{weight.semibold}",
|
|
11082
11252
|
lineHeight: "auto",
|
|
11083
11253
|
letterSpacing: {
|
|
@@ -11095,6 +11265,7 @@ var TOKEN_FILES = {
|
|
|
11095
11265
|
"primitives/borderwidth/borderwidth-normal.json": borderwidth_normal_default,
|
|
11096
11266
|
"primitives/borderwidth/borderwidth-strong.json": borderwidth_strong_default,
|
|
11097
11267
|
"primitives/color.json": color_default,
|
|
11268
|
+
"primitives/icon.json": icon_default,
|
|
11098
11269
|
"primitives/motion/motion-snappy.json": motion_snappy_default,
|
|
11099
11270
|
"primitives/radius/radius-extra-round.json": radius_extra_round_default,
|
|
11100
11271
|
"primitives/radius/radius-round.json": radius_round_default,
|
|
@@ -11128,6 +11299,7 @@ var TOKEN_FILES = {
|
|
|
11128
11299
|
var PRIMITIVE_FAMILIES = [
|
|
11129
11300
|
"borderwidth",
|
|
11130
11301
|
"color",
|
|
11302
|
+
"icon",
|
|
11131
11303
|
"motion",
|
|
11132
11304
|
"radius",
|
|
11133
11305
|
"shadow",
|
|
@@ -11139,35 +11311,40 @@ var BREAKPOINTS_FILE = "semantic/breakpoints.json";
|
|
|
11139
11311
|
var TYPOGRAPHY_STYLES_FILE = "styles/typography.json";
|
|
11140
11312
|
var SHADOW_STYLES_FILE = "styles/shadows.json";
|
|
11141
11313
|
var SINGLE_SOURCE = { mode: null, preset: null };
|
|
11142
|
-
var
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11314
|
+
var UI_SCALE = { kind: "scale", field: "uiScale" };
|
|
11315
|
+
var TEXT_SIZE = { kind: "scale", field: "textSize" };
|
|
11316
|
+
var FAMILY_CONTROLS = {
|
|
11317
|
+
spacing: [{ kind: "preset", field: "density" }, UI_SCALE],
|
|
11318
|
+
radius: [{ kind: "preset", field: "corners" }, UI_SCALE],
|
|
11319
|
+
borderwidth: [{ kind: "preset", field: "stroke" }],
|
|
11320
|
+
shadow: [{ kind: "preset", field: "elevation" }]
|
|
11147
11321
|
};
|
|
11148
|
-
function
|
|
11322
|
+
function typographyControls(path) {
|
|
11149
11323
|
const [group, key] = path;
|
|
11150
|
-
if (
|
|
11324
|
+
if (group === "code" && key === "size") {
|
|
11325
|
+
return [{ kind: "pref", field: "codeFontSize" }, UI_SCALE, TEXT_SIZE];
|
|
11326
|
+
}
|
|
11151
11327
|
if (group === "size" || group === "line-height") {
|
|
11152
|
-
return
|
|
11328
|
+
return [UI_SCALE, TEXT_SIZE];
|
|
11153
11329
|
}
|
|
11154
|
-
if (group !== "family") return
|
|
11155
|
-
if (key === "font-sans") return { kind: "pref", field: "uiFont" };
|
|
11156
|
-
if (key === "font-heading") return { kind: "pref", field: "headingFont" };
|
|
11157
|
-
if (key === "font-mono") return { kind: "pref", field: "codeFont" };
|
|
11158
|
-
return
|
|
11330
|
+
if (group !== "family") return [];
|
|
11331
|
+
if (key === "font-sans") return [{ kind: "pref", field: "uiFont" }];
|
|
11332
|
+
if (key === "font-heading") return [{ kind: "pref", field: "headingFont" }];
|
|
11333
|
+
if (key === "font-mono") return [{ kind: "pref", field: "codeFont" }];
|
|
11334
|
+
return [];
|
|
11159
11335
|
}
|
|
11160
|
-
function
|
|
11336
|
+
function leafControls({
|
|
11161
11337
|
family,
|
|
11162
11338
|
file,
|
|
11163
11339
|
preset,
|
|
11164
11340
|
leaf
|
|
11165
11341
|
}) {
|
|
11166
11342
|
if (family === "typography" && file.startsWith("primitives/")) {
|
|
11167
|
-
return
|
|
11343
|
+
return typographyControls(leaf.path);
|
|
11168
11344
|
}
|
|
11169
|
-
if (
|
|
11170
|
-
return
|
|
11345
|
+
if (family === "icon") return leaf.path[0] === "glyph" ? [UI_SCALE] : [];
|
|
11346
|
+
if (preset === null) return [];
|
|
11347
|
+
return FAMILY_CONTROLS[family] ?? [];
|
|
11171
11348
|
}
|
|
11172
11349
|
var cssVariable = (name) => ({
|
|
11173
11350
|
kind: "css-variable",
|
|
@@ -11270,7 +11447,7 @@ function authoredTokens(leaves, lookup, entryFor) {
|
|
|
11270
11447
|
type: leaf.type,
|
|
11271
11448
|
description: leaf.description ?? null,
|
|
11272
11449
|
aliases,
|
|
11273
|
-
|
|
11450
|
+
controls: leafControls(authored),
|
|
11274
11451
|
variants: []
|
|
11275
11452
|
};
|
|
11276
11453
|
token2.variants.push({
|
|
@@ -11288,6 +11465,7 @@ function authoredTokens(leaves, lookup, entryFor) {
|
|
|
11288
11465
|
}
|
|
11289
11466
|
function primitiveAliases(family, path) {
|
|
11290
11467
|
const key = path.join("-");
|
|
11468
|
+
if (family === "icon") return [utility(iconUtility(path).name)];
|
|
11291
11469
|
if (family === "radius") return [cssVariable(`--radius-${key}`)];
|
|
11292
11470
|
if (family === "borderwidth") {
|
|
11293
11471
|
return [
|
|
@@ -11314,7 +11492,7 @@ function primitiveAliases(family, path) {
|
|
|
11314
11492
|
}
|
|
11315
11493
|
return [];
|
|
11316
11494
|
}
|
|
11317
|
-
function primitiveEntry(lookup
|
|
11495
|
+
function primitiveEntry(lookup) {
|
|
11318
11496
|
return ({ family, leaf }) => {
|
|
11319
11497
|
const name = primitiveName(family, leaf.path);
|
|
11320
11498
|
const reference = leaf.path.join(".");
|
|
@@ -11328,24 +11506,35 @@ function primitiveEntry(lookup, scaled) {
|
|
|
11328
11506
|
declarations: [
|
|
11329
11507
|
{
|
|
11330
11508
|
property: name,
|
|
11331
|
-
value:
|
|
11509
|
+
value: resolveValue(leaf.value, lookup, leaf.type, leaf.path)
|
|
11332
11510
|
}
|
|
11333
11511
|
]
|
|
11334
11512
|
};
|
|
11335
11513
|
};
|
|
11336
11514
|
}
|
|
11337
|
-
function
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11515
|
+
function spacingName(path) {
|
|
11516
|
+
return `--nx-${path.join("-")}`;
|
|
11517
|
+
}
|
|
11518
|
+
function spacingStepLookup(leaves) {
|
|
11519
|
+
return new Map(
|
|
11520
|
+
leaves.filter(({ leaf }) => spacingTokenKind(leaf.path) === "numeric").map(({ leaf }) => {
|
|
11521
|
+
const name = spacingName(leaf.path);
|
|
11522
|
+
return [
|
|
11523
|
+
leaf.path.join("."),
|
|
11524
|
+
{ cssName: name.slice("--".length), name }
|
|
11525
|
+
];
|
|
11526
|
+
})
|
|
11527
|
+
);
|
|
11528
|
+
}
|
|
11529
|
+
function spacingEntry({ file, leaf }) {
|
|
11530
|
+
const name = spacingName(leaf.path);
|
|
11531
|
+
const alias = spacingTokenKind(leaf.path) === "role" ? utility(spacingRoleUtility(leaf.path).name) : cssVariable(`--${leaf.path.join("-")}`);
|
|
11532
|
+
const value = spacingValue(leaf, extractTokens(TOKEN_FILES[file]));
|
|
11341
11533
|
return {
|
|
11342
11534
|
name,
|
|
11343
11535
|
aliases: [alias],
|
|
11344
11536
|
declarations: [
|
|
11345
|
-
{
|
|
11346
|
-
property: name,
|
|
11347
|
-
value: formatTokenValue(leaf.value, leaf.type, leaf.path)
|
|
11348
|
-
}
|
|
11537
|
+
{ property: name, value: formatTokenValue(value, leaf.type, leaf.path) }
|
|
11349
11538
|
]
|
|
11350
11539
|
};
|
|
11351
11540
|
}
|
|
@@ -11410,7 +11599,7 @@ function shadowStyleTokens(layers, lookup) {
|
|
|
11410
11599
|
type: leaf.type,
|
|
11411
11600
|
description: leaf.description ?? null,
|
|
11412
11601
|
aliases: [cssVariable(`--${key}`)],
|
|
11413
|
-
|
|
11602
|
+
controls: FAMILY_CONTROLS.shadow ?? [],
|
|
11414
11603
|
variants: sets.map(({ preset, mode, values }) => ({
|
|
11415
11604
|
mode,
|
|
11416
11605
|
preset,
|
|
@@ -11455,7 +11644,7 @@ function runtimeColorTokens(appearance) {
|
|
|
11455
11644
|
type: "color",
|
|
11456
11645
|
description: RUNTIME_COLOR_DESCRIPTIONS[name] ?? null,
|
|
11457
11646
|
aliases: runtimeColorAliases(name),
|
|
11458
|
-
|
|
11647
|
+
controls: [],
|
|
11459
11648
|
variants: themes.map(({ mode, appearance: appearance2, values }) => {
|
|
11460
11649
|
const value = values[property];
|
|
11461
11650
|
if (value === void 0) {
|
|
@@ -11474,24 +11663,130 @@ function runtimeColorTokens(appearance) {
|
|
|
11474
11663
|
};
|
|
11475
11664
|
});
|
|
11476
11665
|
}
|
|
11666
|
+
function uiScaleToken({ cssName, value }, {
|
|
11667
|
+
family,
|
|
11668
|
+
type,
|
|
11669
|
+
description
|
|
11670
|
+
}) {
|
|
11671
|
+
const name = `--nx-${cssName}`;
|
|
11672
|
+
return {
|
|
11673
|
+
name,
|
|
11674
|
+
family,
|
|
11675
|
+
group: family,
|
|
11676
|
+
type,
|
|
11677
|
+
description,
|
|
11678
|
+
aliases: [],
|
|
11679
|
+
controls: [UI_SCALE],
|
|
11680
|
+
variants: [
|
|
11681
|
+
{
|
|
11682
|
+
mode: null,
|
|
11683
|
+
preset: null,
|
|
11684
|
+
source: null,
|
|
11685
|
+
appearance: null,
|
|
11686
|
+
authoredValue: null,
|
|
11687
|
+
declarations: [{ property: name, value }],
|
|
11688
|
+
references: []
|
|
11689
|
+
}
|
|
11690
|
+
]
|
|
11691
|
+
};
|
|
11692
|
+
}
|
|
11693
|
+
function uiScaleEntry(token2) {
|
|
11694
|
+
if (token2.cssName === "ui-scale") {
|
|
11695
|
+
return uiScaleToken(token2, {
|
|
11696
|
+
family: "ui-scale",
|
|
11697
|
+
type: "number",
|
|
11698
|
+
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."
|
|
11699
|
+
});
|
|
11700
|
+
}
|
|
11701
|
+
const width = token2.cssName.replace("container-", "");
|
|
11702
|
+
return uiScaleToken(token2, {
|
|
11703
|
+
family: "width",
|
|
11704
|
+
type: "dimension",
|
|
11705
|
+
description: `The \`nx:max-w-${width}\` and \`nx:w-${width}\` width. It follows the UI scale.`
|
|
11706
|
+
});
|
|
11707
|
+
}
|
|
11708
|
+
var CSS_NAME_START = "--nx-".length;
|
|
11709
|
+
function variantValue(variant) {
|
|
11710
|
+
return variant?.declarations[0]?.value;
|
|
11711
|
+
}
|
|
11712
|
+
function scaledPresets(tokens, family, factor) {
|
|
11713
|
+
const modes = /* @__PURE__ */ new Map();
|
|
11714
|
+
for (const token2 of tokens.filter((each) => each.family === family)) {
|
|
11715
|
+
for (const variant of token2.variants) {
|
|
11716
|
+
const value = variantValue(variant);
|
|
11717
|
+
if (variant.preset === null || value === void 0) continue;
|
|
11718
|
+
const target = variant.references[0]?.target;
|
|
11719
|
+
const mode = modes.get(variant.preset) ?? [];
|
|
11720
|
+
mode.push({
|
|
11721
|
+
cssName: token2.name.slice(CSS_NAME_START),
|
|
11722
|
+
value,
|
|
11723
|
+
...target && { step: target.slice(CSS_NAME_START) }
|
|
11724
|
+
});
|
|
11725
|
+
modes.set(variant.preset, mode);
|
|
11726
|
+
}
|
|
11727
|
+
}
|
|
11728
|
+
return [...modes].flatMap(
|
|
11729
|
+
([preset, mode]) => scaleMode(mode, factor).map(({ cssName, value }) => [
|
|
11730
|
+
`${preset}/--nx-${cssName}`,
|
|
11731
|
+
value
|
|
11732
|
+
])
|
|
11733
|
+
);
|
|
11734
|
+
}
|
|
11735
|
+
function sizeValues(tokens, { uiScale, textSize }) {
|
|
11736
|
+
const base = uiScaleBase(
|
|
11737
|
+
TOKEN_FILES["primitives/typography/typography-default.json"],
|
|
11738
|
+
TOKEN_FILES["primitives/icon.json"]
|
|
11739
|
+
);
|
|
11740
|
+
const selectors = [
|
|
11741
|
+
uiScaleSelector(uiScale),
|
|
11742
|
+
textSizeSelector(uiScale, textSize)
|
|
11743
|
+
];
|
|
11744
|
+
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]);
|
|
11745
|
+
if (uiScale === "default") return values;
|
|
11746
|
+
const { spacing } = UI_SCALES[uiScale];
|
|
11747
|
+
return [
|
|
11748
|
+
...values,
|
|
11749
|
+
...scaledPresets(tokens, "spacing", spacing),
|
|
11750
|
+
...scaledPresets(tokens, "radius", spacing)
|
|
11751
|
+
];
|
|
11752
|
+
}
|
|
11753
|
+
function atSizes(tokens, appearance) {
|
|
11754
|
+
const { uiScale, textSize, prefs } = appearance;
|
|
11755
|
+
const scaled = new Map([
|
|
11756
|
+
...sizeValues(tokens, appearance),
|
|
11757
|
+
[
|
|
11758
|
+
"--nx-typography-code-size",
|
|
11759
|
+
`${scaleText(prefs.codeFontSize, uiScale, textSize)}px`
|
|
11760
|
+
]
|
|
11761
|
+
]);
|
|
11762
|
+
return tokens.map((token2) => ({
|
|
11763
|
+
...token2,
|
|
11764
|
+
variants: token2.variants.map((variant) => {
|
|
11765
|
+
const value = scaled.get(`${variant.preset}/${token2.name}`) ?? scaled.get(token2.name);
|
|
11766
|
+
if (value === void 0) return variant;
|
|
11767
|
+
return {
|
|
11768
|
+
...variant,
|
|
11769
|
+
declarations: variant.declarations.map((each) => ({
|
|
11770
|
+
...each,
|
|
11771
|
+
value
|
|
11772
|
+
}))
|
|
11773
|
+
};
|
|
11774
|
+
})
|
|
11775
|
+
}));
|
|
11776
|
+
}
|
|
11477
11777
|
function createTokenCatalogue(appearance = DEFAULT_NXDS_APPEARANCE) {
|
|
11478
11778
|
const primitives = PRIMITIVE_FAMILIES.flatMap(primitiveLeaves);
|
|
11479
11779
|
const lookup = primitiveLookup(primitives);
|
|
11480
11780
|
const shadowLayers = primitives.filter(({ family }) => family === "shadow");
|
|
11481
|
-
|
|
11781
|
+
const spacing = spacingLeaves();
|
|
11782
|
+
const tokens = [
|
|
11482
11783
|
...authoredTokens(
|
|
11483
11784
|
primitives.filter((leaf) => leaf.family !== "shadow"),
|
|
11484
11785
|
lookup,
|
|
11485
|
-
primitiveEntry(
|
|
11486
|
-
lookup,
|
|
11487
|
-
typographyScale(
|
|
11488
|
-
appearance.prefs.uiFontSize,
|
|
11489
|
-
appearance.prefs.codeFontSize
|
|
11490
|
-
)
|
|
11491
|
-
)
|
|
11786
|
+
primitiveEntry(lookup)
|
|
11492
11787
|
),
|
|
11493
11788
|
...runtimeColorTokens(appearance),
|
|
11494
|
-
...authoredTokens(
|
|
11789
|
+
...authoredTokens(spacing, spacingStepLookup(spacing), spacingEntry),
|
|
11495
11790
|
...authoredTokens(
|
|
11496
11791
|
fileLeaves("z-index", Z_INDEX_FILE, SINGLE_SOURCE),
|
|
11497
11792
|
lookup,
|
|
@@ -11507,8 +11802,10 @@ function createTokenCatalogue(appearance = DEFAULT_NXDS_APPEARANCE) {
|
|
|
11507
11802
|
lookup,
|
|
11508
11803
|
typographyStyleEntry(lookup)
|
|
11509
11804
|
),
|
|
11510
|
-
...shadowStyleTokens(shadowLayers, lookup)
|
|
11805
|
+
...shadowStyleTokens(shadowLayers, lookup),
|
|
11806
|
+
...widthTokens(PAGE_WIDTHS_REM, "default").map(uiScaleEntry)
|
|
11511
11807
|
];
|
|
11808
|
+
return atSizes(tokens, appearance);
|
|
11512
11809
|
}
|
|
11513
11810
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11514
11811
|
0 && (module.exports = {
|