@cupped/tokens 0.1.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/CHANGELOG.md +17 -0
- package/README.md +79 -0
- package/dist/css/components.css +183 -0
- package/dist/css/tokens.css +144 -0
- package/dist/json/tokens.dtcg.json +1501 -0
- package/dist/json/tokens.flat.json +102 -0
- package/dist/native/index.cjs +281 -0
- package/dist/native/index.d.ts +285 -0
- package/dist/native/index.js +279 -0
- package/dist/tailwind/theme.css +164 -0
- package/docs/expo.md +141 -0
- package/docs/phoenix.md +153 -0
- package/docs/releasing.md +93 -0
- package/docs/rules.md +62 -0
- package/docs/versioning.md +59 -0
- package/package.json +56 -0
- package/tokens/primitive/color.tokens.json +94 -0
- package/tokens/primitive/dimension.tokens.json +18 -0
- package/tokens/primitive/duration.tokens.json +10 -0
- package/tokens/primitive/font.tokens.json +29 -0
- package/tokens/semantic/color.tokens.json +172 -0
- package/tokens/semantic/elevation.tokens.json +38 -0
- package/tokens/semantic/materials.tokens.json +34 -0
- package/tokens/semantic/motion.tokens.json +52 -0
- package/tokens/semantic/radius.tokens.json +11 -0
- package/tokens/semantic/spacing.tokens.json +13 -0
- package/tokens/semantic/typography.tokens.json +60 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"canvas": "#F8FAFC",
|
|
3
|
+
"card": "#FFFFFF",
|
|
4
|
+
"canvas-border": "#E2E8F0",
|
|
5
|
+
"canvas-border-subtle": "#F1F5F9",
|
|
6
|
+
"ink": "#0F172A",
|
|
7
|
+
"ink-secondary": "#475569",
|
|
8
|
+
"ink-muted": "#94A3B8",
|
|
9
|
+
"ink-inverse": "#F8FAFC",
|
|
10
|
+
"primary": "#E07A5F",
|
|
11
|
+
"primary-strong": "#C05539",
|
|
12
|
+
"primary-strong-hover": "#AD4A30",
|
|
13
|
+
"primary-hover": "#D16A4F",
|
|
14
|
+
"primary-light": "#FDF2F0",
|
|
15
|
+
"primary-muted": "rgba(224, 122, 95, 0.12)",
|
|
16
|
+
"success": "#22C55E",
|
|
17
|
+
"success-light": "#F0FDF4",
|
|
18
|
+
"success-ink": "#15803D",
|
|
19
|
+
"error": "#EF4444",
|
|
20
|
+
"error-light": "#FEF2F2",
|
|
21
|
+
"error-ink": "#B91C1C",
|
|
22
|
+
"warning": "#F59E0B",
|
|
23
|
+
"warning-light": "#FFFBEB",
|
|
24
|
+
"warning-ink": "#B45309",
|
|
25
|
+
"info": "#3B82F6",
|
|
26
|
+
"info-light": "#EFF6FF",
|
|
27
|
+
"info-ink": "#1D4ED8",
|
|
28
|
+
"fruity": "#B44C54",
|
|
29
|
+
"floral": "#865CB2",
|
|
30
|
+
"nutty": "#876F49",
|
|
31
|
+
"chocolate": "#916951",
|
|
32
|
+
"spice": "#B4503A",
|
|
33
|
+
"sweet": "#8E6E09",
|
|
34
|
+
"citrus": "#A65F02",
|
|
35
|
+
"green": "#4E8429",
|
|
36
|
+
"berry": "#AC4D7B",
|
|
37
|
+
"roasted": "#896B5E",
|
|
38
|
+
"fruity-accessible": "#9B494E",
|
|
39
|
+
"berry-accessible": "#94496D",
|
|
40
|
+
"citrus-accessible": "#925512",
|
|
41
|
+
"sweet-accessible": "#7E6207",
|
|
42
|
+
"floral-accessible": "#755498",
|
|
43
|
+
"green-accessible": "#49742E",
|
|
44
|
+
"spice-accessible": "#9B4C3A",
|
|
45
|
+
"nutty-accessible": "#79623E",
|
|
46
|
+
"chocolate-accessible": "#825C46",
|
|
47
|
+
"roasted-accessible": "#7B5F52",
|
|
48
|
+
"on-flavor": "#FFFFFF",
|
|
49
|
+
"xp": "#8E6E09",
|
|
50
|
+
"xp-accessible": "#7E6207",
|
|
51
|
+
"ember": "#F97316",
|
|
52
|
+
"ember-accessible": "#C2410C",
|
|
53
|
+
"streak": "#F97316",
|
|
54
|
+
"streak-accessible": "#C2410C",
|
|
55
|
+
"badge": "#865CB2",
|
|
56
|
+
"badge-accessible": "#755498",
|
|
57
|
+
"zone-ideal": "#22C55E",
|
|
58
|
+
"zone-under": "#3B82F6",
|
|
59
|
+
"zone-over": "#EF4444",
|
|
60
|
+
"zone-strong": "#F59E0B",
|
|
61
|
+
"zone-weak": "#94A3B8",
|
|
62
|
+
"chart-sca": "#E07A5F",
|
|
63
|
+
"chart-ucdavis": "#865CB2",
|
|
64
|
+
"chart-grid": "#E2E8F0",
|
|
65
|
+
"shadow-sm": "0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03)",
|
|
66
|
+
"shadow-md": "0 4px 12px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04)",
|
|
67
|
+
"shadow-lg": "0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04)",
|
|
68
|
+
"shadow-primary": "0 12px 28px rgba(224,122,95,0.28), 0 4px 10px rgba(224,122,95,0.18)",
|
|
69
|
+
"material-chrome-bg": "rgba(255, 255, 255, 0.95)",
|
|
70
|
+
"material-chrome-blur": "saturate(1.4) blur(20px)",
|
|
71
|
+
"scrim": "rgba(15, 23, 42, 0.45)",
|
|
72
|
+
"spring-response": "0.55s",
|
|
73
|
+
"spring-damping": 0.75,
|
|
74
|
+
"tap-scale": 0.95,
|
|
75
|
+
"tap-opacity": 0.8,
|
|
76
|
+
"stagger-delay": "0.08s",
|
|
77
|
+
"shimmer-duration": "1.5s",
|
|
78
|
+
"motion-reduced": "120ms",
|
|
79
|
+
"focus-ring": "0 0 0 2px #FFFFFF, 0 0 0 4px #C05539",
|
|
80
|
+
"hit-target-min": "44px",
|
|
81
|
+
"radius-sm": "8px",
|
|
82
|
+
"radius-md": "12px",
|
|
83
|
+
"radius-lg": "16px",
|
|
84
|
+
"radius-xl": "24px",
|
|
85
|
+
"radius-full": "9999px",
|
|
86
|
+
"space-xs": "4px",
|
|
87
|
+
"space-sm": "8px",
|
|
88
|
+
"space-md": "12px",
|
|
89
|
+
"space-base": "16px",
|
|
90
|
+
"space-lg": "20px",
|
|
91
|
+
"space-xl": "24px",
|
|
92
|
+
"space-xxl": "32px",
|
|
93
|
+
"ff-sans": "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
94
|
+
"ff-serif": "'Instrument Serif', Georgia, serif",
|
|
95
|
+
"ff-mono": "'JetBrains Mono', ui-monospace, SFMono-Regular, monospace",
|
|
96
|
+
"text-screen-title": "32px",
|
|
97
|
+
"text-sheet-title": "24px",
|
|
98
|
+
"text-card-title": "20px",
|
|
99
|
+
"text-body": "16px",
|
|
100
|
+
"text-body-sm": "14px",
|
|
101
|
+
"text-caption": "12px"
|
|
102
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
// GENERATED FILE — do not edit. Canonical source: tokens/**/*.tokens.json
|
|
2
|
+
// (npm run build in @cupped/tokens). Dimensions are unitless RN dp numbers,
|
|
3
|
+
// durations are ms, fontFamily is a single string. shadow.*.boxShadow targets
|
|
4
|
+
// RN 0.76+/new architecture; shadow.*.ios/android are the legacy props.
|
|
5
|
+
'use strict';
|
|
6
|
+
const tokens = {
|
|
7
|
+
"color": {
|
|
8
|
+
"canvas": "#F8FAFC",
|
|
9
|
+
"card": "#FFFFFF",
|
|
10
|
+
"canvasBorder": "#E2E8F0",
|
|
11
|
+
"canvasBorderSubtle": "#F1F5F9",
|
|
12
|
+
"ink": {
|
|
13
|
+
"default": "#0F172A",
|
|
14
|
+
"secondary": "#475569",
|
|
15
|
+
"muted": "#94A3B8",
|
|
16
|
+
"inverse": "#F8FAFC"
|
|
17
|
+
},
|
|
18
|
+
"primary": {
|
|
19
|
+
"default": "#E07A5F",
|
|
20
|
+
"strong": "#C05539",
|
|
21
|
+
"strongHover": "#AD4A30",
|
|
22
|
+
"hover": "#D16A4F",
|
|
23
|
+
"light": "#FDF2F0",
|
|
24
|
+
"muted": "rgba(224, 122, 95, 0.12)"
|
|
25
|
+
},
|
|
26
|
+
"success": {
|
|
27
|
+
"default": "#22C55E",
|
|
28
|
+
"light": "#F0FDF4",
|
|
29
|
+
"ink": "#15803D"
|
|
30
|
+
},
|
|
31
|
+
"error": {
|
|
32
|
+
"default": "#EF4444",
|
|
33
|
+
"light": "#FEF2F2",
|
|
34
|
+
"ink": "#B91C1C"
|
|
35
|
+
},
|
|
36
|
+
"warning": {
|
|
37
|
+
"default": "#F59E0B",
|
|
38
|
+
"light": "#FFFBEB",
|
|
39
|
+
"ink": "#B45309"
|
|
40
|
+
},
|
|
41
|
+
"info": {
|
|
42
|
+
"default": "#3B82F6",
|
|
43
|
+
"light": "#EFF6FF",
|
|
44
|
+
"ink": "#1D4ED8"
|
|
45
|
+
},
|
|
46
|
+
"flavor": {
|
|
47
|
+
"fruity": {
|
|
48
|
+
"fill": "#B44C54",
|
|
49
|
+
"text": "#9B494E"
|
|
50
|
+
},
|
|
51
|
+
"berry": {
|
|
52
|
+
"fill": "#AC4D7B",
|
|
53
|
+
"text": "#94496D"
|
|
54
|
+
},
|
|
55
|
+
"citrus": {
|
|
56
|
+
"fill": "#A65F02",
|
|
57
|
+
"text": "#925512"
|
|
58
|
+
},
|
|
59
|
+
"sweet": {
|
|
60
|
+
"fill": "#8E6E09",
|
|
61
|
+
"text": "#7E6207"
|
|
62
|
+
},
|
|
63
|
+
"floral": {
|
|
64
|
+
"fill": "#865CB2",
|
|
65
|
+
"text": "#755498"
|
|
66
|
+
},
|
|
67
|
+
"green": {
|
|
68
|
+
"fill": "#4E8429",
|
|
69
|
+
"text": "#49742E"
|
|
70
|
+
},
|
|
71
|
+
"spice": {
|
|
72
|
+
"fill": "#B4503A",
|
|
73
|
+
"text": "#9B4C3A"
|
|
74
|
+
},
|
|
75
|
+
"nutty": {
|
|
76
|
+
"fill": "#876F49",
|
|
77
|
+
"text": "#79623E"
|
|
78
|
+
},
|
|
79
|
+
"chocolate": {
|
|
80
|
+
"fill": "#916951",
|
|
81
|
+
"text": "#825C46"
|
|
82
|
+
},
|
|
83
|
+
"roasted": {
|
|
84
|
+
"fill": "#896B5E",
|
|
85
|
+
"text": "#7B5F52"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"onFlavor": "#FFFFFF",
|
|
89
|
+
"xp": "#8E6E09",
|
|
90
|
+
"xpAccessible": "#7E6207",
|
|
91
|
+
"ember": "#F97316",
|
|
92
|
+
"emberAccessible": "#C2410C",
|
|
93
|
+
"streak": "#F97316",
|
|
94
|
+
"streakAccessible": "#C2410C",
|
|
95
|
+
"badge": "#865CB2",
|
|
96
|
+
"badgeAccessible": "#755498",
|
|
97
|
+
"zone": {
|
|
98
|
+
"ideal": "#22C55E",
|
|
99
|
+
"under": "#3B82F6",
|
|
100
|
+
"over": "#EF4444",
|
|
101
|
+
"strong": "#F59E0B",
|
|
102
|
+
"weak": "#94A3B8"
|
|
103
|
+
},
|
|
104
|
+
"chart": {
|
|
105
|
+
"sca": "#E07A5F",
|
|
106
|
+
"ucdavis": "#865CB2",
|
|
107
|
+
"grid": "#E2E8F0"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"space": {
|
|
111
|
+
"xs": 4,
|
|
112
|
+
"sm": 8,
|
|
113
|
+
"md": 12,
|
|
114
|
+
"base": 16,
|
|
115
|
+
"lg": 20,
|
|
116
|
+
"xl": 24,
|
|
117
|
+
"xxl": 32,
|
|
118
|
+
"hitTargetMin": 44
|
|
119
|
+
},
|
|
120
|
+
"radius": {
|
|
121
|
+
"sm": 8,
|
|
122
|
+
"md": 12,
|
|
123
|
+
"lg": 16,
|
|
124
|
+
"xl": 24,
|
|
125
|
+
"full": 9999
|
|
126
|
+
},
|
|
127
|
+
"font": {
|
|
128
|
+
"sans": "Inter",
|
|
129
|
+
"serif": "Instrument Serif",
|
|
130
|
+
"mono": "JetBrains Mono"
|
|
131
|
+
},
|
|
132
|
+
"type": {
|
|
133
|
+
"screenTitle": {
|
|
134
|
+
"fontFamily": "Inter",
|
|
135
|
+
"fontSize": 32,
|
|
136
|
+
"fontWeight": "700",
|
|
137
|
+
"lineHeight": 35
|
|
138
|
+
},
|
|
139
|
+
"sheetTitle": {
|
|
140
|
+
"fontFamily": "Inter",
|
|
141
|
+
"fontSize": 24,
|
|
142
|
+
"fontWeight": "600",
|
|
143
|
+
"lineHeight": 29
|
|
144
|
+
},
|
|
145
|
+
"cardTitle": {
|
|
146
|
+
"fontFamily": "Inter",
|
|
147
|
+
"fontSize": 20,
|
|
148
|
+
"fontWeight": "600",
|
|
149
|
+
"lineHeight": 25
|
|
150
|
+
},
|
|
151
|
+
"body": {
|
|
152
|
+
"fontFamily": "Inter",
|
|
153
|
+
"fontSize": 16,
|
|
154
|
+
"fontWeight": "400",
|
|
155
|
+
"lineHeight": 24
|
|
156
|
+
},
|
|
157
|
+
"bodySm": {
|
|
158
|
+
"fontFamily": "Inter",
|
|
159
|
+
"fontSize": 14,
|
|
160
|
+
"fontWeight": "400",
|
|
161
|
+
"lineHeight": 20
|
|
162
|
+
},
|
|
163
|
+
"caption": {
|
|
164
|
+
"fontFamily": "Inter",
|
|
165
|
+
"fontSize": 12,
|
|
166
|
+
"fontWeight": "500",
|
|
167
|
+
"lineHeight": 17
|
|
168
|
+
},
|
|
169
|
+
"display": {
|
|
170
|
+
"fontFamily": "Instrument Serif",
|
|
171
|
+
"fontSize": 56,
|
|
172
|
+
"fontWeight": "400",
|
|
173
|
+
"lineHeight": 56,
|
|
174
|
+
"letterSpacing": -0.84
|
|
175
|
+
},
|
|
176
|
+
"mono": {
|
|
177
|
+
"fontFamily": "JetBrains Mono",
|
|
178
|
+
"fontSize": 12,
|
|
179
|
+
"fontWeight": "500",
|
|
180
|
+
"lineHeight": 17
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"shadow": {
|
|
184
|
+
"sm": {
|
|
185
|
+
"boxShadow": "0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03)",
|
|
186
|
+
"ios": {
|
|
187
|
+
"shadowColor": "#0F172A",
|
|
188
|
+
"shadowOffset": {
|
|
189
|
+
"width": 0,
|
|
190
|
+
"height": 1
|
|
191
|
+
},
|
|
192
|
+
"shadowOpacity": 0.04,
|
|
193
|
+
"shadowRadius": 2
|
|
194
|
+
},
|
|
195
|
+
"android": {
|
|
196
|
+
"elevation": 1
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"md": {
|
|
200
|
+
"boxShadow": "0 4px 12px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04)",
|
|
201
|
+
"ios": {
|
|
202
|
+
"shadowColor": "#0F172A",
|
|
203
|
+
"shadowOffset": {
|
|
204
|
+
"width": 0,
|
|
205
|
+
"height": 4
|
|
206
|
+
},
|
|
207
|
+
"shadowOpacity": 0.06,
|
|
208
|
+
"shadowRadius": 12
|
|
209
|
+
},
|
|
210
|
+
"android": {
|
|
211
|
+
"elevation": 4
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"lg": {
|
|
215
|
+
"boxShadow": "0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04)",
|
|
216
|
+
"ios": {
|
|
217
|
+
"shadowColor": "#0F172A",
|
|
218
|
+
"shadowOffset": {
|
|
219
|
+
"width": 0,
|
|
220
|
+
"height": 12
|
|
221
|
+
},
|
|
222
|
+
"shadowOpacity": 0.08,
|
|
223
|
+
"shadowRadius": 32
|
|
224
|
+
},
|
|
225
|
+
"android": {
|
|
226
|
+
"elevation": 8
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"primary": {
|
|
230
|
+
"boxShadow": "0 12px 28px rgba(224,122,95,0.28), 0 4px 10px rgba(224,122,95,0.18)",
|
|
231
|
+
"ios": {
|
|
232
|
+
"shadowColor": "#E07A5F",
|
|
233
|
+
"shadowOffset": {
|
|
234
|
+
"width": 0,
|
|
235
|
+
"height": 12
|
|
236
|
+
},
|
|
237
|
+
"shadowOpacity": 0.28,
|
|
238
|
+
"shadowRadius": 28
|
|
239
|
+
},
|
|
240
|
+
"android": {
|
|
241
|
+
"elevation": 8,
|
|
242
|
+
"shadowColor": "#E07A5F"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"motion": {
|
|
247
|
+
"spring": {
|
|
248
|
+
"response": 550,
|
|
249
|
+
"damping": 0.75,
|
|
250
|
+
"reanimated": {
|
|
251
|
+
"stiffness": 130.51,
|
|
252
|
+
"damping": 17.14,
|
|
253
|
+
"mass": 1
|
|
254
|
+
},
|
|
255
|
+
"durationBased": {
|
|
256
|
+
"duration": 550,
|
|
257
|
+
"dampingRatio": 0.75
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"tap": {
|
|
261
|
+
"scale": 0.95,
|
|
262
|
+
"opacity": 0.8
|
|
263
|
+
},
|
|
264
|
+
"staggerDelay": 80,
|
|
265
|
+
"shimmerDuration": 1500,
|
|
266
|
+
"reduced": 120
|
|
267
|
+
},
|
|
268
|
+
"focusRing": {
|
|
269
|
+
"innerWidth": 2,
|
|
270
|
+
"outerWidth": 2,
|
|
271
|
+
"innerColor": "#FFFFFF",
|
|
272
|
+
"color": "#C05539"
|
|
273
|
+
},
|
|
274
|
+
"material": {
|
|
275
|
+
"chromeBg": "rgba(255, 255, 255, 0.95)",
|
|
276
|
+
"scrim": "rgba(15, 23, 42, 0.45)",
|
|
277
|
+
"blur": 20,
|
|
278
|
+
"saturate": 1.4
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
module.exports = { tokens };
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
// GENERATED FILE — do not edit. Canonical source: tokens/**/*.tokens.json
|
|
2
|
+
// (npm run build in @cupped/tokens). Dimensions are unitless RN dp numbers,
|
|
3
|
+
// durations are ms, fontFamily is a single string. shadow.*.boxShadow targets
|
|
4
|
+
// RN 0.76+/new architecture; shadow.*.ios/android are the legacy props.
|
|
5
|
+
|
|
6
|
+
export declare const tokens: {
|
|
7
|
+
readonly "color": {
|
|
8
|
+
readonly "canvas": "#F8FAFC";
|
|
9
|
+
readonly "card": "#FFFFFF";
|
|
10
|
+
readonly "canvasBorder": "#E2E8F0";
|
|
11
|
+
readonly "canvasBorderSubtle": "#F1F5F9";
|
|
12
|
+
readonly "ink": {
|
|
13
|
+
readonly "default": "#0F172A";
|
|
14
|
+
readonly "secondary": "#475569";
|
|
15
|
+
readonly "muted": "#94A3B8";
|
|
16
|
+
readonly "inverse": "#F8FAFC";
|
|
17
|
+
};
|
|
18
|
+
readonly "primary": {
|
|
19
|
+
readonly "default": "#E07A5F";
|
|
20
|
+
readonly "strong": "#C05539";
|
|
21
|
+
readonly "strongHover": "#AD4A30";
|
|
22
|
+
readonly "hover": "#D16A4F";
|
|
23
|
+
readonly "light": "#FDF2F0";
|
|
24
|
+
readonly "muted": "rgba(224, 122, 95, 0.12)";
|
|
25
|
+
};
|
|
26
|
+
readonly "success": {
|
|
27
|
+
readonly "default": "#22C55E";
|
|
28
|
+
readonly "light": "#F0FDF4";
|
|
29
|
+
readonly "ink": "#15803D";
|
|
30
|
+
};
|
|
31
|
+
readonly "error": {
|
|
32
|
+
readonly "default": "#EF4444";
|
|
33
|
+
readonly "light": "#FEF2F2";
|
|
34
|
+
readonly "ink": "#B91C1C";
|
|
35
|
+
};
|
|
36
|
+
readonly "warning": {
|
|
37
|
+
readonly "default": "#F59E0B";
|
|
38
|
+
readonly "light": "#FFFBEB";
|
|
39
|
+
readonly "ink": "#B45309";
|
|
40
|
+
};
|
|
41
|
+
readonly "info": {
|
|
42
|
+
readonly "default": "#3B82F6";
|
|
43
|
+
readonly "light": "#EFF6FF";
|
|
44
|
+
readonly "ink": "#1D4ED8";
|
|
45
|
+
};
|
|
46
|
+
readonly "flavor": {
|
|
47
|
+
readonly "fruity": {
|
|
48
|
+
readonly "fill": "#B44C54";
|
|
49
|
+
readonly "text": "#9B494E";
|
|
50
|
+
};
|
|
51
|
+
readonly "berry": {
|
|
52
|
+
readonly "fill": "#AC4D7B";
|
|
53
|
+
readonly "text": "#94496D";
|
|
54
|
+
};
|
|
55
|
+
readonly "citrus": {
|
|
56
|
+
readonly "fill": "#A65F02";
|
|
57
|
+
readonly "text": "#925512";
|
|
58
|
+
};
|
|
59
|
+
readonly "sweet": {
|
|
60
|
+
readonly "fill": "#8E6E09";
|
|
61
|
+
readonly "text": "#7E6207";
|
|
62
|
+
};
|
|
63
|
+
readonly "floral": {
|
|
64
|
+
readonly "fill": "#865CB2";
|
|
65
|
+
readonly "text": "#755498";
|
|
66
|
+
};
|
|
67
|
+
readonly "green": {
|
|
68
|
+
readonly "fill": "#4E8429";
|
|
69
|
+
readonly "text": "#49742E";
|
|
70
|
+
};
|
|
71
|
+
readonly "spice": {
|
|
72
|
+
readonly "fill": "#B4503A";
|
|
73
|
+
readonly "text": "#9B4C3A";
|
|
74
|
+
};
|
|
75
|
+
readonly "nutty": {
|
|
76
|
+
readonly "fill": "#876F49";
|
|
77
|
+
readonly "text": "#79623E";
|
|
78
|
+
};
|
|
79
|
+
readonly "chocolate": {
|
|
80
|
+
readonly "fill": "#916951";
|
|
81
|
+
readonly "text": "#825C46";
|
|
82
|
+
};
|
|
83
|
+
readonly "roasted": {
|
|
84
|
+
readonly "fill": "#896B5E";
|
|
85
|
+
readonly "text": "#7B5F52";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly "onFlavor": "#FFFFFF";
|
|
89
|
+
readonly "xp": "#8E6E09";
|
|
90
|
+
readonly "xpAccessible": "#7E6207";
|
|
91
|
+
readonly "ember": "#F97316";
|
|
92
|
+
readonly "emberAccessible": "#C2410C";
|
|
93
|
+
readonly "streak": "#F97316";
|
|
94
|
+
readonly "streakAccessible": "#C2410C";
|
|
95
|
+
readonly "badge": "#865CB2";
|
|
96
|
+
readonly "badgeAccessible": "#755498";
|
|
97
|
+
readonly "zone": {
|
|
98
|
+
readonly "ideal": "#22C55E";
|
|
99
|
+
readonly "under": "#3B82F6";
|
|
100
|
+
readonly "over": "#EF4444";
|
|
101
|
+
readonly "strong": "#F59E0B";
|
|
102
|
+
readonly "weak": "#94A3B8";
|
|
103
|
+
};
|
|
104
|
+
readonly "chart": {
|
|
105
|
+
readonly "sca": "#E07A5F";
|
|
106
|
+
readonly "ucdavis": "#865CB2";
|
|
107
|
+
readonly "grid": "#E2E8F0";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly "space": {
|
|
111
|
+
readonly "xs": 4;
|
|
112
|
+
readonly "sm": 8;
|
|
113
|
+
readonly "md": 12;
|
|
114
|
+
readonly "base": 16;
|
|
115
|
+
readonly "lg": 20;
|
|
116
|
+
readonly "xl": 24;
|
|
117
|
+
readonly "xxl": 32;
|
|
118
|
+
readonly "hitTargetMin": 44;
|
|
119
|
+
};
|
|
120
|
+
readonly "radius": {
|
|
121
|
+
readonly "sm": 8;
|
|
122
|
+
readonly "md": 12;
|
|
123
|
+
readonly "lg": 16;
|
|
124
|
+
readonly "xl": 24;
|
|
125
|
+
readonly "full": 9999;
|
|
126
|
+
};
|
|
127
|
+
readonly "font": {
|
|
128
|
+
readonly "sans": "Inter";
|
|
129
|
+
readonly "serif": "Instrument Serif";
|
|
130
|
+
readonly "mono": "JetBrains Mono";
|
|
131
|
+
};
|
|
132
|
+
readonly "type": {
|
|
133
|
+
readonly "screenTitle": {
|
|
134
|
+
readonly "fontFamily": "Inter";
|
|
135
|
+
readonly "fontSize": 32;
|
|
136
|
+
readonly "fontWeight": "700";
|
|
137
|
+
readonly "lineHeight": 35;
|
|
138
|
+
};
|
|
139
|
+
readonly "sheetTitle": {
|
|
140
|
+
readonly "fontFamily": "Inter";
|
|
141
|
+
readonly "fontSize": 24;
|
|
142
|
+
readonly "fontWeight": "600";
|
|
143
|
+
readonly "lineHeight": 29;
|
|
144
|
+
};
|
|
145
|
+
readonly "cardTitle": {
|
|
146
|
+
readonly "fontFamily": "Inter";
|
|
147
|
+
readonly "fontSize": 20;
|
|
148
|
+
readonly "fontWeight": "600";
|
|
149
|
+
readonly "lineHeight": 25;
|
|
150
|
+
};
|
|
151
|
+
readonly "body": {
|
|
152
|
+
readonly "fontFamily": "Inter";
|
|
153
|
+
readonly "fontSize": 16;
|
|
154
|
+
readonly "fontWeight": "400";
|
|
155
|
+
readonly "lineHeight": 24;
|
|
156
|
+
};
|
|
157
|
+
readonly "bodySm": {
|
|
158
|
+
readonly "fontFamily": "Inter";
|
|
159
|
+
readonly "fontSize": 14;
|
|
160
|
+
readonly "fontWeight": "400";
|
|
161
|
+
readonly "lineHeight": 20;
|
|
162
|
+
};
|
|
163
|
+
readonly "caption": {
|
|
164
|
+
readonly "fontFamily": "Inter";
|
|
165
|
+
readonly "fontSize": 12;
|
|
166
|
+
readonly "fontWeight": "500";
|
|
167
|
+
readonly "lineHeight": 17;
|
|
168
|
+
};
|
|
169
|
+
readonly "display": {
|
|
170
|
+
readonly "fontFamily": "Instrument Serif";
|
|
171
|
+
readonly "fontSize": 56;
|
|
172
|
+
readonly "fontWeight": "400";
|
|
173
|
+
readonly "lineHeight": 56;
|
|
174
|
+
readonly "letterSpacing": -0.84;
|
|
175
|
+
};
|
|
176
|
+
readonly "mono": {
|
|
177
|
+
readonly "fontFamily": "JetBrains Mono";
|
|
178
|
+
readonly "fontSize": 12;
|
|
179
|
+
readonly "fontWeight": "500";
|
|
180
|
+
readonly "lineHeight": 17;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly "shadow": {
|
|
184
|
+
readonly "sm": {
|
|
185
|
+
readonly "boxShadow": "0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03)";
|
|
186
|
+
readonly "ios": {
|
|
187
|
+
readonly "shadowColor": "#0F172A";
|
|
188
|
+
readonly "shadowOffset": {
|
|
189
|
+
readonly "width": 0;
|
|
190
|
+
readonly "height": 1;
|
|
191
|
+
};
|
|
192
|
+
readonly "shadowOpacity": 0.04;
|
|
193
|
+
readonly "shadowRadius": 2;
|
|
194
|
+
};
|
|
195
|
+
readonly "android": {
|
|
196
|
+
readonly "elevation": 1;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly "md": {
|
|
200
|
+
readonly "boxShadow": "0 4px 12px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04)";
|
|
201
|
+
readonly "ios": {
|
|
202
|
+
readonly "shadowColor": "#0F172A";
|
|
203
|
+
readonly "shadowOffset": {
|
|
204
|
+
readonly "width": 0;
|
|
205
|
+
readonly "height": 4;
|
|
206
|
+
};
|
|
207
|
+
readonly "shadowOpacity": 0.06;
|
|
208
|
+
readonly "shadowRadius": 12;
|
|
209
|
+
};
|
|
210
|
+
readonly "android": {
|
|
211
|
+
readonly "elevation": 4;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly "lg": {
|
|
215
|
+
readonly "boxShadow": "0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04)";
|
|
216
|
+
readonly "ios": {
|
|
217
|
+
readonly "shadowColor": "#0F172A";
|
|
218
|
+
readonly "shadowOffset": {
|
|
219
|
+
readonly "width": 0;
|
|
220
|
+
readonly "height": 12;
|
|
221
|
+
};
|
|
222
|
+
readonly "shadowOpacity": 0.08;
|
|
223
|
+
readonly "shadowRadius": 32;
|
|
224
|
+
};
|
|
225
|
+
readonly "android": {
|
|
226
|
+
readonly "elevation": 8;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly "primary": {
|
|
230
|
+
readonly "boxShadow": "0 12px 28px rgba(224,122,95,0.28), 0 4px 10px rgba(224,122,95,0.18)";
|
|
231
|
+
readonly "ios": {
|
|
232
|
+
readonly "shadowColor": "#E07A5F";
|
|
233
|
+
readonly "shadowOffset": {
|
|
234
|
+
readonly "width": 0;
|
|
235
|
+
readonly "height": 12;
|
|
236
|
+
};
|
|
237
|
+
readonly "shadowOpacity": 0.28;
|
|
238
|
+
readonly "shadowRadius": 28;
|
|
239
|
+
};
|
|
240
|
+
readonly "android": {
|
|
241
|
+
readonly "elevation": 8;
|
|
242
|
+
readonly "shadowColor": "#E07A5F";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
readonly "motion": {
|
|
247
|
+
readonly "spring": {
|
|
248
|
+
readonly "response": 550;
|
|
249
|
+
readonly "damping": 0.75;
|
|
250
|
+
readonly "reanimated": {
|
|
251
|
+
readonly "stiffness": 130.51;
|
|
252
|
+
readonly "damping": 17.14;
|
|
253
|
+
readonly "mass": 1;
|
|
254
|
+
};
|
|
255
|
+
readonly "durationBased": {
|
|
256
|
+
readonly "duration": 550;
|
|
257
|
+
readonly "dampingRatio": 0.75;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly "tap": {
|
|
261
|
+
readonly "scale": 0.95;
|
|
262
|
+
readonly "opacity": 0.8;
|
|
263
|
+
};
|
|
264
|
+
readonly "staggerDelay": 80;
|
|
265
|
+
readonly "shimmerDuration": 1500;
|
|
266
|
+
readonly "reduced": 120;
|
|
267
|
+
};
|
|
268
|
+
readonly "focusRing": {
|
|
269
|
+
readonly "innerWidth": 2;
|
|
270
|
+
readonly "outerWidth": 2;
|
|
271
|
+
readonly "innerColor": "#FFFFFF";
|
|
272
|
+
readonly "color": "#C05539";
|
|
273
|
+
};
|
|
274
|
+
readonly "material": {
|
|
275
|
+
readonly "chromeBg": "rgba(255, 255, 255, 0.95)";
|
|
276
|
+
readonly "scrim": "rgba(15, 23, 42, 0.45)";
|
|
277
|
+
readonly "blur": 20;
|
|
278
|
+
readonly "saturate": 1.4;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export type FlavorName = "fruity" | "berry" | "citrus" | "sweet" | "floral" | "green" | "spice" | "nutty" | "chocolate" | "roasted";
|
|
283
|
+
export type SpacingKey = "xs" | "sm" | "md" | "base" | "lg" | "xl" | "xxl";
|
|
284
|
+
export type RadiusKey = "sm" | "md" | "lg" | "xl" | "full";
|
|
285
|
+
export type TypeStyleName = "screenTitle" | "sheetTitle" | "cardTitle" | "body" | "bodySm" | "caption" | "display" | "mono";
|