@windstream/react-shared-components 0.0.1
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/LICENSE +21 -0
- package/README.md +360 -0
- package/dist/core.d.ts +389 -0
- package/dist/index.d.ts +389 -0
- package/dist/index.esm.js +35 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +3 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.esm.js +2 -0
- package/dist/utils/index.esm.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +151 -0
- package/src/components/accordion/Accordion.stories.tsx +225 -0
- package/src/components/accordion/index.tsx +36 -0
- package/src/components/accordion/types.ts +10 -0
- package/src/components/alert-card/AlertCard.stories.tsx +172 -0
- package/src/components/alert-card/index.tsx +35 -0
- package/src/components/alert-card/types.ts +9 -0
- package/src/components/brand-button/BrandButton.stories.tsx +221 -0
- package/src/components/brand-button/helpers.ts +35 -0
- package/src/components/brand-button/index.tsx +90 -0
- package/src/components/brand-button/types.ts +27 -0
- package/src/components/button/Button.stories.tsx +108 -0
- package/src/components/button/index.tsx +23 -0
- package/src/components/button/types.ts +14 -0
- package/src/components/call-button/CallButton.stories.tsx +324 -0
- package/src/components/call-button/index.tsx +80 -0
- package/src/components/call-button/types.ts +9 -0
- package/src/components/checkbox/Checkbox.stories.tsx +248 -0
- package/src/components/checkbox/index.tsx +185 -0
- package/src/components/checkbox/types.ts +24 -0
- package/src/components/checklist/Checklist.stories.tsx +151 -0
- package/src/components/checklist/index.tsx +33 -0
- package/src/components/checklist/types.ts +6 -0
- package/src/components/collapse/Collapse.stories.tsx +256 -0
- package/src/components/collapse/index.tsx +44 -0
- package/src/components/collapse/types.ts +6 -0
- package/src/components/divider/Divider.stories.tsx +206 -0
- package/src/components/divider/index.tsx +23 -0
- package/src/components/divider/type.ts +3 -0
- package/src/components/input/Input.stories.tsx +358 -0
- package/src/components/input/index.tsx +174 -0
- package/src/components/input/types.ts +37 -0
- package/src/components/link/Link.stories.tsx +163 -0
- package/src/components/link/index.tsx +96 -0
- package/src/components/link/types.ts +25 -0
- package/src/components/list/List.stories.tsx +272 -0
- package/src/components/list/index.tsx +86 -0
- package/src/components/list/list-item/index.tsx +36 -0
- package/src/components/list/list-item/types.ts +13 -0
- package/src/components/list/types.ts +29 -0
- package/src/components/material-icon/MaterialIcon.stories.tsx +330 -0
- package/src/components/material-icon/constants.ts +95 -0
- package/src/components/material-icon/index.tsx +44 -0
- package/src/components/material-icon/types.ts +31 -0
- package/src/components/modal/Modal.stories.tsx +171 -0
- package/src/components/modal/index.tsx +168 -0
- package/src/components/modal/types.ts +24 -0
- package/src/components/radio-button/RadioButton.stories.tsx +307 -0
- package/src/components/radio-button/index.tsx +73 -0
- package/src/components/radio-button/types.ts +22 -0
- package/src/components/see-more/SeeMore.stories.tsx +182 -0
- package/src/components/see-more/index.tsx +38 -0
- package/src/components/see-more/types.ts +4 -0
- package/src/components/select/Select.stories.tsx +410 -0
- package/src/components/select/index.tsx +150 -0
- package/src/components/select/types.ts +34 -0
- package/src/components/select-plan-button/SelectPlanButton.stories.tsx +160 -0
- package/src/components/select-plan-button/index.tsx +21 -0
- package/src/components/select-plan-button/types.ts +4 -0
- package/src/components/skeleton/Skeleton.stories.tsx +180 -0
- package/src/components/skeleton/index.tsx +61 -0
- package/src/components/skeleton/types.ts +4 -0
- package/src/components/spinner/Spinner.stories.tsx +335 -0
- package/src/components/spinner/index.tsx +44 -0
- package/src/components/spinner/types.ts +5 -0
- package/src/components/text/Text.stories.tsx +302 -0
- package/src/components/text/index.tsx +26 -0
- package/src/components/text/types.ts +45 -0
- package/src/components/tooltip/Tooltip.stories.tsx +220 -0
- package/src/components/tooltip/index.tsx +78 -0
- package/src/components/tooltip/types.ts +7 -0
- package/src/components/view-cart-button/ViewCartButton.stories.tsx +241 -0
- package/src/components/view-cart-button/index.tsx +39 -0
- package/src/components/view-cart-button/types.ts +5 -0
- package/src/hooks/use-body-scroll-lock.ts +31 -0
- package/src/index.ts +81 -0
- package/src/setupTests.ts +46 -0
- package/src/stories/DocsTemplate.tsx +26 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/styles/globals.css +50 -0
- package/src/types/global.d.ts +9 -0
- package/src/utils/index.ts +49 -0
- package/tailwind.config.cjs +524 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
const { fontFamily } = require("tailwindcss/defaultTheme");
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Config} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
important: true,
|
|
6
|
+
content: ["./src/**/*.{js,ts,jsx,tsx}"],
|
|
7
|
+
theme: {
|
|
8
|
+
extend: {
|
|
9
|
+
colors: {
|
|
10
|
+
border: {
|
|
11
|
+
DEFAULT: "#E6E6E6",
|
|
12
|
+
brand: "#24A76A",
|
|
13
|
+
critical: {
|
|
14
|
+
DEFAULT: "#7E0000",
|
|
15
|
+
secondary: "#F0A7A7",
|
|
16
|
+
},
|
|
17
|
+
disabled: "#F2F2F4",
|
|
18
|
+
focus: {
|
|
19
|
+
DEFAULT: "#24A76A",
|
|
20
|
+
inverse: "#00002D",
|
|
21
|
+
secondary: "#00002D",
|
|
22
|
+
},
|
|
23
|
+
hover: "#CECECE",
|
|
24
|
+
info: "#CECECE",
|
|
25
|
+
inverse: "#FFFFFF",
|
|
26
|
+
secondary: {
|
|
27
|
+
DEFAULT: "#F2F2F4",
|
|
28
|
+
"on-bg-fill": "#949494",
|
|
29
|
+
},
|
|
30
|
+
success: "#24A76A",
|
|
31
|
+
tertiary: "#CECECE",
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
icon: {
|
|
35
|
+
brand: {
|
|
36
|
+
DEFAULT: "#24A76A",
|
|
37
|
+
accent: "#F5FF1E",
|
|
38
|
+
},
|
|
39
|
+
critical: "#D40000",
|
|
40
|
+
default: "#00002D",
|
|
41
|
+
info: "#757575",
|
|
42
|
+
inverse: {
|
|
43
|
+
DEFAULT: "#FFFFFF",
|
|
44
|
+
secondary: "#E6E6E6",
|
|
45
|
+
},
|
|
46
|
+
secondary: "#757575",
|
|
47
|
+
success: "#24A76A",
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// Specialty
|
|
51
|
+
checkbox: {
|
|
52
|
+
bg: {
|
|
53
|
+
surface: {
|
|
54
|
+
disabled: "#F7F7F8",
|
|
55
|
+
selected: {
|
|
56
|
+
disabled: "#E6E6E6",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
icon: {
|
|
61
|
+
disabled: "#FFFFFF",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
input: {
|
|
66
|
+
bg: {
|
|
67
|
+
surface: {
|
|
68
|
+
DEFAULT: "#FFFFFF",
|
|
69
|
+
active: "#F2F2F4",
|
|
70
|
+
disabled: "#F7F7F8",
|
|
71
|
+
hover: "#F7F7F8",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
border: {
|
|
75
|
+
DEFAULT: "#CECECE",
|
|
76
|
+
critical: "#D40000",
|
|
77
|
+
hover: "#00002D",
|
|
78
|
+
selected: "#24A76A",
|
|
79
|
+
},
|
|
80
|
+
icon: {
|
|
81
|
+
placeholder: "#757575",
|
|
82
|
+
},
|
|
83
|
+
text: {
|
|
84
|
+
placeholder: "#5E5E5E",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
nav: {
|
|
89
|
+
bg: {
|
|
90
|
+
DEFAULT: "#FFFFFF",
|
|
91
|
+
surface: {
|
|
92
|
+
DEFAULT: "#FBFBFC",
|
|
93
|
+
active: "#F2F2F4",
|
|
94
|
+
hover: "#F7F7F8",
|
|
95
|
+
selected: "#F2F2F4",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
radio: {
|
|
101
|
+
button: {
|
|
102
|
+
bg: {
|
|
103
|
+
surface: {
|
|
104
|
+
disabled: "#F7F7F8",
|
|
105
|
+
selected: {
|
|
106
|
+
disabled: "#E6E6E6",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
icon: {
|
|
111
|
+
disabled: "#F7F7F8",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
scrim: {
|
|
117
|
+
bg: {
|
|
118
|
+
modal: "rgba(0, 0, 0, 0.5)",
|
|
119
|
+
video: {
|
|
120
|
+
lightbox: "rgba(0, 0, 0, 0.8)",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
skeleton: {
|
|
126
|
+
bg: {
|
|
127
|
+
start: "#CECECE",
|
|
128
|
+
end: "#E6E6E6",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
toggle: {
|
|
133
|
+
bg: {
|
|
134
|
+
fill: "#FFFFFF",
|
|
135
|
+
surface: {
|
|
136
|
+
active: "#24A76A",
|
|
137
|
+
disabled: "#949494",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
tooltip: {
|
|
143
|
+
bg: "#464646",
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
// Surface
|
|
147
|
+
bg: {
|
|
148
|
+
DEFAULT: "#FFFFFF",
|
|
149
|
+
fill: {
|
|
150
|
+
brand: {
|
|
151
|
+
DEFAULT: "#24A76A",
|
|
152
|
+
accent: "#F5FF1E",
|
|
153
|
+
active: "#209A61",
|
|
154
|
+
disabled: "#CECECE",
|
|
155
|
+
hover: "#45C187",
|
|
156
|
+
selected: "#24A76A",
|
|
157
|
+
supporting: "#07B2E2",
|
|
158
|
+
tertiary: "#931D69",
|
|
159
|
+
},
|
|
160
|
+
critical: {
|
|
161
|
+
DEFAULT: "#D40000",
|
|
162
|
+
secondary: "#FDF5F5",
|
|
163
|
+
},
|
|
164
|
+
info: "#F2F2F4",
|
|
165
|
+
inverse: {
|
|
166
|
+
DEFAULT: "#00002D",
|
|
167
|
+
active: "#00002D",
|
|
168
|
+
disabled: "#CECECE",
|
|
169
|
+
hover: "#191A54",
|
|
170
|
+
selected: "#00002D",
|
|
171
|
+
},
|
|
172
|
+
secondary: {
|
|
173
|
+
DEFAULT: "#FFFFFF",
|
|
174
|
+
active: "#F2F2F4",
|
|
175
|
+
hover: "#FBFBFC",
|
|
176
|
+
},
|
|
177
|
+
success: {
|
|
178
|
+
DEFAULT: "#24A76A",
|
|
179
|
+
secondary: "#F4FBF8",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
inverse: "#00002D",
|
|
184
|
+
surface: {
|
|
185
|
+
DEFAULT: "#FFFFFF",
|
|
186
|
+
active: "#F2F2F4",
|
|
187
|
+
brand: "#F4FBF8",
|
|
188
|
+
disabled: "#F2F2F4",
|
|
189
|
+
hover: "#F7F7F8",
|
|
190
|
+
info: "#F7F7F8",
|
|
191
|
+
inverse: "#191A54",
|
|
192
|
+
secondary: {
|
|
193
|
+
DEFAULT: "#FBFBFC",
|
|
194
|
+
active: "#E6E6E6",
|
|
195
|
+
hover: "#F2F2F4",
|
|
196
|
+
selected: "#E6E6E6",
|
|
197
|
+
},
|
|
198
|
+
selected: "#F7F7F8",
|
|
199
|
+
success: "#D3F2E3",
|
|
200
|
+
tertiary: {
|
|
201
|
+
DEFAULT: "#F7F7F8",
|
|
202
|
+
active: "#E6E6E6",
|
|
203
|
+
hover: "#F2F2F4",
|
|
204
|
+
},
|
|
205
|
+
transparent: "rgba(0, 0, 0, 0)",
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
text: {
|
|
210
|
+
DEFAULT: "#00002D",
|
|
211
|
+
brand: {
|
|
212
|
+
DEFAULT: "#24A76A",
|
|
213
|
+
accent: {
|
|
214
|
+
"on-bg-fill": "#00002D",
|
|
215
|
+
},
|
|
216
|
+
hover: "#1B8352",
|
|
217
|
+
"on-bg-fill": "#FFFFFF",
|
|
218
|
+
supporting: {
|
|
219
|
+
"on-bg-fill": "#00002D",
|
|
220
|
+
},
|
|
221
|
+
tertiary: {
|
|
222
|
+
"on-bg-fill": "#FFFFFF",
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
critical: {
|
|
226
|
+
DEFAULT: "#D40000",
|
|
227
|
+
"on-bg-inverse": "#FDF5F5",
|
|
228
|
+
},
|
|
229
|
+
disabled: "#757575",
|
|
230
|
+
info: "#464646",
|
|
231
|
+
inverse: "#FFFFFF",
|
|
232
|
+
link: {
|
|
233
|
+
DEFAULT: "#00002D",
|
|
234
|
+
active: "#00002D",
|
|
235
|
+
hover: "#00002D",
|
|
236
|
+
inverse: "#FFFFFF",
|
|
237
|
+
},
|
|
238
|
+
secondary: "#464646",
|
|
239
|
+
success: "#1B8352",
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
fontSize: {
|
|
243
|
+
heading1: "3rem", // 48px
|
|
244
|
+
heading2: "2.25rem", // 36px
|
|
245
|
+
heading3: "1.875rem", // 30px
|
|
246
|
+
heading4: "1.5rem", // 24px
|
|
247
|
+
heading5: "1.875rem", // 30px
|
|
248
|
+
heading6: "1.5rem", // 24px
|
|
249
|
+
subheading1: "1.5rem", // 24px
|
|
250
|
+
subheading2: "1.5rem", // 24px
|
|
251
|
+
subheading3: "1.125rem", // 18px
|
|
252
|
+
subheading4: "1.125rem", // 18px
|
|
253
|
+
subheading5: "3.75rem", // 60px
|
|
254
|
+
subheading6: "3rem", // 48px
|
|
255
|
+
body1: "1.25rem", // 20px
|
|
256
|
+
body2: "1.125rem", // 18px
|
|
257
|
+
body3: "1rem", // 16px
|
|
258
|
+
footnote: "0.875rem", // 14px
|
|
259
|
+
micro: "0.75rem", // 12px
|
|
260
|
+
label1: "1.25rem", // 20px
|
|
261
|
+
label2: "1.125rem", // 18px
|
|
262
|
+
label3: "1rem", // 16px
|
|
263
|
+
label4: "0.875rem", // 14px
|
|
264
|
+
label5: "1.25rem", // 20px
|
|
265
|
+
label6: "1.125rem", // 18px
|
|
266
|
+
},
|
|
267
|
+
lineHeight: {
|
|
268
|
+
4: "1rem", // 16px
|
|
269
|
+
5: "1.25rem", // 20px
|
|
270
|
+
6: "1.5rem", // 24px
|
|
271
|
+
7: "1.75rem", // 28px
|
|
272
|
+
8: "2rem", // 32px
|
|
273
|
+
9: "2.25rem", // 36px
|
|
274
|
+
9.2: "2.375rem", // 38px
|
|
275
|
+
10: "2.5rem", // 40px
|
|
276
|
+
12: "3rem", // 48px
|
|
277
|
+
15: "3.75rem", // 60px
|
|
278
|
+
18: "4.5rem", // 72px
|
|
279
|
+
},
|
|
280
|
+
spacing: {
|
|
281
|
+
7: "1.75rem", // 28px
|
|
282
|
+
17: "4.25rem", // 68px
|
|
283
|
+
1.5: "0.375rem", // 6px
|
|
284
|
+
2: "0.5rem", // 8px
|
|
285
|
+
3: "0.75rem", // 12px
|
|
286
|
+
4: "1rem", // 16px
|
|
287
|
+
4.5: "1.125rem", // 18px
|
|
288
|
+
6: "1.5rem", // 24px
|
|
289
|
+
18: "4.5rem", // 72px
|
|
290
|
+
13: "3.25rem", // 52px
|
|
291
|
+
15: "3.75rem", // 60px
|
|
292
|
+
26: "6.5rem", // 104px
|
|
293
|
+
},
|
|
294
|
+
borderRadius: {
|
|
295
|
+
2.5: "10px",
|
|
296
|
+
3.5: "14px",
|
|
297
|
+
"2xl": "1rem",
|
|
298
|
+
"4xl": "2rem",
|
|
299
|
+
"2.5xl": "1.25rem",
|
|
300
|
+
},
|
|
301
|
+
boxShadow: {
|
|
302
|
+
drop: "0px 4px 24px -3px rgba(23, 24, 24, 0.08), 0px 6px 32px -4px rgba(23, 24, 24, 0.08)",
|
|
303
|
+
light: "0px 0px 20px 0px #0000000F",
|
|
304
|
+
cardDrop: "1px 1px 16px 0px #00000033",
|
|
305
|
+
card: "1px 1px 16px 0px rgba(0, 0, 0, 0.12), -1px -1px 16px 0px #FFF",
|
|
306
|
+
},
|
|
307
|
+
transitionTimingFunction: {
|
|
308
|
+
circ: "cubic-bezier(0.11, 0.77, 0.28, 0.92)",
|
|
309
|
+
},
|
|
310
|
+
zIndex: {
|
|
311
|
+
60: "60",
|
|
312
|
+
70: "70",
|
|
313
|
+
80: "80",
|
|
314
|
+
90: "90",
|
|
315
|
+
},
|
|
316
|
+
fontFamily: {
|
|
317
|
+
sans: ["var(--win-site-font)", ...fontFamily.sans],
|
|
318
|
+
"material-icons": ["Material Symbols Rounded", "sans-serif"],
|
|
319
|
+
figtree: ["Figtree", "sans-serif"],
|
|
320
|
+
},
|
|
321
|
+
height: {
|
|
322
|
+
12: "3rem", // 48px
|
|
323
|
+
14: "3.5rem", // 56px
|
|
324
|
+
16: "4rem", // 64px
|
|
325
|
+
22: "5.5rem", // 88px
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
screens: {
|
|
329
|
+
sm: "640px",
|
|
330
|
+
md: "768px",
|
|
331
|
+
lg: "1024px",
|
|
332
|
+
xl: "1280px",
|
|
333
|
+
max: "1200px",
|
|
334
|
+
},
|
|
335
|
+
maxWidth: {
|
|
336
|
+
none: "none",
|
|
337
|
+
80: "800px",
|
|
338
|
+
120: "1200px",
|
|
339
|
+
},
|
|
340
|
+
variants: {
|
|
341
|
+
margin: ["first"],
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
plugins: [
|
|
345
|
+
require("tailwindcss-radix")(),
|
|
346
|
+
require("@tailwindcss/typography"),
|
|
347
|
+
function ({ addComponents, theme }) {
|
|
348
|
+
const typographyComponents = {
|
|
349
|
+
// Headings
|
|
350
|
+
".heading1": {
|
|
351
|
+
"font-size": theme("fontSize.heading1"),
|
|
352
|
+
"line-height": theme("lineHeight.12"), // 3rem
|
|
353
|
+
"font-weight": "400",
|
|
354
|
+
"font-family": theme("fontFamily.spirit"),
|
|
355
|
+
},
|
|
356
|
+
".heading2": {
|
|
357
|
+
"font-size": theme("fontSize.heading2"),
|
|
358
|
+
"line-height": theme("lineHeight.10"), // 2.5rem
|
|
359
|
+
"font-weight": "400",
|
|
360
|
+
"font-family": theme("fontFamily.spirit"),
|
|
361
|
+
},
|
|
362
|
+
".heading3": {
|
|
363
|
+
"font-size": theme("fontSize.heading3"),
|
|
364
|
+
"line-height": theme("lineHeight[9.2]"), // 2.375rem
|
|
365
|
+
"font-weight": "400",
|
|
366
|
+
"font-family": theme("fontFamily.spirit"),
|
|
367
|
+
},
|
|
368
|
+
".heading4": {
|
|
369
|
+
"font-size": theme("fontSize.heading4"),
|
|
370
|
+
"line-height": theme("lineHeight.7"), // 1.75rem
|
|
371
|
+
"font-weight": "400",
|
|
372
|
+
"font-family": theme("fontFamily.spirit"),
|
|
373
|
+
},
|
|
374
|
+
".heading5": {
|
|
375
|
+
"font-size": theme("fontSize.heading5"),
|
|
376
|
+
"line-height": theme("lineHeight.9"),
|
|
377
|
+
"font-weight": "600",
|
|
378
|
+
"font-family": theme("fontFamily.figtree"),
|
|
379
|
+
},
|
|
380
|
+
".heading6": {
|
|
381
|
+
"font-size": theme("fontSize.heading6"),
|
|
382
|
+
"line-height": theme("lineHeight.8"),
|
|
383
|
+
"font-weight": "600",
|
|
384
|
+
"font-family": theme("fontFamily.figtree"),
|
|
385
|
+
},
|
|
386
|
+
|
|
387
|
+
// Subheadings
|
|
388
|
+
".subheading1": {
|
|
389
|
+
"font-size": theme("fontSize.subheading1"),
|
|
390
|
+
"line-height": theme("lineHeight.8"),
|
|
391
|
+
"font-weight": "400",
|
|
392
|
+
"font-family": theme("fontFamily.figtree"),
|
|
393
|
+
},
|
|
394
|
+
".subheading2": {
|
|
395
|
+
"font-size": theme("fontSize.subheading2"),
|
|
396
|
+
"line-height": theme("lineHeight.8"),
|
|
397
|
+
"font-weight": "700",
|
|
398
|
+
"font-family": theme("fontFamily.figtree"),
|
|
399
|
+
},
|
|
400
|
+
".subheading3": {
|
|
401
|
+
"font-size": theme("fontSize.subheading3"),
|
|
402
|
+
"line-height": theme("lineHeight.7"),
|
|
403
|
+
"font-weight": "400",
|
|
404
|
+
"font-family": theme("fontFamily.figtree"),
|
|
405
|
+
},
|
|
406
|
+
".subheading4": {
|
|
407
|
+
"font-size": theme("fontSize.subheading4"),
|
|
408
|
+
"line-height": theme("lineHeight.7"),
|
|
409
|
+
"font-weight": "700",
|
|
410
|
+
"font-family": theme("fontFamily.figtree"),
|
|
411
|
+
},
|
|
412
|
+
".subheading5": {
|
|
413
|
+
"font-size": theme("fontSize.subheading5"),
|
|
414
|
+
"line-height": theme("lineHeight.15"), // 3.75rem
|
|
415
|
+
"font-weight": "300",
|
|
416
|
+
"font-family": theme("fontFamily.figtree"),
|
|
417
|
+
},
|
|
418
|
+
".subheading6": {
|
|
419
|
+
"font-size": theme("fontSize.subheading6"),
|
|
420
|
+
"line-height": theme("lineHeight.12"),
|
|
421
|
+
"font-weight": "300",
|
|
422
|
+
"font-family": theme("fontFamily.figtree"),
|
|
423
|
+
},
|
|
424
|
+
|
|
425
|
+
// Body text
|
|
426
|
+
".body1": {
|
|
427
|
+
"font-size": theme("fontSize.body1"),
|
|
428
|
+
"line-height": theme("lineHeight.7"),
|
|
429
|
+
"font-weight": "400",
|
|
430
|
+
"font-family": theme("fontFamily.figtree"),
|
|
431
|
+
},
|
|
432
|
+
".body2": {
|
|
433
|
+
"font-size": theme("fontSize.body2"),
|
|
434
|
+
"line-height": theme("lineHeight.7"),
|
|
435
|
+
"font-weight": "400",
|
|
436
|
+
"font-family": theme("fontFamily.figtree"),
|
|
437
|
+
},
|
|
438
|
+
".body3": {
|
|
439
|
+
"font-size": theme("fontSize.body3"),
|
|
440
|
+
"line-height": theme("lineHeight.6"),
|
|
441
|
+
"font-weight": "400",
|
|
442
|
+
"font-family": theme("fontFamily.figtree"),
|
|
443
|
+
},
|
|
444
|
+
|
|
445
|
+
// Footnote & Micro
|
|
446
|
+
".footnote": {
|
|
447
|
+
"font-size": theme("fontSize.footnote"),
|
|
448
|
+
"line-height": theme("lineHeight.5"),
|
|
449
|
+
"font-weight": "400",
|
|
450
|
+
"font-family": theme("fontFamily.figtree"),
|
|
451
|
+
},
|
|
452
|
+
".micro": {
|
|
453
|
+
"font-size": theme("fontSize.micro"),
|
|
454
|
+
"line-height": theme("lineHeight.4"),
|
|
455
|
+
"font-weight": "400",
|
|
456
|
+
"font-family": theme("fontFamily.figtree"),
|
|
457
|
+
},
|
|
458
|
+
|
|
459
|
+
// Labels
|
|
460
|
+
".label1": {
|
|
461
|
+
"font-size": theme("fontSize.label1"),
|
|
462
|
+
"line-height": theme("lineHeight.7"),
|
|
463
|
+
"font-weight": "600",
|
|
464
|
+
"font-family": theme("fontFamily.figtree"),
|
|
465
|
+
},
|
|
466
|
+
".label2": {
|
|
467
|
+
"font-size": theme("fontSize.label2"),
|
|
468
|
+
"line-height": theme("lineHeight.7"),
|
|
469
|
+
"font-weight": "600",
|
|
470
|
+
"font-family": theme("fontFamily.figtree"),
|
|
471
|
+
},
|
|
472
|
+
".label3": {
|
|
473
|
+
"font-size": theme("fontSize.label3"),
|
|
474
|
+
"line-height": theme("lineHeight.6"),
|
|
475
|
+
"font-weight": "600",
|
|
476
|
+
"font-family": theme("fontFamily.figtree"),
|
|
477
|
+
},
|
|
478
|
+
".label4": {
|
|
479
|
+
"font-size": theme("fontSize.label4"),
|
|
480
|
+
"line-height": theme("lineHeight.5"),
|
|
481
|
+
"font-weight": "600",
|
|
482
|
+
"font-family": theme("fontFamily.figtree"),
|
|
483
|
+
},
|
|
484
|
+
".label5": {
|
|
485
|
+
"font-family": theme("fontFamily.spirit"),
|
|
486
|
+
"font-size": theme("fontSize.label5"),
|
|
487
|
+
"line-height": theme("lineHeight.7"),
|
|
488
|
+
"font-weight": "700",
|
|
489
|
+
},
|
|
490
|
+
".label6": {
|
|
491
|
+
"font-family": theme("fontFamily.spirit"),
|
|
492
|
+
"font-size": theme("fontSize.label6"),
|
|
493
|
+
"line-height": theme("lineHeight.7"),
|
|
494
|
+
"font-weight": "700",
|
|
495
|
+
},
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
const buttonComponents = {
|
|
499
|
+
".btn-small": {
|
|
500
|
+
...typographyComponents[".label6"],
|
|
501
|
+
height: theme("height.12"),
|
|
502
|
+
},
|
|
503
|
+
".btn-medium": {
|
|
504
|
+
...typographyComponents[".label5"],
|
|
505
|
+
height: theme("height.14"),
|
|
506
|
+
},
|
|
507
|
+
".btn-large": {
|
|
508
|
+
...typographyComponents[".label5"],
|
|
509
|
+
height: theme("height.16"),
|
|
510
|
+
},
|
|
511
|
+
".btn-x-large": {
|
|
512
|
+
...typographyComponents[".heading3"],
|
|
513
|
+
height: theme("height.22"),
|
|
514
|
+
},
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
addComponents({ ...typographyComponents, ...buttonComponents }, [
|
|
518
|
+
"responsive",
|
|
519
|
+
]);
|
|
520
|
+
},
|
|
521
|
+
],
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
|