@saas-ui/react 3.0.0-next.38 → 3.0.0-next.39
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/dist/.tsbuildinfo.json +1 -1
- package/dist/components/accordion/accordion.recipe.js +2 -2
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/editable/editable.recipe.js +7 -1
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/index.js +1 -1
- package/dist/components/heading/heading.recipe.d.ts +33 -11
- package/dist/components/heading/heading.recipe.js +55 -11
- package/dist/components/menu/menu.recipe.d.ts +7 -6
- package/dist/components/menu/menu.recipe.js +12 -11
- package/dist/components/navbar/navbar.d.ts +2 -1
- package/dist/components/navbar/navbar.js +2 -1
- package/dist/components/navbar/navbar.recipe.d.ts +14 -2
- package/dist/components/navbar/navbar.recipe.js +22 -3
- package/dist/components/radio/radiomark.recipe.js +1 -0
- package/dist/components/sidebar/sidebar-nav-item.recipe.js +3 -0
- package/dist/components/skeleton/skeleton.recipe.d.ts +1 -0
- package/dist/components/skeleton/skeleton.recipe.js +1 -0
- package/dist/components/switch/switch.recipe.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/theme/global-css.js +0 -4
- package/dist/theme/layer-styles.js +1 -1
- package/dist/theme/recipes.d.ts +34 -11
- package/dist/theme/semantic-tokens/colors.js +2 -2
- package/dist/theme/semantic-tokens/shadows.d.ts +6 -0
- package/dist/theme/semantic-tokens/shadows.js +6 -0
- package/dist/theme/slot-recipes.d.ts +21 -8
- package/dist/theme/text-styles.js +59 -15
- package/dist/theme/tokens/letter-spacing.d.ts +39 -0
- package/dist/theme/tokens/letter-spacing.js +18 -5
- package/dist/theme/tokens/line-heights.d.ts +49 -13
- package/dist/theme/tokens/line-heights.js +25 -13
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineSlotRecipe } from '@chakra-ui/react';
|
2
2
|
export const navbarSlotRecipe = defineSlotRecipe({
|
3
3
|
className: 'sui-navbar',
|
4
|
-
slots: ['root', 'content', 'brand', 'item', 'link'],
|
4
|
+
slots: ['root', 'content', 'brand', 'itemGroup', 'item', 'link'],
|
5
5
|
base: {
|
6
6
|
root: {
|
7
7
|
display: 'flex',
|
@@ -38,6 +38,13 @@ export const navbarSlotRecipe = defineSlotRecipe({
|
|
38
38
|
whiteSpace: 'nowrap',
|
39
39
|
boxSizing: 'border-box',
|
40
40
|
},
|
41
|
+
itemGroup: {
|
42
|
+
display: 'flex',
|
43
|
+
alignItems: 'center',
|
44
|
+
justifyContent: 'flex-start',
|
45
|
+
height: 'full',
|
46
|
+
bg: 'transparent',
|
47
|
+
},
|
41
48
|
link: {
|
42
49
|
bg: 'transparent',
|
43
50
|
color: 'currentColor',
|
@@ -47,7 +54,7 @@ export const navbarSlotRecipe = defineSlotRecipe({
|
|
47
54
|
textDecoration: 'none',
|
48
55
|
whiteSpace: 'nowrap',
|
49
56
|
boxSizing: 'border-box',
|
50
|
-
borderRadius: 'md',
|
57
|
+
borderRadius: 'control.md',
|
51
58
|
transitionProperty: 'common',
|
52
59
|
transitionDuration: 'moderate',
|
53
60
|
lineHeight: 1,
|
@@ -74,9 +81,21 @@ export const navbarSlotRecipe = defineSlotRecipe({
|
|
74
81
|
},
|
75
82
|
solid: {
|
76
83
|
root: {
|
77
|
-
bg: 'colorPalette.
|
84
|
+
bg: 'colorPalette.solid',
|
78
85
|
color: 'colorPalette.contrast',
|
79
86
|
},
|
87
|
+
link: {
|
88
|
+
_hover: {
|
89
|
+
bg: 'colorPalette.contrast/10',
|
90
|
+
},
|
91
|
+
},
|
92
|
+
},
|
93
|
+
glass: {
|
94
|
+
root: {
|
95
|
+
bg: 'bg.overlay',
|
96
|
+
backdropFilter: 'var(--overlay-effect)',
|
97
|
+
color: 'fg',
|
98
|
+
},
|
80
99
|
},
|
81
100
|
},
|
82
101
|
size: {
|
@@ -22,6 +22,9 @@ export const sidebarNavItemSlotRecipe = defineSlotRecipe({
|
|
22
22
|
transitionDuration: 'fast',
|
23
23
|
focusVisibleRing: 'inside',
|
24
24
|
focusRingWidth: '1px',
|
25
|
+
_disabled: {
|
26
|
+
layerStyle: 'disabled',
|
27
|
+
},
|
25
28
|
'& > svg': {
|
26
29
|
boxSize: 4,
|
27
30
|
color: 'var(--sidebar-item-icon-color)',
|
package/dist/index.d.ts
CHANGED
@@ -34,7 +34,7 @@ export { Command } from './components/command/index.ts';
|
|
34
34
|
export { DataList, useDataListStyles } from './components/data-list/index.ts';
|
35
35
|
export { Dialog } from './components/dialog/index.ts';
|
36
36
|
export { Drawer } from './components/drawer/index.ts';
|
37
|
-
export { Editable } from './components/editable/index.ts';
|
37
|
+
export { Editable, useEditable, useEditableContext, } from './components/editable/index.ts';
|
38
38
|
export { EmptyState, type EmptyStateProps, } from './components/empty-state/index.ts';
|
39
39
|
export { FileUpload, useFileUploadContext, } from './components/file-upload/index.ts';
|
40
40
|
export { Field, useFieldContext, useFieldStyles, } from './components/field/index.ts';
|
package/dist/index.js
CHANGED
@@ -29,7 +29,7 @@ export { Command } from "./components/command/index.js";
|
|
29
29
|
export { DataList, useDataListStyles } from "./components/data-list/index.js";
|
30
30
|
export { Dialog } from "./components/dialog/index.js";
|
31
31
|
export { Drawer } from "./components/drawer/index.js";
|
32
|
-
export { Editable } from "./components/editable/index.js";
|
32
|
+
export { Editable, useEditable, useEditableContext, } from "./components/editable/index.js";
|
33
33
|
export { EmptyState, } from "./components/empty-state/index.js";
|
34
34
|
export { FileUpload, useFileUploadContext, } from "./components/file-upload/index.js";
|
35
35
|
export { Field, useFieldContext, useFieldStyles, } from "./components/field/index.js";
|
package/dist/theme/global-css.js
CHANGED
@@ -35,16 +35,12 @@ export const globalCss = defineGlobalStyles({
|
|
35
35
|
'--cursor-button': 'default',
|
36
36
|
'--radius-full': '9999px',
|
37
37
|
'--scale-factor': '1',
|
38
|
-
'--overlay-translucency': '95%',
|
39
38
|
'--overlay-effect': 'blur({blurs.lg})',
|
40
39
|
'--backdrop-effect': 'none',
|
41
40
|
'--scrollbar-color': 'colors.border.emphasized',
|
42
41
|
scrollbarWidth: 'thin',
|
43
42
|
scrollbarColor: 'var(--scrollbar-color) transparent',
|
44
43
|
},
|
45
|
-
'.dark *': {
|
46
|
-
'--overlay-translucency': '85%',
|
47
|
-
},
|
48
44
|
body: {
|
49
45
|
color: 'fg',
|
50
46
|
bg: 'bg',
|
package/dist/theme/recipes.d.ts
CHANGED
@@ -253,37 +253,59 @@ export declare const recipes: {
|
|
253
253
|
heading: import("@chakra-ui/react").RecipeDefinition<{
|
254
254
|
size: {
|
255
255
|
xs: {
|
256
|
-
|
256
|
+
fontSize: "xs";
|
257
|
+
lineHeight: "heading.xs";
|
258
|
+
letterSpacing: "heading.xs";
|
257
259
|
};
|
258
260
|
sm: {
|
259
|
-
|
261
|
+
fontSize: "sm";
|
262
|
+
lineHeight: "heading.sm";
|
263
|
+
letterSpacing: "heading.sm";
|
260
264
|
};
|
261
265
|
md: {
|
262
|
-
|
266
|
+
fontSize: "md";
|
267
|
+
lineHeight: "heading.md";
|
268
|
+
letterSpacing: "heading.md";
|
263
269
|
};
|
264
270
|
lg: {
|
265
|
-
|
271
|
+
fontSize: "lg";
|
272
|
+
lineHeight: "heading.lg";
|
273
|
+
letterSpacing: "heading.lg";
|
266
274
|
};
|
267
275
|
xl: {
|
268
|
-
|
276
|
+
fontSize: "xl";
|
277
|
+
lineHeight: "heading.xl";
|
278
|
+
letterSpacing: "heading.xl";
|
269
279
|
};
|
270
280
|
'2xl': {
|
271
|
-
|
281
|
+
fontSize: "2xl";
|
282
|
+
lineHeight: "heading.2xl";
|
283
|
+
letterSpacing: "heading.2xl";
|
272
284
|
};
|
273
285
|
'3xl': {
|
274
|
-
|
286
|
+
fontSize: "3xl";
|
287
|
+
lineHeight: "heading.3xl";
|
288
|
+
letterSpacing: "heading.3xl";
|
275
289
|
};
|
276
290
|
'4xl': {
|
277
|
-
|
291
|
+
fontSize: "4xl";
|
292
|
+
lineHeight: "heading.4xl";
|
293
|
+
letterSpacing: "heading.4xl";
|
278
294
|
};
|
279
295
|
'5xl': {
|
280
|
-
|
296
|
+
fontSize: "5xl";
|
297
|
+
lineHeight: "heading.5xl";
|
298
|
+
letterSpacing: "heading.5xl";
|
281
299
|
};
|
282
300
|
'6xl': {
|
283
|
-
|
301
|
+
fontSize: "6xl";
|
302
|
+
lineHeight: "heading.6xl";
|
303
|
+
letterSpacing: "heading.6xl";
|
284
304
|
};
|
285
305
|
'7xl': {
|
286
|
-
|
306
|
+
fontSize: "7xl";
|
307
|
+
lineHeight: "heading.7xl";
|
308
|
+
letterSpacing: "heading.7xl";
|
287
309
|
};
|
288
310
|
};
|
289
311
|
}>;
|
@@ -553,6 +575,7 @@ export declare const recipes: {
|
|
553
575
|
};
|
554
576
|
none: {
|
555
577
|
animation: "none";
|
578
|
+
background: "bg.muted";
|
556
579
|
};
|
557
580
|
};
|
558
581
|
}>;
|
@@ -74,8 +74,8 @@ export const semanticColors = defineSemanticTokens.colors({
|
|
74
74
|
},
|
75
75
|
overlay: {
|
76
76
|
value: {
|
77
|
-
_light: 'color-mix(in oklch, {colors.white} var(--overlay-translucency), transparent)',
|
78
|
-
_dark: 'color-mix(in oklch, {colors.gray.900} var(--overlay-translucency), transparent)',
|
77
|
+
_light: 'color-mix(in oklch, {colors.white} var(--overlay-translucency, 95%), transparent)',
|
78
|
+
_dark: 'color-mix(in oklch, {colors.gray.900} var(--overlay-translucency, 85%), transparent)',
|
79
79
|
},
|
80
80
|
},
|
81
81
|
backdrop: {
|
@@ -48,4 +48,10 @@ export const semanticShadows = defineSemanticTokens.shadows({
|
|
48
48
|
_dark: 'inset 0 -1px 2px 0 {colors.gray.300/4}, inset 0 0 0 1px {colors.gray.300/4}',
|
49
49
|
},
|
50
50
|
},
|
51
|
+
overlay: {
|
52
|
+
value: {
|
53
|
+
_light: '0px 8px 16px {colors.gray.900/5}, 0px 0px 4px {colors.gray.900/5}, 0px 0px 1px {colors.gray.500/80}',
|
54
|
+
_dark: '0px 8px 16px {black/20}, 0px 0px 3px {colors.gray.900/20}, 0px 0px 1px {colors.gray.100/80}',
|
55
|
+
},
|
56
|
+
},
|
51
57
|
});
|
@@ -1419,7 +1419,7 @@ export declare const slotRecipes: {
|
|
1419
1419
|
subtle: {
|
1420
1420
|
item: {
|
1421
1421
|
_highlighted: {
|
1422
|
-
bg: "bg.
|
1422
|
+
bg: "bg.emphasized";
|
1423
1423
|
};
|
1424
1424
|
};
|
1425
1425
|
};
|
@@ -1436,18 +1436,19 @@ export declare const slotRecipes: {
|
|
1436
1436
|
sm: {
|
1437
1437
|
content: {
|
1438
1438
|
minW: "8rem";
|
1439
|
-
padding: "
|
1439
|
+
padding: "1";
|
1440
|
+
borderRadius: "panel.md";
|
1440
1441
|
};
|
1441
1442
|
item: {
|
1442
1443
|
gap: "1";
|
1443
1444
|
textStyle: "xs";
|
1444
|
-
|
1445
|
+
minH: "6";
|
1445
1446
|
px: "1.5";
|
1446
1447
|
ps: "var(--menu-item-inset, {sizes.1.5})";
|
1447
1448
|
};
|
1448
1449
|
itemGroupLabel: {
|
1449
1450
|
textStyle: "xs";
|
1450
|
-
|
1451
|
+
minH: "6";
|
1451
1452
|
px: "1.5";
|
1452
1453
|
};
|
1453
1454
|
};
|
@@ -1459,13 +1460,13 @@ export declare const slotRecipes: {
|
|
1459
1460
|
item: {
|
1460
1461
|
gap: "2";
|
1461
1462
|
textStyle: "sm";
|
1462
|
-
|
1463
|
+
minH: "7";
|
1463
1464
|
px: "2";
|
1464
1465
|
ps: "var(--menu-item-inset, {sizes.2})";
|
1465
1466
|
};
|
1466
1467
|
itemGroupLabel: {
|
1467
1468
|
textStyle: "sm";
|
1468
|
-
|
1469
|
+
minH: "7";
|
1469
1470
|
px: "2";
|
1470
1471
|
};
|
1471
1472
|
};
|
@@ -3700,7 +3701,7 @@ export declare const slotRecipes: {
|
|
3700
3701
|
};
|
3701
3702
|
};
|
3702
3703
|
}>;
|
3703
|
-
suiNavbar: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "link" | "root" | "item" | "brand", {
|
3704
|
+
suiNavbar: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "link" | "root" | "item" | "itemGroup" | "brand", {
|
3704
3705
|
variant: {
|
3705
3706
|
neutral: {
|
3706
3707
|
root: {
|
@@ -3710,9 +3711,21 @@ export declare const slotRecipes: {
|
|
3710
3711
|
};
|
3711
3712
|
solid: {
|
3712
3713
|
root: {
|
3713
|
-
bg: "colorPalette.
|
3714
|
+
bg: "colorPalette.solid";
|
3714
3715
|
color: "colorPalette.contrast";
|
3715
3716
|
};
|
3717
|
+
link: {
|
3718
|
+
_hover: {
|
3719
|
+
bg: "colorPalette.contrast/10";
|
3720
|
+
};
|
3721
|
+
};
|
3722
|
+
};
|
3723
|
+
glass: {
|
3724
|
+
root: {
|
3725
|
+
bg: "bg.overlay";
|
3726
|
+
backdropFilter: "var(--overlay-effect)";
|
3727
|
+
color: "fg";
|
3728
|
+
};
|
3716
3729
|
};
|
3717
3730
|
};
|
3718
3731
|
size: {
|
@@ -1,35 +1,79 @@
|
|
1
1
|
import { defineTextStyles } from '@chakra-ui/react';
|
2
2
|
export const textStyles = defineTextStyles({
|
3
|
-
'2xs': {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
'2xs': {
|
4
|
+
value: {
|
5
|
+
fontSize: '2xs',
|
6
|
+
lineHeight: '2xs',
|
7
|
+
},
|
8
|
+
},
|
9
|
+
xs: {
|
10
|
+
value: {
|
11
|
+
fontSize: 'xs',
|
12
|
+
lineHeight: 'xs',
|
13
|
+
},
|
14
|
+
},
|
15
|
+
sm: {
|
16
|
+
value: {
|
17
|
+
fontSize: 'sm',
|
18
|
+
lineHeight: 'sm',
|
19
|
+
},
|
20
|
+
},
|
21
|
+
md: {
|
22
|
+
value: {
|
23
|
+
fontSize: 'md',
|
24
|
+
lineHeight: 'md',
|
25
|
+
},
|
26
|
+
},
|
27
|
+
lg: {
|
28
|
+
value: {
|
29
|
+
fontSize: 'lg',
|
30
|
+
lineHeight: 'lg',
|
31
|
+
},
|
32
|
+
},
|
33
|
+
xl: {
|
34
|
+
value: {
|
35
|
+
fontSize: 'xl',
|
36
|
+
lineHeight: 'xl',
|
37
|
+
},
|
38
|
+
},
|
39
|
+
'2xl': {
|
40
|
+
value: {
|
41
|
+
fontSize: '2xl',
|
42
|
+
lineHeight: '2xl',
|
43
|
+
},
|
44
|
+
},
|
45
|
+
'3xl': {
|
46
|
+
value: {
|
47
|
+
fontSize: '3xl',
|
48
|
+
lineHeight: '3xl',
|
49
|
+
},
|
50
|
+
},
|
11
51
|
'4xl': {
|
12
52
|
value: {
|
13
53
|
fontSize: '4xl',
|
14
|
-
lineHeight: '
|
15
|
-
letterSpacing: '
|
54
|
+
lineHeight: '4xl',
|
55
|
+
letterSpacing: 'tight',
|
16
56
|
},
|
17
57
|
},
|
18
58
|
'5xl': {
|
19
59
|
value: {
|
20
60
|
fontSize: '5xl',
|
21
|
-
lineHeight: '
|
22
|
-
letterSpacing: '
|
61
|
+
lineHeight: '5xl',
|
62
|
+
letterSpacing: 'tight',
|
23
63
|
},
|
24
64
|
},
|
25
65
|
'6xl': {
|
26
|
-
value: {
|
66
|
+
value: {
|
67
|
+
fontSize: '6xl',
|
68
|
+
lineHeight: '6xl',
|
69
|
+
letterSpacing: 'tighter',
|
70
|
+
},
|
27
71
|
},
|
28
72
|
'7xl': {
|
29
73
|
value: {
|
30
74
|
fontSize: '7xl',
|
31
|
-
lineHeight: '
|
32
|
-
letterSpacing: '
|
75
|
+
lineHeight: '7xl',
|
76
|
+
letterSpacing: 'tightest',
|
33
77
|
},
|
34
78
|
},
|
35
79
|
none: {
|
@@ -1,10 +1,16 @@
|
|
1
1
|
export declare const letterSpacings: {
|
2
|
+
tightest: {
|
3
|
+
value: string;
|
4
|
+
};
|
2
5
|
tighter: {
|
3
6
|
value: string;
|
4
7
|
};
|
5
8
|
tight: {
|
6
9
|
value: string;
|
7
10
|
};
|
11
|
+
normal: {
|
12
|
+
value: string;
|
13
|
+
};
|
8
14
|
wide: {
|
9
15
|
value: string;
|
10
16
|
};
|
@@ -14,4 +20,37 @@ export declare const letterSpacings: {
|
|
14
20
|
widest: {
|
15
21
|
value: string;
|
16
22
|
};
|
23
|
+
'heading.xs': {
|
24
|
+
value: string;
|
25
|
+
};
|
26
|
+
'heading.sm': {
|
27
|
+
value: string;
|
28
|
+
};
|
29
|
+
'heading.md': {
|
30
|
+
value: string;
|
31
|
+
};
|
32
|
+
'heading.lg': {
|
33
|
+
value: string;
|
34
|
+
};
|
35
|
+
'heading.xl': {
|
36
|
+
value: string;
|
37
|
+
};
|
38
|
+
'heading.2xl': {
|
39
|
+
value: string;
|
40
|
+
};
|
41
|
+
'heading.3xl': {
|
42
|
+
value: string;
|
43
|
+
};
|
44
|
+
'heading.4xl': {
|
45
|
+
value: string;
|
46
|
+
};
|
47
|
+
'heading.5xl': {
|
48
|
+
value: string;
|
49
|
+
};
|
50
|
+
'heading.6xl': {
|
51
|
+
value: string;
|
52
|
+
};
|
53
|
+
'heading.7xl': {
|
54
|
+
value: string;
|
55
|
+
};
|
17
56
|
};
|
@@ -1,8 +1,21 @@
|
|
1
1
|
import { defineTokens } from '@chakra-ui/react';
|
2
2
|
export const letterSpacings = defineTokens.letterSpacings({
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
tightest: { value: '-0.05em' },
|
4
|
+
tighter: { value: '-0.025em' },
|
5
|
+
tight: { value: '-0.0125em' },
|
6
|
+
normal: { value: '0' },
|
7
|
+
wide: { value: '0.0125em' },
|
8
|
+
wider: { value: '0.025em' },
|
9
|
+
widest: { value: '0.05em' },
|
10
|
+
'heading.xs': { value: '0.0025em' },
|
11
|
+
'heading.sm': { value: '0' },
|
12
|
+
'heading.md': { value: '0' },
|
13
|
+
'heading.lg': { value: '-0.0025em' },
|
14
|
+
'heading.xl': { value: '-0.005' },
|
15
|
+
'heading.2xl': { value: '-0.00625em' },
|
16
|
+
'heading.3xl': { value: '-0.0075em' },
|
17
|
+
'heading.4xl': { value: '-0.01em' },
|
18
|
+
'heading.5xl': { value: '-0.025em' },
|
19
|
+
'heading.6xl': { value: '-0.03em' },
|
20
|
+
'heading.7xl': { value: '-0.035em' },
|
8
21
|
});
|
@@ -1,41 +1,77 @@
|
|
1
1
|
export declare const lineHeights: {
|
2
|
-
|
2
|
+
'2xs': {
|
3
3
|
value: string;
|
4
4
|
};
|
5
|
-
|
5
|
+
xs: {
|
6
6
|
value: string;
|
7
7
|
};
|
8
|
-
|
8
|
+
sm: {
|
9
9
|
value: string;
|
10
10
|
};
|
11
|
-
|
11
|
+
md: {
|
12
12
|
value: string;
|
13
13
|
};
|
14
|
-
|
14
|
+
lg: {
|
15
15
|
value: string;
|
16
16
|
};
|
17
|
-
|
17
|
+
xl: {
|
18
18
|
value: string;
|
19
19
|
};
|
20
|
-
'
|
20
|
+
'2xl': {
|
21
21
|
value: string;
|
22
22
|
};
|
23
|
-
'
|
23
|
+
'3xl': {
|
24
24
|
value: string;
|
25
25
|
};
|
26
|
-
'
|
26
|
+
'4xl': {
|
27
27
|
value: string;
|
28
28
|
};
|
29
|
-
'
|
29
|
+
'5xl': {
|
30
30
|
value: string;
|
31
31
|
};
|
32
|
-
'
|
32
|
+
'6xl': {
|
33
33
|
value: string;
|
34
34
|
};
|
35
|
-
'
|
35
|
+
'7xl': {
|
36
36
|
value: string;
|
37
37
|
};
|
38
|
-
'
|
38
|
+
'8xl': {
|
39
|
+
value: string;
|
40
|
+
};
|
41
|
+
'9xl': {
|
42
|
+
value: string;
|
43
|
+
};
|
44
|
+
'heading.xs': {
|
45
|
+
value: string;
|
46
|
+
};
|
47
|
+
'heading.sm': {
|
48
|
+
value: string;
|
49
|
+
};
|
50
|
+
'heading.md': {
|
51
|
+
value: string;
|
52
|
+
};
|
53
|
+
'heading.lg': {
|
54
|
+
value: string;
|
55
|
+
};
|
56
|
+
'heading.xl': {
|
57
|
+
value: string;
|
58
|
+
};
|
59
|
+
'heading.2xl': {
|
60
|
+
value: string;
|
61
|
+
};
|
62
|
+
'heading.3xl': {
|
63
|
+
value: string;
|
64
|
+
};
|
65
|
+
'heading.4xl': {
|
66
|
+
value: string;
|
67
|
+
};
|
68
|
+
'heading.5xl': {
|
69
|
+
value: string;
|
70
|
+
};
|
71
|
+
'heading.6xl': {
|
72
|
+
value: string;
|
73
|
+
};
|
74
|
+
'heading.7xl': {
|
39
75
|
value: string;
|
40
76
|
};
|
41
77
|
};
|
@@ -1,17 +1,29 @@
|
|
1
1
|
import { defineTokens } from '@chakra-ui/react';
|
2
2
|
import { scaleToken } from "../utils.js";
|
3
3
|
export const lineHeights = defineTokens.lineHeights({
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
'
|
11
|
-
'
|
12
|
-
'
|
13
|
-
'
|
14
|
-
'
|
15
|
-
'
|
16
|
-
'
|
4
|
+
'2xs': { value: scaleToken('0.845rem') }, // 1.25
|
5
|
+
xs: { value: scaleToken('1rem') }, //1.33
|
6
|
+
sm: { value: scaleToken('1.1375rem') }, // 1.4
|
7
|
+
md: { value: scaleToken('1.26rem') }, // 1.44
|
8
|
+
lg: { value: scaleToken('1.5rem') }, // 1.5
|
9
|
+
xl: { value: scaleToken('1.62rem') }, // 1.44
|
10
|
+
'2xl': { value: scaleToken('1.75rem') }, // 1.4
|
11
|
+
'3xl': { value: scaleToken('1.95rem') }, // 1.3
|
12
|
+
'4xl': { value: scaleToken('2.345rem') }, // 1.25
|
13
|
+
'5xl': { value: scaleToken('2.7rem') }, // 1.2
|
14
|
+
'6xl': { value: scaleToken('3.45rem') }, // 1.15
|
15
|
+
'7xl': { value: scaleToken('4.125rem') }, // 1.1
|
16
|
+
'8xl': { value: scaleToken('4.5rem') }, // 1
|
17
|
+
'9xl': { value: scaleToken('6rem') }, // 1
|
18
|
+
'heading.xs': { value: scaleToken('0.95rem') }, // 1.33
|
19
|
+
'heading.sm': { value: scaleToken('1rem') }, // 1.28
|
20
|
+
'heading.md': { value: scaleToken('1.20rem') }, // 1.375
|
21
|
+
'heading.lg': { value: scaleToken('1.33rem') }, // 1.33
|
22
|
+
'heading.xl': { value: scaleToken('1.46rem') }, // 1.3
|
23
|
+
'heading.2xl': { value: scaleToken('1.55rem') }, // 1.25
|
24
|
+
'heading.3xl': { value: scaleToken('1.8rem') }, // 1.2
|
25
|
+
'heading.4xl': { value: scaleToken('2.15rem') }, // 1.15
|
26
|
+
'heading.5xl': { value: scaleToken('2.475rem') }, // 1.1
|
27
|
+
'heading.6xl': { value: scaleToken('3rem') }, // 1
|
28
|
+
'heading.7xl': { value: scaleToken('3.75rem') }, // 1
|
17
29
|
});
|