-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBody.css.ts
92 lines (91 loc) · 2.46 KB
/
Body.css.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { strictRecipe } from "../../util/strictRecipe";
import { bentoSprinkles } from "../../internal/sprinkles.css";
import { ellipsis } from "../typography.css";
export const bodyRecipe = strictRecipe({
base: bentoSprinkles({ fontFamily: "body" }),
variants: {
size: {
small: bentoSprinkles({
fontSize: "bodySmall",
lineHeight: "bodySmall",
letterSpacing: "bodySmall",
}),
medium: bentoSprinkles({
fontSize: "bodyMedium",
lineHeight: "bodyMedium",
letterSpacing: "bodyMedium",
}),
large: bentoSprinkles({
fontSize: "bodyLarge",
lineHeight: "bodyLarge",
letterSpacing: "bodyLarge",
}),
},
weight: {
default: {},
strong: {},
},
color: {
default: bentoSprinkles({ color: "textPrimary" }),
primary: bentoSprinkles({ color: "textPrimary" }),
secondary: bentoSprinkles({ color: "textSecondary" }),
primaryInverse: bentoSprinkles({ color: "textPrimaryInverse" }),
secondaryInverse: bentoSprinkles({ color: "textSecondaryInverse" }),
interactive: bentoSprinkles({ color: "textInteractive" }),
informative: bentoSprinkles({ color: "textInformative" }),
positive: bentoSprinkles({ color: "textPositive" }),
warning: bentoSprinkles({ color: "textWarning" }),
negative: bentoSprinkles({ color: "textNegative" }),
disabled: bentoSprinkles({ color: "textDisabled" }),
inherit: { color: "inherit" },
},
ellipsis: {
false: {},
true: ellipsis,
},
},
compoundVariants: [
{
variants: {
size: "small",
weight: "default",
},
style: bentoSprinkles({ fontWeight: "bodySmall" }),
},
{
variants: {
size: "medium",
weight: "default",
},
style: bentoSprinkles({ fontWeight: "bodyMedium" }),
},
{
variants: {
size: "large",
weight: "default",
},
style: bentoSprinkles({ fontWeight: "bodyLarge" }),
},
{
variants: {
size: "small",
weight: "strong",
},
style: bentoSprinkles({ fontWeight: "bodyStrongSmall" }),
},
{
variants: {
size: "medium",
weight: "strong",
},
style: bentoSprinkles({ fontWeight: "bodyStrongMedium" }),
},
{
variants: {
size: "large",
weight: "strong",
},
style: bentoSprinkles({ fontWeight: "bodyStrongLarge" }),
},
],
});