@phcdevworks/spectre-tokens 1.0.0 → 2.0.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/dist/index.cjs +1261 -810
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +47 -28
- package/dist/index.d.cts +1310 -86
- package/dist/index.d.ts +1310 -86
- package/dist/index.js +1261 -810
- package/dist/index.js.map +1 -1
- package/package.json +15 -4
- package/tokens/components.json +155 -0
- package/tokens/modes.json +182 -0
- package/tokens/palette.json +102 -0
- package/tokens/primitives.json +145 -0
- package/tokens/semantic-roles.json +64 -0
- package/tokens/typography.json +94 -0
- package/tokens/core.json +0 -912
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": {
|
|
3
|
+
"card": {
|
|
4
|
+
"text": { "value": "{colors.neutral.900}" },
|
|
5
|
+
"textMuted": { "value": "{colors.neutral.500}" }
|
|
6
|
+
},
|
|
7
|
+
"input": {
|
|
8
|
+
"text": { "value": "{colors.neutral.900}" },
|
|
9
|
+
"placeholder": { "value": "{colors.neutral.400}" }
|
|
10
|
+
},
|
|
11
|
+
"button": {
|
|
12
|
+
"textDefault": { "value": "{colors.neutral.900}" },
|
|
13
|
+
"textOnPrimary": { "value": "{colors.white}" }
|
|
14
|
+
},
|
|
15
|
+
"badge": {
|
|
16
|
+
"neutralBg": { "value": "{colors.neutral.100}", "metadata": { "pair": "component.badge.neutralText" } },
|
|
17
|
+
"neutralBgHover": { "value": "{colors.neutral.200}" },
|
|
18
|
+
"neutralText": { "value": "{colors.neutral.700}" },
|
|
19
|
+
"infoBg": { "value": "{colors.info.100}", "metadata": { "pair": "component.badge.infoText" } },
|
|
20
|
+
"infoBgHover": { "value": "{colors.info.200}" },
|
|
21
|
+
"infoText": { "value": "{colors.info.700}" },
|
|
22
|
+
"successBg": { "value": "{colors.success.100}", "metadata": { "pair": "component.badge.successText" } },
|
|
23
|
+
"successBgHover": { "value": "{colors.success.200}" },
|
|
24
|
+
"successText": { "value": "{colors.success.700}" },
|
|
25
|
+
"warningBg": { "value": "{colors.warning.100}", "metadata": { "pair": "component.badge.warningText" } },
|
|
26
|
+
"warningBgHover": { "value": "{colors.warning.200}" },
|
|
27
|
+
"warningText": { "value": "{colors.warning.700}" },
|
|
28
|
+
"dangerBg": { "value": "{colors.error.100}", "metadata": { "pair": "component.badge.dangerText" } },
|
|
29
|
+
"dangerBgHover": { "value": "{colors.error.200}" },
|
|
30
|
+
"dangerText": { "value": "{colors.error.700}" }
|
|
31
|
+
},
|
|
32
|
+
"iconBox": {
|
|
33
|
+
"bg": { "value": "{colors.white}" },
|
|
34
|
+
"border": { "value": "{colors.neutral.200}" },
|
|
35
|
+
"iconDefault": { "value": "{colors.info.600}" },
|
|
36
|
+
"iconSuccess": { "value": "{colors.success.600}" },
|
|
37
|
+
"iconWarning": { "value": "{colors.warning.600}" },
|
|
38
|
+
"iconDanger": { "value": "{colors.error.600}" }
|
|
39
|
+
},
|
|
40
|
+
"testimonial": {
|
|
41
|
+
"bg": { "value": "{colors.white}" },
|
|
42
|
+
"border": { "value": "{colors.neutral.200}" },
|
|
43
|
+
"text": { "value": "{colors.neutral.700}" },
|
|
44
|
+
"authorName": { "value": "{colors.neutral.900}" },
|
|
45
|
+
"authorTitle": { "value": "{colors.neutral.500}" },
|
|
46
|
+
"quoteMark": { "value": "{colors.neutral.300}" }
|
|
47
|
+
},
|
|
48
|
+
"pricingCard": {
|
|
49
|
+
"bg": { "value": "{colors.white}", "metadata": {} },
|
|
50
|
+
"border": { "value": "{colors.neutral.200}", "metadata": {} },
|
|
51
|
+
"featuredBg": { "value": "{colors.info.600}", "metadata": { "pair": "component.pricingCard.featuredText" } },
|
|
52
|
+
"featuredText": { "value": "{colors.white}", "metadata": {} },
|
|
53
|
+
"featuredBadgeBg": { "value": "{colors.warning.500}", "metadata": { "pair": "component.pricingCard.featuredBadgeText" } },
|
|
54
|
+
"featuredBadgeText": { "value": "{colors.neutral.900}", "metadata": {} },
|
|
55
|
+
"price": { "value": "{colors.neutral.900}", "metadata": {} },
|
|
56
|
+
"priceDescription": { "value": "{colors.neutral.500}", "metadata": {} }
|
|
57
|
+
},
|
|
58
|
+
"rating": {
|
|
59
|
+
"starFilled": { "value": "{colors.warning.500}" },
|
|
60
|
+
"starEmpty": { "value": "{colors.neutral.200}" },
|
|
61
|
+
"text": { "value": "{colors.neutral.500}" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"buttons": {
|
|
65
|
+
"primary": {
|
|
66
|
+
"bg": { "value": "{colors.info.600}", "metadata": { "pair": "buttons.primary.text" } },
|
|
67
|
+
"bgHover": { "value": "{colors.info.700}" },
|
|
68
|
+
"bgActive": { "value": "{colors.info.800}" },
|
|
69
|
+
"bgDisabled": { "value": "{colors.neutral.200}" },
|
|
70
|
+
"text": { "value": "{colors.white}" },
|
|
71
|
+
"textDisabled": { "value": "{colors.neutral.400}" }
|
|
72
|
+
},
|
|
73
|
+
"secondary": {
|
|
74
|
+
"bg": { "value": "{colors.white}", "metadata": { "pair": "buttons.secondary.text" } },
|
|
75
|
+
"bgHover": { "value": "{colors.neutral.50}" },
|
|
76
|
+
"bgActive": { "value": "{colors.neutral.100}" },
|
|
77
|
+
"bgDisabled": { "value": "{colors.neutral.50}" },
|
|
78
|
+
"text": { "value": "{colors.info.600}" },
|
|
79
|
+
"textDisabled": { "value": "{colors.neutral.400}" },
|
|
80
|
+
"border": { "value": "{colors.info.600}" },
|
|
81
|
+
"borderDisabled": { "value": "{colors.neutral.200}" }
|
|
82
|
+
},
|
|
83
|
+
"ghost": {
|
|
84
|
+
"bg": { "value": "transparent" },
|
|
85
|
+
"bgHover": { "value": "{colors.info.50}" },
|
|
86
|
+
"bgActive": { "value": "{colors.info.100}" },
|
|
87
|
+
"bgDisabled": { "value": "transparent" },
|
|
88
|
+
"text": { "value": "{colors.info.600}" },
|
|
89
|
+
"textDisabled": { "value": "{colors.neutral.400}" }
|
|
90
|
+
},
|
|
91
|
+
"danger": {
|
|
92
|
+
"bg": { "value": "{colors.error.600}", "metadata": { "pair": "buttons.danger.text" } },
|
|
93
|
+
"bgHover": { "value": "{colors.error.700}" },
|
|
94
|
+
"bgActive": { "value": "{colors.error.800}" },
|
|
95
|
+
"bgDisabled": { "value": "{colors.error.200}" },
|
|
96
|
+
"text": { "value": "{colors.white}" },
|
|
97
|
+
"textDisabled": { "value": "{colors.neutral.400}" }
|
|
98
|
+
},
|
|
99
|
+
"success": {
|
|
100
|
+
"bg": { "value": "{colors.success.700}", "metadata": { "pair": "buttons.success.text" } },
|
|
101
|
+
"bgHover": { "value": "{colors.success.800}" },
|
|
102
|
+
"bgActive": { "value": "{colors.success.900}" },
|
|
103
|
+
"bgDisabled": { "value": "{colors.success.200}" },
|
|
104
|
+
"text": { "value": "{colors.white}" },
|
|
105
|
+
"textDisabled": { "value": "{colors.neutral.400}" }
|
|
106
|
+
},
|
|
107
|
+
"cta": {
|
|
108
|
+
"bg": { "value": "{colors.warning.500}", "metadata": { "pair": "buttons.cta.text" } },
|
|
109
|
+
"bgHover": { "value": "{colors.warning.600}" },
|
|
110
|
+
"bgActive": { "value": "{colors.warning.700}" },
|
|
111
|
+
"bgDisabled": { "value": "{colors.warning.200}" },
|
|
112
|
+
"text": { "value": "{colors.neutral.900}" },
|
|
113
|
+
"textDisabled": { "value": "{colors.neutral.400}" },
|
|
114
|
+
"shadow": { "value": "0 4px 14px 0 {colors.warning.500} / 0.39" }
|
|
115
|
+
},
|
|
116
|
+
"accent": {
|
|
117
|
+
"bg": { "value": "{colors.accent.600}", "metadata": { "pair": "buttons.accent.text" } },
|
|
118
|
+
"bgHover": { "value": "{colors.accent.700}" },
|
|
119
|
+
"bgActive": { "value": "{colors.accent.800}" },
|
|
120
|
+
"bgDisabled": { "value": "{colors.accent.200}" },
|
|
121
|
+
"text": { "value": "{colors.white}" },
|
|
122
|
+
"textDisabled": { "value": "{colors.neutral.400}" }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"forms": {
|
|
126
|
+
"default": {
|
|
127
|
+
"bg": { "value": "{colors.white}" },
|
|
128
|
+
"border": { "value": "{colors.neutral.300}" },
|
|
129
|
+
"text": { "value": "{colors.neutral.900}" },
|
|
130
|
+
"placeholder": { "value": "{colors.neutral.400}" }
|
|
131
|
+
},
|
|
132
|
+
"hover": {
|
|
133
|
+
"border": { "value": "{colors.info.500}" }
|
|
134
|
+
},
|
|
135
|
+
"focus": {
|
|
136
|
+
"border": { "value": "{colors.info.500}" },
|
|
137
|
+
"ring": { "value": "{colors.info.500}" }
|
|
138
|
+
},
|
|
139
|
+
"valid": {
|
|
140
|
+
"border": { "value": "{colors.success.500}" },
|
|
141
|
+
"bg": { "value": "{colors.success.50}", "metadata": { "pair": "forms.valid.text" } },
|
|
142
|
+
"text": { "value": "{colors.success.700}" }
|
|
143
|
+
},
|
|
144
|
+
"invalid": {
|
|
145
|
+
"border": { "value": "{colors.error.500}" },
|
|
146
|
+
"bg": { "value": "{colors.error.50}", "metadata": { "pair": "forms.invalid.text" } },
|
|
147
|
+
"text": { "value": "{colors.error.700}" }
|
|
148
|
+
},
|
|
149
|
+
"disabled": {
|
|
150
|
+
"bg": { "value": "{colors.neutral.50}" },
|
|
151
|
+
"border": { "value": "{colors.neutral.200}" },
|
|
152
|
+
"text": { "value": "{colors.neutral.400}" }
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modes": {
|
|
3
|
+
"default": {
|
|
4
|
+
"surface": {
|
|
5
|
+
"page": {
|
|
6
|
+
"value": "{colors.neutral.50}"
|
|
7
|
+
},
|
|
8
|
+
"card": {
|
|
9
|
+
"value": "{colors.white}"
|
|
10
|
+
},
|
|
11
|
+
"input": {
|
|
12
|
+
"value": "{colors.white}"
|
|
13
|
+
},
|
|
14
|
+
"overlay": {
|
|
15
|
+
"value": "{colors.neutral.900} / 0.6"
|
|
16
|
+
},
|
|
17
|
+
"alternate": {
|
|
18
|
+
"value": "{colors.neutral.100}"
|
|
19
|
+
},
|
|
20
|
+
"hero": {
|
|
21
|
+
"value": "linear-gradient(135deg, {colors.indigo.500} 0%, {colors.violet.600} 100%)"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"text": {
|
|
25
|
+
"onPage": {
|
|
26
|
+
"default": { "value": "{colors.neutral.900}" },
|
|
27
|
+
"muted": { "value": "{colors.neutral.600}" },
|
|
28
|
+
"subtle": { "value": "{colors.neutral.500}" },
|
|
29
|
+
"meta": { "value": "{colors.neutral.500}" },
|
|
30
|
+
"brand": { "value": "{colors.brand.600}" }
|
|
31
|
+
},
|
|
32
|
+
"onSurface": {
|
|
33
|
+
"default": { "value": "{colors.neutral.900}" },
|
|
34
|
+
"muted": { "value": "{colors.neutral.600}" },
|
|
35
|
+
"subtle": { "value": "{colors.neutral.500}" },
|
|
36
|
+
"meta": { "value": "{colors.neutral.500}" },
|
|
37
|
+
"brand": { "value": "{colors.brand.600}" }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"component": {
|
|
41
|
+
"card": {
|
|
42
|
+
"text": { "value": "{colors.neutral.900}" },
|
|
43
|
+
"textMuted": { "value": "{colors.neutral.500}" }
|
|
44
|
+
},
|
|
45
|
+
"input": {
|
|
46
|
+
"text": { "value": "{colors.neutral.900}" },
|
|
47
|
+
"placeholder": { "value": "{colors.neutral.400}" }
|
|
48
|
+
},
|
|
49
|
+
"button": {
|
|
50
|
+
"textDefault": { "value": "{colors.neutral.900}" },
|
|
51
|
+
"textOnPrimary": { "value": "{colors.white}" }
|
|
52
|
+
},
|
|
53
|
+
"badge": {
|
|
54
|
+
"neutralBg": { "value": "{colors.neutral.100}", "metadata": { "pair": "modes.default.component.badge.neutralText" } },
|
|
55
|
+
"neutralText": { "value": "{colors.neutral.700}", "metadata": {} },
|
|
56
|
+
"infoBg": { "value": "{colors.info.100}", "metadata": { "pair": "modes.default.component.badge.infoText" } },
|
|
57
|
+
"infoText": { "value": "{colors.info.700}", "metadata": {} },
|
|
58
|
+
"successBg": { "value": "{colors.success.100}", "metadata": { "pair": "modes.default.component.badge.successText" } },
|
|
59
|
+
"successText": { "value": "{colors.success.700}", "metadata": {} },
|
|
60
|
+
"warningBg": { "value": "{colors.warning.100}", "metadata": { "pair": "modes.default.component.badge.warningText" } },
|
|
61
|
+
"warningText": { "value": "{colors.warning.700}", "metadata": {} },
|
|
62
|
+
"dangerBg": { "value": "{colors.error.100}", "metadata": { "pair": "modes.default.component.badge.dangerText" } },
|
|
63
|
+
"dangerText": { "value": "{colors.error.700}", "metadata": {} }
|
|
64
|
+
},
|
|
65
|
+
"iconBox": {
|
|
66
|
+
"bg": { "value": "{colors.white}", "metadata": {} },
|
|
67
|
+
"border": { "value": "{colors.neutral.200}", "metadata": {} },
|
|
68
|
+
"iconDefault": { "value": "{colors.info.600}", "metadata": {} },
|
|
69
|
+
"iconSuccess": { "value": "{colors.success.600}", "metadata": {} },
|
|
70
|
+
"iconWarning": { "value": "{colors.warning.600}", "metadata": {} },
|
|
71
|
+
"iconDanger": { "value": "{colors.error.600}", "metadata": {} }
|
|
72
|
+
},
|
|
73
|
+
"testimonial": {
|
|
74
|
+
"bg": { "value": "{colors.white}", "metadata": {} },
|
|
75
|
+
"border": { "value": "{colors.neutral.200}", "metadata": {} },
|
|
76
|
+
"text": { "value": "{colors.neutral.700}", "metadata": {} },
|
|
77
|
+
"authorName": { "value": "{colors.neutral.900}", "metadata": {} },
|
|
78
|
+
"authorTitle": { "value": "{colors.neutral.500}", "metadata": {} },
|
|
79
|
+
"quoteMark": { "value": "{colors.neutral.300}", "metadata": {} }
|
|
80
|
+
},
|
|
81
|
+
"pricingCard": {
|
|
82
|
+
"bg": { "value": "{colors.white}", "metadata": {} },
|
|
83
|
+
"border": { "value": "{colors.neutral.200}", "metadata": {} },
|
|
84
|
+
"featuredBg": { "value": "{colors.info.600}", "metadata": { "pair": "modes.default.component.pricingCard.featuredText" } },
|
|
85
|
+
"featuredText": { "value": "{colors.white}", "metadata": {} },
|
|
86
|
+
"featuredBadgeBg": { "value": "{colors.warning.500}", "metadata": { "pair": "modes.default.component.pricingCard.featuredBadgeText" } },
|
|
87
|
+
"featuredBadgeText": { "value": "{colors.neutral.900}", "metadata": {} },
|
|
88
|
+
"price": { "value": "{colors.neutral.900}", "metadata": {} },
|
|
89
|
+
"priceDescription": { "value": "{colors.neutral.500}", "metadata": {} }
|
|
90
|
+
},
|
|
91
|
+
"rating": {
|
|
92
|
+
"starFilled": { "value": "{colors.warning.500}", "metadata": {} },
|
|
93
|
+
"starEmpty": { "value": "{colors.neutral.200}", "metadata": {} },
|
|
94
|
+
"text": { "value": "{colors.neutral.500}", "metadata": {} }
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"dark": {
|
|
99
|
+
"surface": {
|
|
100
|
+
"page": { "value": "{colors.neutral.900}" },
|
|
101
|
+
"card": { "value": "{colors.neutral.800}" },
|
|
102
|
+
"input": { "value": "{colors.neutral.700}" },
|
|
103
|
+
"overlay": { "value": "{colors.neutral.800}" },
|
|
104
|
+
"alternate": { "value": "{colors.neutral.800}" },
|
|
105
|
+
"hero": { "value": "linear-gradient(135deg, {colors.accent.900} 0%, {colors.accent.700} 100%)" }
|
|
106
|
+
},
|
|
107
|
+
"text": {
|
|
108
|
+
"onPage": {
|
|
109
|
+
"default": { "value": "{colors.neutral.50}" },
|
|
110
|
+
"muted": { "value": "{colors.neutral.300}" },
|
|
111
|
+
"subtle": { "value": "{colors.neutral.400}" },
|
|
112
|
+
"meta": { "value": "{colors.neutral.400}" },
|
|
113
|
+
"brand": { "value": "{colors.brand.400}" }
|
|
114
|
+
},
|
|
115
|
+
"onSurface": {
|
|
116
|
+
"default": { "value": "{colors.neutral.100}" },
|
|
117
|
+
"muted": { "value": "{colors.neutral.300}" },
|
|
118
|
+
"subtle": { "value": "{colors.neutral.400}" },
|
|
119
|
+
"meta": { "value": "{colors.neutral.400}" },
|
|
120
|
+
"brand": { "value": "{colors.brand.400}" }
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"component": {
|
|
124
|
+
"card": {
|
|
125
|
+
"text": { "value": "{colors.neutral.100}" },
|
|
126
|
+
"textMuted": { "value": "{colors.neutral.300}" }
|
|
127
|
+
},
|
|
128
|
+
"input": {
|
|
129
|
+
"text": { "value": "{colors.neutral.100}" },
|
|
130
|
+
"placeholder": { "value": "{colors.neutral.400}" }
|
|
131
|
+
},
|
|
132
|
+
"button": {
|
|
133
|
+
"textDefault": { "value": "{colors.neutral.100}" },
|
|
134
|
+
"textOnPrimary": { "value": "{colors.white}" }
|
|
135
|
+
},
|
|
136
|
+
"badge": {
|
|
137
|
+
"neutralBg": { "value": "{colors.neutral.700}", "metadata": { "pair": "modes.dark.component.badge.neutralText" } },
|
|
138
|
+
"neutralText": { "value": "{colors.neutral.100}", "metadata": {} },
|
|
139
|
+
"infoBg": { "value": "{colors.info.800}", "metadata": { "pair": "modes.dark.component.badge.infoText" } },
|
|
140
|
+
"infoText": { "value": "{colors.info.100}", "metadata": {} },
|
|
141
|
+
"successBg": { "value": "{colors.success.800}", "metadata": { "pair": "modes.dark.component.badge.successText" } },
|
|
142
|
+
"successText": { "value": "{colors.success.100}", "metadata": {} },
|
|
143
|
+
"warningBg": { "value": "{colors.warning.800}", "metadata": { "pair": "modes.dark.component.badge.warningText" } },
|
|
144
|
+
"warningText": { "value": "{colors.warning.100}", "metadata": {} },
|
|
145
|
+
"dangerBg": { "value": "{colors.error.800}", "metadata": { "pair": "modes.dark.component.badge.dangerText" } },
|
|
146
|
+
"dangerText": { "value": "{colors.error.100}", "metadata": {} }
|
|
147
|
+
},
|
|
148
|
+
"iconBox": {
|
|
149
|
+
"bg": { "value": "{colors.neutral.800}", "metadata": {} },
|
|
150
|
+
"border": { "value": "{colors.neutral.700}", "metadata": {} },
|
|
151
|
+
"iconDefault": { "value": "{colors.info.300}", "metadata": {} },
|
|
152
|
+
"iconSuccess": { "value": "{colors.success.400}", "metadata": {} },
|
|
153
|
+
"iconWarning": { "value": "{colors.warning.400}", "metadata": {} },
|
|
154
|
+
"iconDanger": { "value": "{colors.error.400}", "metadata": {} }
|
|
155
|
+
},
|
|
156
|
+
"testimonial": {
|
|
157
|
+
"bg": { "value": "{colors.neutral.800}", "metadata": {} },
|
|
158
|
+
"border": { "value": "{colors.neutral.700}", "metadata": {} },
|
|
159
|
+
"text": { "value": "{colors.neutral.300}", "metadata": {} },
|
|
160
|
+
"authorName": { "value": "{colors.neutral.100}", "metadata": {} },
|
|
161
|
+
"authorTitle": { "value": "{colors.neutral.400}", "metadata": {} },
|
|
162
|
+
"quoteMark": { "value": "{colors.neutral.600}", "metadata": {} }
|
|
163
|
+
},
|
|
164
|
+
"pricingCard": {
|
|
165
|
+
"bg": { "value": "{colors.neutral.800}", "metadata": {} },
|
|
166
|
+
"border": { "value": "{colors.neutral.700}", "metadata": {} },
|
|
167
|
+
"featuredBg": { "value": "{colors.info.600}", "metadata": { "pair": "modes.dark.component.pricingCard.featuredText" } },
|
|
168
|
+
"featuredText": { "value": "{colors.white}", "metadata": {} },
|
|
169
|
+
"featuredBadgeBg": { "value": "{colors.warning.500}", "metadata": { "pair": "modes.dark.component.pricingCard.featuredBadgeText" } },
|
|
170
|
+
"featuredBadgeText": { "value": "{colors.neutral.900}", "metadata": {} },
|
|
171
|
+
"price": { "value": "{colors.neutral.100}", "metadata": {} },
|
|
172
|
+
"priceDescription": { "value": "{colors.neutral.400}", "metadata": {} }
|
|
173
|
+
},
|
|
174
|
+
"rating": {
|
|
175
|
+
"starFilled": { "value": "{colors.warning.400}", "metadata": {} },
|
|
176
|
+
"starEmpty": { "value": "{colors.neutral.700}", "metadata": {} },
|
|
177
|
+
"text": { "value": "{colors.neutral.400}", "metadata": {} }
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": {
|
|
3
|
+
"brand": {
|
|
4
|
+
"50": "#eff6ff",
|
|
5
|
+
"100": "#dbeafe",
|
|
6
|
+
"200": "#bfdbfe",
|
|
7
|
+
"300": "#93c5fd",
|
|
8
|
+
"400": "#60a5fa",
|
|
9
|
+
"500": "#3b82f6",
|
|
10
|
+
"600": "#2563eb",
|
|
11
|
+
"700": "#1d4ed8",
|
|
12
|
+
"800": "#1e40af",
|
|
13
|
+
"900": "#1e3a8a"
|
|
14
|
+
},
|
|
15
|
+
"neutral": {
|
|
16
|
+
"50": "#f8fafc",
|
|
17
|
+
"100": "#f1f5f9",
|
|
18
|
+
"200": "#e2e8f0",
|
|
19
|
+
"300": "#cbd5e1",
|
|
20
|
+
"400": "#94a3b8",
|
|
21
|
+
"500": "#64748b",
|
|
22
|
+
"600": "#475569",
|
|
23
|
+
"700": "#334155",
|
|
24
|
+
"800": "#1e293b",
|
|
25
|
+
"900": "#0f172a"
|
|
26
|
+
},
|
|
27
|
+
"accent": {
|
|
28
|
+
"50": "#eff6ff",
|
|
29
|
+
"100": "#dbeafe",
|
|
30
|
+
"200": "#ddd6fe",
|
|
31
|
+
"300": "#93c5fd",
|
|
32
|
+
"400": "#60a5fa",
|
|
33
|
+
"500": "#8b5cf6",
|
|
34
|
+
"600": "#7c3aed",
|
|
35
|
+
"700": "#6d28d9",
|
|
36
|
+
"800": "#1e40af",
|
|
37
|
+
"900": "#1e3a8a"
|
|
38
|
+
},
|
|
39
|
+
"success": {
|
|
40
|
+
"50": "#f0fdf4",
|
|
41
|
+
"100": "#dcfce7",
|
|
42
|
+
"200": "#bbf7d0",
|
|
43
|
+
"300": "#86efac",
|
|
44
|
+
"400": "#4ade80",
|
|
45
|
+
"500": "#22c55e",
|
|
46
|
+
"600": "#16a34a",
|
|
47
|
+
"700": "#15803d",
|
|
48
|
+
"800": "#166534",
|
|
49
|
+
"900": "#14532d"
|
|
50
|
+
},
|
|
51
|
+
"warning": {
|
|
52
|
+
"50": "#fffbeb",
|
|
53
|
+
"100": "#fef3c7",
|
|
54
|
+
"200": "#fde68a",
|
|
55
|
+
"300": "#fcd34d",
|
|
56
|
+
"400": "#fbbf24",
|
|
57
|
+
"500": "#f59e0b",
|
|
58
|
+
"600": "#d97706",
|
|
59
|
+
"700": "#b45309",
|
|
60
|
+
"800": "#92400e",
|
|
61
|
+
"900": "#78350f"
|
|
62
|
+
},
|
|
63
|
+
"error": {
|
|
64
|
+
"50": "#fef2f2",
|
|
65
|
+
"100": "#fee2e2",
|
|
66
|
+
"200": "#fecaca",
|
|
67
|
+
"300": "#fca5a5",
|
|
68
|
+
"400": "#f87171",
|
|
69
|
+
"500": "#ef4444",
|
|
70
|
+
"600": "#dc2626",
|
|
71
|
+
"700": "#b91c1c",
|
|
72
|
+
"800": "#991b1b",
|
|
73
|
+
"900": "#7f1d1d"
|
|
74
|
+
},
|
|
75
|
+
"info": {
|
|
76
|
+
"50": "#eff6ff",
|
|
77
|
+
"100": "#dbeafe",
|
|
78
|
+
"200": "#bfdbfe",
|
|
79
|
+
"300": "#93c5fd",
|
|
80
|
+
"400": "#60a5fa",
|
|
81
|
+
"500": "#3b82f6",
|
|
82
|
+
"600": "#2563eb",
|
|
83
|
+
"700": "#1d4ed8",
|
|
84
|
+
"800": "#1e40af",
|
|
85
|
+
"900": "#1e3a8a"
|
|
86
|
+
},
|
|
87
|
+
"indigo": {
|
|
88
|
+
"500": "#667eea",
|
|
89
|
+
"600": "#5c67f2"
|
|
90
|
+
},
|
|
91
|
+
"violet": {
|
|
92
|
+
"600": "#764ba2"
|
|
93
|
+
},
|
|
94
|
+
"focus": {
|
|
95
|
+
"primary": "#3b82f6",
|
|
96
|
+
"error": "#ef4444",
|
|
97
|
+
"info": "#3b82f6"
|
|
98
|
+
},
|
|
99
|
+
"white": "#ffffff",
|
|
100
|
+
"black": "#000000"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"space": {
|
|
3
|
+
"0": "0rem",
|
|
4
|
+
"4": "0.25rem",
|
|
5
|
+
"8": "0.5rem",
|
|
6
|
+
"12": "0.75rem",
|
|
7
|
+
"16": "1rem",
|
|
8
|
+
"20": "1.25rem",
|
|
9
|
+
"24": "1.5rem",
|
|
10
|
+
"32": "2rem",
|
|
11
|
+
"40": "2.5rem",
|
|
12
|
+
"48": "3rem",
|
|
13
|
+
"56": "3.5rem",
|
|
14
|
+
"64": "4rem",
|
|
15
|
+
"80": "5rem",
|
|
16
|
+
"96": "6rem"
|
|
17
|
+
},
|
|
18
|
+
"radii": {
|
|
19
|
+
"none": "0",
|
|
20
|
+
"sm": "2px",
|
|
21
|
+
"md": "4px",
|
|
22
|
+
"lg": "8px",
|
|
23
|
+
"pill": "999px"
|
|
24
|
+
},
|
|
25
|
+
"shadows": {
|
|
26
|
+
"none": "none",
|
|
27
|
+
"sm": "0 1px 2px 0 {colors.neutral.800} / 0.06",
|
|
28
|
+
"md": "0 2px 6px -1px {colors.neutral.800} / 0.08",
|
|
29
|
+
"lg": "0 6px 16px -4px {colors.neutral.800} / 0.12"
|
|
30
|
+
},
|
|
31
|
+
"breakpoints": {
|
|
32
|
+
"sm": "640px",
|
|
33
|
+
"md": "768px",
|
|
34
|
+
"lg": "1024px",
|
|
35
|
+
"xl": "1280px",
|
|
36
|
+
"2xl": "1536px"
|
|
37
|
+
},
|
|
38
|
+
"zIndex": {
|
|
39
|
+
"base": "0",
|
|
40
|
+
"dropdown": "1000",
|
|
41
|
+
"sticky": "1100",
|
|
42
|
+
"fixed": "1200",
|
|
43
|
+
"overlay": "1300",
|
|
44
|
+
"modal": "1400",
|
|
45
|
+
"popover": "1500",
|
|
46
|
+
"tooltip": "1600"
|
|
47
|
+
},
|
|
48
|
+
"transitions": {
|
|
49
|
+
"duration": {
|
|
50
|
+
"instant": "75ms",
|
|
51
|
+
"fast": "150ms",
|
|
52
|
+
"base": "200ms",
|
|
53
|
+
"moderate": "300ms",
|
|
54
|
+
"slow": "500ms",
|
|
55
|
+
"slower": "700ms"
|
|
56
|
+
},
|
|
57
|
+
"easing": {
|
|
58
|
+
"linear": "linear",
|
|
59
|
+
"in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
60
|
+
"out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
61
|
+
"inOut": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
62
|
+
"spring": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"animations": {
|
|
66
|
+
"fadeIn": {
|
|
67
|
+
"duration": "200ms",
|
|
68
|
+
"easing": "cubic-bezier(0, 0, 0.2, 1)",
|
|
69
|
+
"keyframes": "fade-in"
|
|
70
|
+
},
|
|
71
|
+
"fadeOut": {
|
|
72
|
+
"duration": "150ms",
|
|
73
|
+
"easing": "cubic-bezier(0.4, 0, 1, 1)",
|
|
74
|
+
"keyframes": "fade-out"
|
|
75
|
+
},
|
|
76
|
+
"slideUp": {
|
|
77
|
+
"duration": "300ms",
|
|
78
|
+
"easing": "cubic-bezier(0, 0, 0.2, 1)",
|
|
79
|
+
"keyframes": "slide-up"
|
|
80
|
+
},
|
|
81
|
+
"slideDown": {
|
|
82
|
+
"duration": "300ms",
|
|
83
|
+
"easing": "cubic-bezier(0, 0, 0.2, 1)",
|
|
84
|
+
"keyframes": "slide-down"
|
|
85
|
+
},
|
|
86
|
+
"scaleIn": {
|
|
87
|
+
"duration": "200ms",
|
|
88
|
+
"easing": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
89
|
+
"keyframes": "scale-in"
|
|
90
|
+
},
|
|
91
|
+
"bounce": {
|
|
92
|
+
"duration": "300ms",
|
|
93
|
+
"easing": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
94
|
+
"keyframes": "bounce"
|
|
95
|
+
},
|
|
96
|
+
"shake": {
|
|
97
|
+
"duration": "250ms",
|
|
98
|
+
"easing": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
99
|
+
"keyframes": "shake"
|
|
100
|
+
},
|
|
101
|
+
"pulse": {
|
|
102
|
+
"duration": "1200ms",
|
|
103
|
+
"easing": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
104
|
+
"keyframes": "pulse"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"opacity": {
|
|
108
|
+
"disabled": "0.38",
|
|
109
|
+
"hover": "0.92",
|
|
110
|
+
"active": "0.84",
|
|
111
|
+
"focus": "1",
|
|
112
|
+
"overlay": "0.5",
|
|
113
|
+
"tooltip": "0.95"
|
|
114
|
+
},
|
|
115
|
+
"aspectRatios": {
|
|
116
|
+
"square": "1/1",
|
|
117
|
+
"video": "16/9",
|
|
118
|
+
"portrait": "3/4",
|
|
119
|
+
"landscape": "4/3",
|
|
120
|
+
"ultrawide": "21/9",
|
|
121
|
+
"hero": "2/1"
|
|
122
|
+
},
|
|
123
|
+
"icons": {
|
|
124
|
+
"xs": "12px",
|
|
125
|
+
"sm": "16px",
|
|
126
|
+
"md": "20px",
|
|
127
|
+
"lg": "24px",
|
|
128
|
+
"xl": "32px",
|
|
129
|
+
"2xl": "40px",
|
|
130
|
+
"3xl": "48px"
|
|
131
|
+
},
|
|
132
|
+
"accessibility": {
|
|
133
|
+
"focusRing": {
|
|
134
|
+
"width": "2px",
|
|
135
|
+
"offset": "2px",
|
|
136
|
+
"style": "solid"
|
|
137
|
+
},
|
|
138
|
+
"minTouchTarget": "44px",
|
|
139
|
+
"minTextSize": "16px"
|
|
140
|
+
},
|
|
141
|
+
"borders": {
|
|
142
|
+
"card": "{colors.neutral.200}",
|
|
143
|
+
"input": "{colors.neutral.300}"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"surface": {
|
|
3
|
+
"page": {
|
|
4
|
+
"value": "{colors.neutral.50}",
|
|
5
|
+
"description": "primary app background"
|
|
6
|
+
},
|
|
7
|
+
"card": {
|
|
8
|
+
"value": "{colors.white}",
|
|
9
|
+
"description": "containers and tiles"
|
|
10
|
+
},
|
|
11
|
+
"input": {
|
|
12
|
+
"value": "{colors.white}",
|
|
13
|
+
"description": "form inputs, textareas"
|
|
14
|
+
},
|
|
15
|
+
"overlay": {
|
|
16
|
+
"value": "{colors.neutral.900} / 0.6",
|
|
17
|
+
"description": "modals, dropdowns, flyouts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"text": {
|
|
21
|
+
"onPage": {
|
|
22
|
+
"default": "{colors.neutral.900}",
|
|
23
|
+
"muted": "{colors.neutral.600}",
|
|
24
|
+
"subtle": "{colors.neutral.500}",
|
|
25
|
+
"meta": "{colors.neutral.500}",
|
|
26
|
+
"brand": "{colors.brand.600}"
|
|
27
|
+
},
|
|
28
|
+
"onSurface": {
|
|
29
|
+
"default": "{colors.neutral.900}",
|
|
30
|
+
"muted": "{colors.neutral.600}",
|
|
31
|
+
"subtle": "{colors.neutral.500}",
|
|
32
|
+
"meta": "{colors.neutral.500}",
|
|
33
|
+
"brand": "{colors.brand.600}"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"layout": {
|
|
37
|
+
"section": {
|
|
38
|
+
"padding": {
|
|
39
|
+
"sm": "1.5rem",
|
|
40
|
+
"md": "2rem",
|
|
41
|
+
"lg": "3rem"
|
|
42
|
+
},
|
|
43
|
+
"gap": {
|
|
44
|
+
"sm": "1rem",
|
|
45
|
+
"md": "1.5rem",
|
|
46
|
+
"lg": "2rem"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"stack": {
|
|
50
|
+
"gap": {
|
|
51
|
+
"sm": "0.5rem",
|
|
52
|
+
"md": "0.75rem",
|
|
53
|
+
"lg": "1rem"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"container": {
|
|
57
|
+
"paddingInline": {
|
|
58
|
+
"sm": "1rem",
|
|
59
|
+
"md": "1.5rem",
|
|
60
|
+
"lg": "2rem"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|