@trackunit/ui-design-tokens 0.0.32-versioning-public-packages.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 ADDED
@@ -0,0 +1,7 @@
1
+ # ui-design-tokens
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test ui-design-tokens` to execute the unit tests via [Jest](https://jestjs.io).
package/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export * from "./tokens/chartColorsDefault";
2
+ export * from "./tokens/colors";
3
+ export * from "./tokens/elevation";
4
+ export * from "./tokens/getHEX";
5
+ export * from "./tokens/getValues";
6
+ export * from "./tokens/mediaQuery";
7
+ export * from "./tokens/size";
8
+ export * from "./tokens/tokens";
9
+ export * from "./tokens/typography";
10
+ export * from "./tokens/zIndex";
package/index.js ADDED
@@ -0,0 +1,312 @@
1
+ import { generateMedia } from 'styled-media-query';
2
+
3
+ const DEFAULT_CHART_COLORS = ["#2580C7", "#36A2DA", "#3FBCEA", "#06708D", "#01B7A9", "#A2DEDA", "#F9E9A0", "#FDD008", "#FBB385", "#FF7373", "#E6BCF3", "#9D96F5", "#8378EA", "#96BFFF", "#979A9A", "#0065E5", "#FF5A5A", "#00A658", "#5AC8fA", "#5E5CE6", "#2066FF", "#FF9500"];
4
+ const getReorderedChartColors = () => [// re-ordered to make the first ones more visually different
5
+ DEFAULT_CHART_COLORS[0], DEFAULT_CHART_COLORS[4], DEFAULT_CHART_COLORS[7], DEFAULT_CHART_COLORS[9], DEFAULT_CHART_COLORS[12], DEFAULT_CHART_COLORS[5], DEFAULT_CHART_COLORS[6], DEFAULT_CHART_COLORS[8], DEFAULT_CHART_COLORS[10], DEFAULT_CHART_COLORS[1], DEFAULT_CHART_COLORS[11], DEFAULT_CHART_COLORS[3], DEFAULT_CHART_COLORS[2], DEFAULT_CHART_COLORS[13]];
6
+
7
+ /**
8
+ * The values assigned are loosely based on the hue/neutral's
9
+ * respective relative luminance, where 0% is black and 100% is white.
10
+ * However, it is slightly adjusted to be in reverse, where X0 will
11
+ * always represent the lightest version, while X100 will present the
12
+ * darkest version of a hue/neutral.
13
+ */
14
+ function getColorValue(variable) {
15
+ return `rgb(var(${variable}) / var(--tw-bg-opacity))`;
16
+ }
17
+ const black = "#1a1b1c";
18
+ const white = "#fff";
19
+ const neutral = {
20
+ N5: getColorValue("--color-neutral-50"),
21
+ N10: getColorValue("--color-neutral-100"),
22
+ N20: getColorValue("--color-neutral-200"),
23
+ N30: getColorValue("--color-neutral-300"),
24
+ N40: getColorValue("--color-neutral-400"),
25
+ N50: getColorValue("--color-neutral-500"),
26
+ N60: getColorValue("--color-neutral-600"),
27
+ N70: getColorValue("--color-neutral-700"),
28
+ N80: getColorValue("--color-neutral-800"),
29
+ N90: getColorValue("--color-neutral-900")
30
+ };
31
+ const blue = {
32
+ B5: getColorValue("--color-blue-50"),
33
+ B10: getColorValue("--color-blue-100"),
34
+ B20: getColorValue("--color-blue-200"),
35
+ B30: getColorValue("--color-blue-300"),
36
+ B40: getColorValue("--color-blue-400"),
37
+ B50: getColorValue("--color-blue-500"),
38
+ B60: getColorValue("--color-blue-600"),
39
+ B70: getColorValue("--color-blue-700"),
40
+ B80: getColorValue("--color-blue-800"),
41
+ B90: getColorValue("--color-blue-900")
42
+ };
43
+ const green = {
44
+ G5: getColorValue("--color-green-50"),
45
+ G10: getColorValue("--color-green-100"),
46
+ G20: getColorValue("--color-green-200"),
47
+ G30: getColorValue("--color-green-300"),
48
+ G40: getColorValue("--color-green-400"),
49
+ G50: getColorValue("--color-green-500"),
50
+ G60: getColorValue("--color-green-600"),
51
+ G70: getColorValue("--color-green-700"),
52
+ G80: getColorValue("--color-green-800"),
53
+ G90: getColorValue("--color-green-900")
54
+ };
55
+ const red = {
56
+ R5: getColorValue("--color-red-50"),
57
+ R10: getColorValue("--color-red-100"),
58
+ R20: getColorValue("--color-red-200"),
59
+ R30: getColorValue("--color-red-300"),
60
+ R40: getColorValue("--color-red-400"),
61
+ R50: getColorValue("--color-red-500"),
62
+ R60: getColorValue("--color-red-600"),
63
+ R70: getColorValue("--color-red-700"),
64
+ R80: getColorValue("--color-red-800"),
65
+ R90: getColorValue("--color-red-900")
66
+ };
67
+ const orange = {
68
+ O5: getColorValue("--color-amber-50"),
69
+ O10: getColorValue("--color-amber-100"),
70
+ O20: getColorValue("--color-amber-200"),
71
+ O30: getColorValue("--color-amber-300"),
72
+ O40: getColorValue("--color-amber-400"),
73
+ O50: getColorValue("--color-amber-500"),
74
+ O60: getColorValue("--color-amber-600"),
75
+ O70: getColorValue("--color-amber-700"),
76
+ O80: getColorValue("--color-amber-800"),
77
+ O90: getColorValue("--color-amber-900")
78
+ };
79
+ const purple = {
80
+ P5: getColorValue("--color-violet-50"),
81
+ P10: getColorValue("--color-violet-100"),
82
+ P20: getColorValue("--color-violet-200"),
83
+ P30: getColorValue("--color-violet-300"),
84
+ P40: getColorValue("--color-violet-400"),
85
+ P50: getColorValue("--color-violet-500"),
86
+ P60: getColorValue("--color-violet-600"),
87
+ P70: getColorValue("--color-violet-700"),
88
+ P80: getColorValue("--color-violet-800"),
89
+ P90: getColorValue("--color-violet-900")
90
+ };
91
+ const utilization = {
92
+ working: "#2EC5E9",
93
+ moving: "#E690B1",
94
+ idling: "#FDDD0E",
95
+ stopped: "#6577DB",
96
+ active: "#3FDB93",
97
+ operating: "#65ACDB"
98
+ };
99
+ const colors = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, neutral), blue), green), red), orange), purple), {
100
+ utilization,
101
+ black,
102
+ white
103
+ });
104
+
105
+ /**
106
+ * Elevation is based on N100 with an alpha channel. E(X)A variants
107
+ * are for active versions(e.g. hover).
108
+ */
109
+ const elevation = {
110
+ E05: "var(--box-shadow-sm)",
111
+ E10: "var(--box-shadow-DEFAULT)",
112
+ E10A: "var(--box-shadow-md)",
113
+ E20: "var(--box-shadow-lg)",
114
+ E30: "var(--box-shadow-xl)",
115
+ E40: "var(--box-shadow-2xl)"
116
+ };
117
+
118
+ function componentToHex(c) {
119
+ if (c === null || c === undefined) {
120
+ return "00";
121
+ }
122
+
123
+ const hex = c.toString(16);
124
+ return hex.length === 1 ? "0" + hex : hex;
125
+ }
126
+
127
+ function rgbToHex(r, g, b) {
128
+ if (isNaN(r) || isNaN(g) || isNaN(b)) {
129
+ return "#000000";
130
+ }
131
+
132
+ return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
133
+ }
134
+ /**
135
+ * Returns the HEX color based on a Color from the theme.
136
+ * Reads the RGB value from the underlying CSS variable and convert to HEX.
137
+ *
138
+ * Example: getHEX(theme.colors.B50) -> #3b82f6
139
+ *
140
+ * @param variable A color from the `colors` object of the Theme
141
+ * @returns HEX color
142
+ */
143
+
144
+
145
+ const getHEX = variable => {
146
+ var _a, _b;
147
+
148
+ const regex = /rgb\(var\((.*?)\) \/ var\(--tw-bg-opacity\)\)/g;
149
+ const root = document.documentElement;
150
+ const match = regex.exec(variable);
151
+ const colorValue = getComputedStyle(root).getPropertyValue((_b = (_a = match === null || match === void 0 ? void 0 : match[1]) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : variable);
152
+ const RGB = colorValue.trim().split(" ").map(channel => Number(channel));
153
+ return rgbToHex(RGB[0], RGB[1], RGB[2]);
154
+ };
155
+
156
+ /**
157
+ * Reads the value of the CSS custom Property connected to the design torken.
158
+ * ATTENTION: For colors use getHEX
159
+ */
160
+ function getValuesFromDesignToken(designToken) {
161
+ var _a;
162
+
163
+ if (typeof designToken === "string" && designToken.includes("var(")) {
164
+ const regex = /var\((.*?)\)/g;
165
+ const root = document.documentElement;
166
+ const match = regex.exec(designToken);
167
+ const tokenValue = getComputedStyle(root).getPropertyValue((_a = match === null || match === void 0 ? void 0 : match[1]) !== null && _a !== void 0 ? _a : designToken);
168
+ return tokenValue;
169
+ }
170
+
171
+ return designToken;
172
+ }
173
+
174
+ const breakpoints = {
175
+ xs: 0,
176
+ sm: 480,
177
+ md: 768,
178
+ lg: 1024,
179
+ xl: 1200,
180
+ xxl: 1600,
181
+ xxxl: 1900 // full HD
182
+
183
+ };
184
+ /**
185
+ * Track units media queries.
186
+ */
187
+
188
+ const mediaQuery = generateMedia({
189
+ xs: breakpoints.xs + "px",
190
+ sm: breakpoints.sm + "px",
191
+ md: breakpoints.md + "px",
192
+ lg: breakpoints.lg + "px",
193
+ xl: breakpoints.xl + "px",
194
+ xxl: breakpoints.xxl + "px",
195
+ xxxl: breakpoints.xxxl + "px" // full HD
196
+
197
+ });
198
+ const windowWidth = {
199
+ lessThan: size => {
200
+ return window.innerWidth < breakpoints[size];
201
+ },
202
+ greaterThan: size => {
203
+ return window.innerWidth > breakpoints[size];
204
+ },
205
+ between: (first, second) => {
206
+ return window.innerWidth < breakpoints[first] && window.innerWidth < breakpoints[second];
207
+ }
208
+ };
209
+ /*
210
+ --------
211
+ TAILWIND
212
+ --------
213
+ sm 640px @media (min-width: 640px) { ... }
214
+ md 768px @media (min-width: 768px) { ... }
215
+ lg 1024px @media (min-width: 1024px) { ... }
216
+ xl 1280px @media (min-width: 1280px) { ... }
217
+ 2xl 1536px @media (min-width: 1536px) { ... }
218
+ */
219
+
220
+ /*
221
+ --------
222
+ FLUENTUI
223
+ --------
224
+ small 320px - 479px
225
+ medium 480px - 639px
226
+ large 640px - 1023px
227
+ extra large 1024px - 1365px
228
+ extra extra large 1366px - 1919px
229
+ extra extra extra large 1920px and up
230
+ */
231
+
232
+ /**
233
+ --------
234
+ BOOTSTRAP
235
+ --------
236
+ grid-breakpoints: (
237
+ xs: 0,
238
+ sm: 576px,
239
+ md: 768px,
240
+ lg: 992px,
241
+ xl: 1200px,
242
+ xxl: 1400px
243
+ );
244
+ */
245
+
246
+ const size = {
247
+ /** --spacing-0: 0px; */
248
+ none: "var(--spacing-0)",
249
+
250
+ /** --spacing-1: 0.25rem; */
251
+ tiny: "var(--spacing-1)",
252
+
253
+ /** --spacing-2: 0.5rem; */
254
+ mini: "var(--spacing-2)",
255
+
256
+ /** --spacing-3: 0.75rem; */
257
+ small: "var(--spacing-3)",
258
+
259
+ /** --spacing-4: 1rem; */
260
+ medium: "var(--spacing-4)",
261
+
262
+ /** --spacing-6: 1.5rem; */
263
+ large: "var(--spacing-6)",
264
+
265
+ /** --spacing-8: 2rem; */
266
+ giant: "var(--spacing-8)",
267
+
268
+ /** --spacing-10: 2.5rem; */
269
+ enormous: "var(--spacing-10)"
270
+ };
271
+
272
+ /**
273
+ * Based on a root size of 16px.
274
+ */
275
+ const fontSize = {
276
+ primary: "var( --font-size-3xl)",
277
+ secondary: "var(--font-size-lg)",
278
+ tertiary: "var(--font-size-base)",
279
+ subtitle: "var(--font-size-base)",
280
+ body: "var(--font-size-sm)",
281
+ small: "var(--font-size-xs)" // 12px
282
+
283
+ };
284
+ /**
285
+ * Primary font weights.
286
+ */
287
+
288
+ const fontWeight = {
289
+ normal: 400,
290
+ bold: 600
291
+ };
292
+
293
+ const zIndex = {
294
+ hidden: -1,
295
+ default: 1,
296
+ top: 5,
297
+ overlay: 10,
298
+ popover: 20,
299
+ toast: 100
300
+ };
301
+
302
+ const tokens = {
303
+ colors,
304
+ size,
305
+ fontSize,
306
+ fontWeight,
307
+ elevation,
308
+ zIndex,
309
+ fontFamily: `'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif`
310
+ };
311
+
312
+ export { DEFAULT_CHART_COLORS, black, blue, breakpoints, colors, elevation, fontSize, fontWeight, getColorValue, getHEX, getReorderedChartColors, getValuesFromDesignToken, green, mediaQuery, neutral, orange, purple, red, size, tokens, utilization, white, windowWidth, zIndex };
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@trackunit/ui-design-tokens",
3
+ "version": "0.0.32-versioning-public-packages.0",
4
+ "repository": "https://github.com/Trackunit/manager",
5
+ "license": "MIT",
6
+ "module": "./index.js",
7
+ "main": "./index.js",
8
+ "type": "module",
9
+ "types": "./index.d.ts",
10
+ "dependencies": {
11
+ "styled-media-query": "^2.1.2"
12
+ },
13
+ "peerDependencies": {}
14
+ }
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_CHART_COLORS: string[];
2
+ export declare const getReorderedChartColors: () => string[];
@@ -0,0 +1,163 @@
1
+ /**
2
+ * The values assigned are loosely based on the hue/neutral's
3
+ * respective relative luminance, where 0% is black and 100% is white.
4
+ * However, it is slightly adjusted to be in reverse, where X0 will
5
+ * always represent the lightest version, while X100 will present the
6
+ * darkest version of a hue/neutral.
7
+ */
8
+ export declare function getColorValue(variable: string): string;
9
+ export declare const black = "#1a1b1c";
10
+ export declare const white = "#fff";
11
+ export declare const neutral: {
12
+ readonly N5: string;
13
+ readonly N10: string;
14
+ readonly N20: string;
15
+ readonly N30: string;
16
+ readonly N40: string;
17
+ readonly N50: string;
18
+ readonly N60: string;
19
+ readonly N70: string;
20
+ readonly N80: string;
21
+ readonly N90: string;
22
+ };
23
+ export declare const blue: {
24
+ readonly B5: string;
25
+ readonly B10: string;
26
+ readonly B20: string;
27
+ readonly B30: string;
28
+ readonly B40: string;
29
+ readonly B50: string;
30
+ readonly B60: string;
31
+ readonly B70: string;
32
+ readonly B80: string;
33
+ readonly B90: string;
34
+ };
35
+ export declare const green: {
36
+ readonly G5: string;
37
+ readonly G10: string;
38
+ readonly G20: string;
39
+ readonly G30: string;
40
+ readonly G40: string;
41
+ readonly G50: string;
42
+ readonly G60: string;
43
+ readonly G70: string;
44
+ readonly G80: string;
45
+ readonly G90: string;
46
+ };
47
+ export declare const red: {
48
+ readonly R5: string;
49
+ readonly R10: string;
50
+ readonly R20: string;
51
+ readonly R30: string;
52
+ readonly R40: string;
53
+ readonly R50: string;
54
+ readonly R60: string;
55
+ readonly R70: string;
56
+ readonly R80: string;
57
+ readonly R90: string;
58
+ };
59
+ export declare const orange: {
60
+ readonly O5: string;
61
+ readonly O10: string;
62
+ readonly O20: string;
63
+ readonly O30: string;
64
+ readonly O40: string;
65
+ readonly O50: string;
66
+ readonly O60: string;
67
+ readonly O70: string;
68
+ readonly O80: string;
69
+ readonly O90: string;
70
+ };
71
+ export declare const purple: {
72
+ readonly P5: string;
73
+ readonly P10: string;
74
+ readonly P20: string;
75
+ readonly P30: string;
76
+ readonly P40: string;
77
+ readonly P50: string;
78
+ readonly P60: string;
79
+ readonly P70: string;
80
+ readonly P80: string;
81
+ readonly P90: string;
82
+ };
83
+ export declare const utilization: {
84
+ working: string;
85
+ moving: string;
86
+ idling: string;
87
+ stopped: string;
88
+ active: string;
89
+ operating: string;
90
+ };
91
+ export declare const colors: {
92
+ readonly utilization: {
93
+ working: string;
94
+ moving: string;
95
+ idling: string;
96
+ stopped: string;
97
+ active: string;
98
+ operating: string;
99
+ };
100
+ readonly black: "#1a1b1c";
101
+ readonly white: "#fff";
102
+ readonly P5: string;
103
+ readonly P10: string;
104
+ readonly P20: string;
105
+ readonly P30: string;
106
+ readonly P40: string;
107
+ readonly P50: string;
108
+ readonly P60: string;
109
+ readonly P70: string;
110
+ readonly P80: string;
111
+ readonly P90: string;
112
+ readonly O5: string;
113
+ readonly O10: string;
114
+ readonly O20: string;
115
+ readonly O30: string;
116
+ readonly O40: string;
117
+ readonly O50: string;
118
+ readonly O60: string;
119
+ readonly O70: string;
120
+ readonly O80: string;
121
+ readonly O90: string;
122
+ readonly R5: string;
123
+ readonly R10: string;
124
+ readonly R20: string;
125
+ readonly R30: string;
126
+ readonly R40: string;
127
+ readonly R50: string;
128
+ readonly R60: string;
129
+ readonly R70: string;
130
+ readonly R80: string;
131
+ readonly R90: string;
132
+ readonly G5: string;
133
+ readonly G10: string;
134
+ readonly G20: string;
135
+ readonly G30: string;
136
+ readonly G40: string;
137
+ readonly G50: string;
138
+ readonly G60: string;
139
+ readonly G70: string;
140
+ readonly G80: string;
141
+ readonly G90: string;
142
+ readonly B5: string;
143
+ readonly B10: string;
144
+ readonly B20: string;
145
+ readonly B30: string;
146
+ readonly B40: string;
147
+ readonly B50: string;
148
+ readonly B60: string;
149
+ readonly B70: string;
150
+ readonly B80: string;
151
+ readonly B90: string;
152
+ readonly N5: string;
153
+ readonly N10: string;
154
+ readonly N20: string;
155
+ readonly N30: string;
156
+ readonly N40: string;
157
+ readonly N50: string;
158
+ readonly N60: string;
159
+ readonly N70: string;
160
+ readonly N80: string;
161
+ readonly N90: string;
162
+ };
163
+ export declare type Colors = typeof colors;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Elevation is based on N100 with an alpha channel. E(X)A variants
3
+ * are for active versions(e.g. hover).
4
+ */
5
+ export declare const elevation: {
6
+ readonly E05: "var(--box-shadow-sm)";
7
+ readonly E10: "var(--box-shadow-DEFAULT)";
8
+ readonly E10A: "var(--box-shadow-md)";
9
+ readonly E20: "var(--box-shadow-lg)";
10
+ readonly E30: "var(--box-shadow-xl)";
11
+ readonly E40: "var(--box-shadow-2xl)";
12
+ };
13
+ export declare type Elevation = typeof elevation;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns the HEX color based on a Color from the theme.
3
+ * Reads the RGB value from the underlying CSS variable and convert to HEX.
4
+ *
5
+ * Example: getHEX(theme.colors.B50) -> #3b82f6
6
+ *
7
+ * @param variable A color from the `colors` object of the Theme
8
+ * @returns HEX color
9
+ */
10
+ export declare const getHEX: (variable: string) => string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Reads the value of the CSS custom Property connected to the design torken.
3
+ * ATTENTION: For colors use getHEX
4
+ */
5
+ export declare function getValuesFromDesignToken(designToken: string | number): string | number;
@@ -0,0 +1,40 @@
1
+ export declare const breakpoints: {
2
+ xs: number;
3
+ sm: number;
4
+ md: number;
5
+ lg: number;
6
+ xl: number;
7
+ xxl: number;
8
+ xxxl: number;
9
+ };
10
+ export declare type Breakpoint = keyof typeof breakpoints;
11
+ /**
12
+ * Track units media queries.
13
+ */
14
+ export declare const mediaQuery: import("styled-media-query").MediaGenerator<{
15
+ xs: string;
16
+ sm: string;
17
+ md: string;
18
+ lg: string;
19
+ xl: string;
20
+ xxl: string;
21
+ xxxl: string;
22
+ }, any>;
23
+ export declare const windowWidth: {
24
+ lessThan: (size: keyof typeof breakpoints) => boolean;
25
+ greaterThan: (size: keyof typeof breakpoints) => boolean;
26
+ between: (first: keyof typeof breakpoints, second: keyof typeof breakpoints) => boolean;
27
+ };
28
+ /**
29
+ --------
30
+ BOOTSTRAP
31
+ --------
32
+ grid-breakpoints: (
33
+ xs: 0,
34
+ sm: 576px,
35
+ md: 768px,
36
+ lg: 992px,
37
+ xl: 1200px,
38
+ xxl: 1400px
39
+ );
40
+ */
@@ -0,0 +1,19 @@
1
+ export declare const size: {
2
+ /** --spacing-0: 0px; */
3
+ readonly none: "var(--spacing-0)";
4
+ /** --spacing-1: 0.25rem; */
5
+ readonly tiny: "var(--spacing-1)";
6
+ /** --spacing-2: 0.5rem; */
7
+ readonly mini: "var(--spacing-2)";
8
+ /** --spacing-3: 0.75rem; */
9
+ readonly small: "var(--spacing-3)";
10
+ /** --spacing-4: 1rem; */
11
+ readonly medium: "var(--spacing-4)";
12
+ /** --spacing-6: 1.5rem; */
13
+ readonly large: "var(--spacing-6)";
14
+ /** --spacing-8: 2rem; */
15
+ readonly giant: "var(--spacing-8)";
16
+ /** --spacing-10: 2.5rem; */
17
+ readonly enormous: "var(--spacing-10)";
18
+ };
19
+ export declare type Size = typeof size;
@@ -0,0 +1,15 @@
1
+ import { Colors } from "./colors";
2
+ import { Elevation } from "./elevation";
3
+ import { Size } from "./size";
4
+ import { FontSize, FontWeight } from "./typography";
5
+ import { ZIndex } from "./zIndex";
6
+ export interface Tokens {
7
+ colors: Colors;
8
+ size: Size;
9
+ fontSize: FontSize;
10
+ fontWeight: FontWeight;
11
+ fontFamily: string;
12
+ elevation: Elevation;
13
+ zIndex: ZIndex;
14
+ }
15
+ export declare const tokens: Tokens;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Based on a root size of 16px.
3
+ */
4
+ export declare const fontSize: {
5
+ readonly primary: "var( --font-size-3xl)";
6
+ readonly secondary: "var(--font-size-lg)";
7
+ readonly tertiary: "var(--font-size-base)";
8
+ readonly subtitle: "var(--font-size-base)";
9
+ readonly body: "var(--font-size-sm)";
10
+ readonly small: "var(--font-size-xs)";
11
+ };
12
+ export declare type FontSize = typeof fontSize;
13
+ /**
14
+ * Primary font weights.
15
+ */
16
+ export declare const fontWeight: {
17
+ readonly normal: 400;
18
+ readonly bold: 600;
19
+ };
20
+ export declare type FontWeight = typeof fontWeight;
@@ -0,0 +1,9 @@
1
+ export declare const zIndex: {
2
+ readonly hidden: -1;
3
+ readonly default: 1;
4
+ readonly top: 5;
5
+ readonly overlay: 10;
6
+ readonly popover: 20;
7
+ readonly toast: 100;
8
+ };
9
+ export declare type ZIndex = typeof zIndex;