@frontify/fondue 13.0.0-beta.6 → 13.0.0-beta.7
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/components/ComponentEnum.es.js +1 -1
- package/dist/components/ComponentEnum.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/components/style.css +1 -1
- package/dist/packages/tokens/tailwind/tailwind.config.js +327 -7
- package/package.json +3 -3
|
@@ -1,10 +1,330 @@
|
|
|
1
1
|
import plugin from 'tailwindcss/plugin';
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
theme: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
4
|
+
theme: {
|
|
5
|
+
colors: {
|
|
6
|
+
container: {
|
|
7
|
+
disabled: {
|
|
8
|
+
DEFAULT: 'var(--color-container-disabled-default)',
|
|
9
|
+
'on-disabled-container': 'var(--color-container-disabled-on-disabled-container)',
|
|
10
|
+
},
|
|
11
|
+
error: {
|
|
12
|
+
active: 'var(--color-container-error-active)',
|
|
13
|
+
DEFAULT: 'var(--color-container-error-default)',
|
|
14
|
+
hover: 'var(--color-container-error-hover)',
|
|
15
|
+
'on-error-container': 'var(--color-container-error-on-error-container)',
|
|
16
|
+
},
|
|
17
|
+
highlight: {
|
|
18
|
+
active: 'var(--color-container-highlight-active)',
|
|
19
|
+
DEFAULT: 'var(--color-container-highlight-default)',
|
|
20
|
+
hover: 'var(--color-container-highlight-hover)',
|
|
21
|
+
'on-highlight-container': 'var(--color-container-highlight-on-highlight-container)',
|
|
22
|
+
},
|
|
23
|
+
secondary: {
|
|
24
|
+
active: 'var(--color-container-secondary-active)',
|
|
25
|
+
DEFAULT: 'var(--color-container-secondary-default)',
|
|
26
|
+
hover: 'var(--color-container-secondary-hover)',
|
|
27
|
+
'on-secondary-container': 'var(--color-container-secondary-on-secondary-container)',
|
|
28
|
+
'on-secondary-container-variant': 'var(--color-container-secondary-on-secondary-container-variant)',
|
|
29
|
+
},
|
|
30
|
+
success: {
|
|
31
|
+
active: 'var(--color-container-success-active)',
|
|
32
|
+
DEFAULT: 'var(--color-container-success-default)',
|
|
33
|
+
hover: 'var(--color-container-success-hover)',
|
|
34
|
+
'on-success-container': 'var(--color-container-success-on-success-container)',
|
|
35
|
+
},
|
|
36
|
+
warning: {
|
|
37
|
+
active: 'var(--color-container-warning-active)',
|
|
38
|
+
DEFAULT: 'var(--color-container-warning-default)',
|
|
39
|
+
hover: 'var(--color-container-warning-hover)',
|
|
40
|
+
'on-warning-container': 'var(--color-container-warning-on-warning-container)',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
disabled: { DEFAULT: 'var(--color-disabled-default)', 'on-disabled': 'var(--color-disabled-on-disabled)' },
|
|
44
|
+
error: {
|
|
45
|
+
active: 'var(--color-error-active)',
|
|
46
|
+
DEFAULT: 'var(--color-error-default)',
|
|
47
|
+
hover: 'var(--color-error-hover)',
|
|
48
|
+
'on-error': 'var(--color-error-on-error)',
|
|
49
|
+
},
|
|
50
|
+
focus: { contrast: 'var(--color-focus-contrast)', DEFAULT: 'var(--color-focus-default)' },
|
|
51
|
+
highlight: {
|
|
52
|
+
active: 'var(--color-highlight-active)',
|
|
53
|
+
DEFAULT: 'var(--color-highlight-default)',
|
|
54
|
+
hover: 'var(--color-highlight-hover)',
|
|
55
|
+
'on-highlight': 'var(--color-highlight-on-highlight)',
|
|
56
|
+
},
|
|
57
|
+
line: {
|
|
58
|
+
mid: 'var(--color-line-mid)',
|
|
59
|
+
strong: 'var(--color-line-strong)',
|
|
60
|
+
subtle: 'var(--color-line-subtle)',
|
|
61
|
+
},
|
|
62
|
+
overlay: 'var(--color-overlay-overlay)',
|
|
63
|
+
primary: {
|
|
64
|
+
active: 'var(--color-primary-active)',
|
|
65
|
+
DEFAULT: 'var(--color-primary-default)',
|
|
66
|
+
hover: 'var(--color-primary-hover)',
|
|
67
|
+
'on-primary': 'var(--color-primary-on-primary)',
|
|
68
|
+
'on-primary-variant': 'var(--color-primary-on-primary-variant)',
|
|
69
|
+
},
|
|
70
|
+
secondary: {
|
|
71
|
+
active: 'var(--color-secondary-active)',
|
|
72
|
+
DEFAULT: 'var(--color-secondary-default)',
|
|
73
|
+
hover: 'var(--color-secondary-hover)',
|
|
74
|
+
'on-secondary': 'var(--color-secondary-on-secondary)',
|
|
75
|
+
},
|
|
76
|
+
shadow: { DEFAULT: 'var(--color-shadow-default)' },
|
|
77
|
+
success: {
|
|
78
|
+
active: 'var(--color-success-active)',
|
|
79
|
+
DEFAULT: 'var(--color-success-default)',
|
|
80
|
+
hover: 'var(--color-success-hover)',
|
|
81
|
+
'on-success': 'var(--color-success-on-success)',
|
|
82
|
+
},
|
|
83
|
+
surface: {
|
|
84
|
+
active: 'var(--color-surface-active)',
|
|
85
|
+
DEFAULT: 'var(--color-surface-default)',
|
|
86
|
+
dim: 'var(--color-surface-dim)',
|
|
87
|
+
hover: 'var(--color-surface-hover)',
|
|
88
|
+
},
|
|
89
|
+
warning: {
|
|
90
|
+
active: 'var(--color-warning-active)',
|
|
91
|
+
DEFAULT: 'var(--color-warning-default)',
|
|
92
|
+
hover: 'var(--color-warning-hover)',
|
|
93
|
+
'on-warning': 'var(--color-warning-on-warning)',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
fontSize: {
|
|
97
|
+
large: 'var(--typography-font-size-large)',
|
|
98
|
+
medium: 'var(--typography-font-size-medium)',
|
|
99
|
+
small: 'var(--typography-font-size-small)',
|
|
100
|
+
'x-large': 'var(--typography-font-size-x-large)',
|
|
101
|
+
'x-small': 'var(--typography-font-size-x-small)',
|
|
102
|
+
'xx-large': 'var(--typography-font-size-xx-large)',
|
|
103
|
+
'xx-small': 'var(--typography-font-size-xx-small)',
|
|
104
|
+
},
|
|
105
|
+
fontWeight: {
|
|
106
|
+
bold: 'var(--typography-font-weight-bold)',
|
|
107
|
+
medium: 'var(--typography-font-weight-medium)',
|
|
108
|
+
regular: 'var(--typography-font-weight-regular)',
|
|
109
|
+
},
|
|
110
|
+
fontFamily: {
|
|
111
|
+
monospace: 'var(--typography-font-family-monospace)',
|
|
112
|
+
primary: 'var(--typography-font-family-primary)',
|
|
113
|
+
},
|
|
114
|
+
letterSpacing: {
|
|
115
|
+
DEFAULT: 'var(--typography-letter-spacing-default)',
|
|
116
|
+
wide: 'var(--typography-letter-spacing-wide)',
|
|
117
|
+
},
|
|
118
|
+
lineHeight: {
|
|
119
|
+
'extra-loose': 'var(--typography-line-height-extra-loose)',
|
|
120
|
+
loose: 'var(--typography-line-height-loose)',
|
|
121
|
+
medium: 'var(--typography-line-height-medium)',
|
|
122
|
+
tight: 'var(--typography-line-height-tight)',
|
|
123
|
+
wide: 'var(--typography-line-height-wide)',
|
|
124
|
+
},
|
|
125
|
+
borderRadius: {
|
|
126
|
+
large: 'var(--border-radius-large)',
|
|
127
|
+
medium: 'var(--border-radius-medium)',
|
|
128
|
+
small: 'var(--border-radius-small)',
|
|
129
|
+
'x-large': 'var(--border-radius-x-large)',
|
|
130
|
+
full: '9999px',
|
|
131
|
+
},
|
|
132
|
+
borderWidth: { DEFAULT: 'var(--border-width-default)', large: 'var(--border-width-large)' },
|
|
133
|
+
ringColor: { DEFAULT: 'var(--color-focus-default)' },
|
|
134
|
+
outline: { DEFAULT: '1px solid var(--color-focus-default)' },
|
|
135
|
+
boxShadow: { big: 'var(--shadow-big)', DEFAULT: 'var(--shadow-default)', mid: 'var(--shadow-mid)' },
|
|
136
|
+
extend: {
|
|
137
|
+
spacing: {
|
|
138
|
+
large: 'var(--spacing-large)',
|
|
139
|
+
medium: 'var(--spacing-medium)',
|
|
140
|
+
small: 'var(--spacing-small)',
|
|
141
|
+
'x-large': 'var(--spacing-x-large)',
|
|
142
|
+
'x-small': 'var(--spacing-x-small)',
|
|
143
|
+
'xx-large': 'var(--spacing-xx-large)',
|
|
144
|
+
'xx-small': 'var(--spacing-xx-small)',
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
plugins: [
|
|
149
|
+
plugin(function ({ addUtilities }) {
|
|
150
|
+
addUtilities({
|
|
151
|
+
'.body-large': {
|
|
152
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
153
|
+
fontSize: 'var(--typography-font-size-large)',
|
|
154
|
+
fontWeight: 'var(--typography-font-weight-regular)',
|
|
155
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
156
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
157
|
+
lineHeight: 'var(--typography-line-height-wide)',
|
|
158
|
+
},
|
|
159
|
+
'.body-large-strong': {
|
|
160
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
161
|
+
fontSize: 'var(--typography-font-size-large)',
|
|
162
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
163
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
164
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
165
|
+
lineHeight: 'var(--typography-line-height-wide)',
|
|
166
|
+
},
|
|
167
|
+
'.body-large-x-strong': {
|
|
168
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
169
|
+
fontSize: 'var(--typography-font-size-large)',
|
|
170
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
171
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
172
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
173
|
+
lineHeight: 'var(--typography-line-height-wide)',
|
|
174
|
+
},
|
|
175
|
+
'.body-medium': {
|
|
176
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
177
|
+
fontSize: 'var(--typography-font-size-medium)',
|
|
178
|
+
fontWeight: 'var(--typography-font-weight-regular)',
|
|
179
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
180
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
181
|
+
lineHeight: 'var(--typography-line-height-medium)',
|
|
182
|
+
},
|
|
183
|
+
'.body-medium-strong': {
|
|
184
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
185
|
+
fontSize: 'var(--typography-font-size-medium)',
|
|
186
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
187
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
188
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
189
|
+
lineHeight: 'var(--typography-line-height-medium)',
|
|
190
|
+
},
|
|
191
|
+
'.body-medium-x-strong': {
|
|
192
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
193
|
+
fontSize: 'var(--typography-font-size-medium)',
|
|
194
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
195
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
196
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
197
|
+
lineHeight: 'var(--typography-line-height-medium)',
|
|
198
|
+
},
|
|
199
|
+
'.body-small': {
|
|
200
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
201
|
+
fontSize: 'var(--typography-font-size-small)',
|
|
202
|
+
fontWeight: 'var(--typography-font-weight-regular)',
|
|
203
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
204
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
205
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
206
|
+
},
|
|
207
|
+
'.body-small-strong': {
|
|
208
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
209
|
+
fontSize: 'var(--typography-font-size-small)',
|
|
210
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
211
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
212
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
213
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
214
|
+
},
|
|
215
|
+
'.body-small-x-strong': {
|
|
216
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
217
|
+
fontSize: 'var(--typography-font-size-small)',
|
|
218
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
219
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
220
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
221
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
222
|
+
},
|
|
223
|
+
'.body-x-small': {
|
|
224
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
225
|
+
fontSize: 'var(--typography-font-size-x-small)',
|
|
226
|
+
fontWeight: 'var(--typography-font-weight-regular)',
|
|
227
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
228
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
229
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
230
|
+
},
|
|
231
|
+
'.body-x-small-strong': {
|
|
232
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
233
|
+
fontSize: 'var(--typography-font-size-x-small)',
|
|
234
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
235
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
236
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
237
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
238
|
+
},
|
|
239
|
+
'.body-x-small-x-strong': {
|
|
240
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
241
|
+
fontSize: 'var(--typography-font-size-x-small)',
|
|
242
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
243
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
244
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
245
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
246
|
+
},
|
|
247
|
+
'.heading-category': {
|
|
248
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
249
|
+
fontSize: 'var(--typography-font-size-xx-small)',
|
|
250
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
251
|
+
textTransform: 'var(--typography-text-transform-uppercase)',
|
|
252
|
+
letterSpacing: 'var(--typography-letter-spacing-wide)',
|
|
253
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
254
|
+
},
|
|
255
|
+
'.heading-category-strong': {
|
|
256
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
257
|
+
fontSize: 'var(--typography-font-size-xx-small)',
|
|
258
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
259
|
+
textTransform: 'var(--typography-text-transform-uppercase)',
|
|
260
|
+
letterSpacing: 'var(--typography-letter-spacing-wide)',
|
|
261
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
262
|
+
},
|
|
263
|
+
'.heading-large': {
|
|
264
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
265
|
+
fontSize: 'var(--typography-font-size-large)',
|
|
266
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
267
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
268
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
269
|
+
lineHeight: 'var(--typography-line-height-wide)',
|
|
270
|
+
},
|
|
271
|
+
'.heading-large-strong': {
|
|
272
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
273
|
+
fontSize: 'var(--typography-font-size-large)',
|
|
274
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
275
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
276
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
277
|
+
lineHeight: 'var(--typography-line-height-wide)',
|
|
278
|
+
},
|
|
279
|
+
'.heading-medium': {
|
|
280
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
281
|
+
fontSize: 'var(--typography-font-size-medium)',
|
|
282
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
283
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
284
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
285
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
286
|
+
},
|
|
287
|
+
'.heading-medium-strong': {
|
|
288
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
289
|
+
fontSize: 'var(--typography-font-size-medium)',
|
|
290
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
291
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
292
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
293
|
+
lineHeight: 'var(--typography-line-height-tight)',
|
|
294
|
+
},
|
|
295
|
+
'.heading-x-large': {
|
|
296
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
297
|
+
fontSize: 'var(--typography-font-size-x-large)',
|
|
298
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
299
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
300
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
301
|
+
lineHeight: 'var(--typography-line-height-loose)',
|
|
302
|
+
},
|
|
303
|
+
'.heading-x-large-strong': {
|
|
304
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
305
|
+
fontSize: 'var(--typography-font-size-x-large)',
|
|
306
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
307
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
308
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
309
|
+
lineHeight: 'var(--typography-line-height-loose)',
|
|
310
|
+
},
|
|
311
|
+
'.heading-xx-large': {
|
|
312
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
313
|
+
fontSize: 'var(--typography-font-size-xx-large)',
|
|
314
|
+
fontWeight: 'var(--typography-font-weight-medium)',
|
|
315
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
316
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
317
|
+
lineHeight: 'var(--typography-line-height-extra-loose)',
|
|
318
|
+
},
|
|
319
|
+
'.heading-xx-large-strong': {
|
|
320
|
+
fontFamily: 'var(--typography-font-family-primary)',
|
|
321
|
+
fontSize: 'var(--typography-font-size-xx-large)',
|
|
322
|
+
fontWeight: 'var(--typography-font-weight-bold)',
|
|
323
|
+
textTransform: 'var(--typography-text-transform-default)',
|
|
324
|
+
letterSpacing: 'var(--typography-letter-spacing-default)',
|
|
325
|
+
lineHeight: 'var(--typography-line-height-extra-loose)',
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
}),
|
|
329
|
+
],
|
|
330
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontify/fondue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "13.0.0-beta.
|
|
4
|
+
"version": "13.0.0-beta.7",
|
|
5
5
|
"description": "Design system of Frontify",
|
|
6
6
|
"author": "Frontify Developers <developers@frontify.com>",
|
|
7
7
|
"homepage": "https://github.com/Frontify/fondue",
|
|
@@ -167,9 +167,9 @@
|
|
|
167
167
|
"unified": "^10.1.2",
|
|
168
168
|
"unist-util-visit": "^5.0.0",
|
|
169
169
|
"@frontify/fondue-charts": "^7.0.0-beta.3",
|
|
170
|
-
"@frontify/fondue-
|
|
170
|
+
"@frontify/fondue-tokens": "^5.0.0-beta.3",
|
|
171
171
|
"@frontify/fondue-icons": "^0.18.0-beta.0",
|
|
172
|
-
"@frontify/fondue-
|
|
172
|
+
"@frontify/fondue-components": "^20.0.0-beta.5"
|
|
173
173
|
},
|
|
174
174
|
"devDependencies": {
|
|
175
175
|
"@babel/core": "^7.26.10",
|