@brainfish-ai/components 0.18.0-alpha.1 → 0.18.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/componentns/ui/button-group.d.ts +1 -1
- package/dist/components/ui/accordion.d.ts +2 -7
- package/dist/components/ui/alert-dialog.d.ts +2 -33
- package/dist/components/ui/alert.d.ts +2 -10
- package/dist/components/ui/badge.d.ts +2 -9
- package/dist/components/ui/button.d.ts +2 -11
- package/dist/components/ui/calendar.d.ts +2 -8
- package/dist/components/ui/card.d.ts +2 -8
- package/dist/components/ui/collapsible.d.ts +2 -6
- package/dist/components/ui/command.d.ts +2 -80
- package/dist/components/ui/dialog.d.ts +2 -19
- package/dist/components/ui/div-button.d.ts +2 -11
- package/dist/components/ui/dropdown-menu.d.ts +2 -27
- package/dist/components/ui/icon.d.ts +2 -22
- package/dist/components/ui/input.d.ts +2 -8
- package/dist/components/ui/item.d.ts +2 -23
- package/dist/components/ui/label.d.ts +2 -5
- package/dist/components/ui/popover.d.ts +2 -7
- package/dist/components/ui/progress.d.ts +2 -6
- package/dist/components/ui/scroll-area.d.ts +2 -5
- package/dist/components/ui/select.d.ts +2 -13
- package/dist/components/ui/separator.d.ts +2 -4
- package/dist/components/ui/spinner.d.ts +2 -3
- package/dist/components/ui/switch.d.ts +2 -4
- package/dist/components/ui/table.d.ts +2 -10
- package/dist/components/ui/textarea.d.ts +2 -6
- package/dist/components/ui/tooltip.d.ts +2 -13
- package/dist/esm/tailwind.preset.js +1489 -0
- package/dist/esm/tailwind.preset.js.map +1 -0
- package/dist/stats.html +1 -1
- package/dist/tailwind.preset.d.ts +1 -0
- package/package.json +3 -2
- package/tailwind.config.js +1 -3
- package/{tailwind.preset.js → tailwind.preset.ts} +45 -35
|
@@ -0,0 +1,1489 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
2
|
+
import { BrainfishColors } from './colors.js';
|
|
3
|
+
|
|
4
|
+
var createPlugin$1 = {};
|
|
5
|
+
|
|
6
|
+
var createPlugin = {};
|
|
7
|
+
|
|
8
|
+
var hasRequiredCreatePlugin$1;
|
|
9
|
+
|
|
10
|
+
function requireCreatePlugin$1 () {
|
|
11
|
+
if (hasRequiredCreatePlugin$1) return createPlugin;
|
|
12
|
+
hasRequiredCreatePlugin$1 = 1;
|
|
13
|
+
(function (exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return _default;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function createPlugin(plugin, config) {
|
|
24
|
+
return {
|
|
25
|
+
handler: plugin,
|
|
26
|
+
config
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {
|
|
30
|
+
const optionsFunction = function(options) {
|
|
31
|
+
return {
|
|
32
|
+
__options: options,
|
|
33
|
+
handler: pluginFunction(options),
|
|
34
|
+
config: configFunction(options)
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
optionsFunction.__isOptionsFunction = true;
|
|
38
|
+
// Expose plugin dependencies so that `object-hash` returns a different
|
|
39
|
+
// value if anything here changes, to ensure a rebuild is triggered.
|
|
40
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
41
|
+
optionsFunction.__configFunction = configFunction;
|
|
42
|
+
return optionsFunction;
|
|
43
|
+
};
|
|
44
|
+
const _default = createPlugin;
|
|
45
|
+
} (createPlugin));
|
|
46
|
+
return createPlugin;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
var hasRequiredCreatePlugin;
|
|
50
|
+
|
|
51
|
+
function requireCreatePlugin () {
|
|
52
|
+
if (hasRequiredCreatePlugin) return createPlugin$1;
|
|
53
|
+
hasRequiredCreatePlugin = 1;
|
|
54
|
+
(function (exports) {
|
|
55
|
+
Object.defineProperty(exports, "__esModule", {
|
|
56
|
+
value: true
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "default", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function() {
|
|
61
|
+
return _default;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const _createPlugin = /*#__PURE__*/ _interop_require_default(requireCreatePlugin$1());
|
|
65
|
+
function _interop_require_default(obj) {
|
|
66
|
+
return obj && obj.__esModule ? obj : {
|
|
67
|
+
default: obj
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
const _default = _createPlugin.default;
|
|
71
|
+
} (createPlugin$1));
|
|
72
|
+
return createPlugin$1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var plugin$1;
|
|
76
|
+
var hasRequiredPlugin;
|
|
77
|
+
|
|
78
|
+
function requirePlugin () {
|
|
79
|
+
if (hasRequiredPlugin) return plugin$1;
|
|
80
|
+
hasRequiredPlugin = 1;
|
|
81
|
+
let createPlugin = requireCreatePlugin();
|
|
82
|
+
plugin$1 = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
83
|
+
return plugin$1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var pluginExports = requirePlugin();
|
|
87
|
+
const plugin = /*@__PURE__*/getDefaultExportFromCjs(pluginExports);
|
|
88
|
+
|
|
89
|
+
var defaultTheme = {};
|
|
90
|
+
|
|
91
|
+
var cloneDeep = {};
|
|
92
|
+
|
|
93
|
+
var hasRequiredCloneDeep;
|
|
94
|
+
|
|
95
|
+
function requireCloneDeep () {
|
|
96
|
+
if (hasRequiredCloneDeep) return cloneDeep;
|
|
97
|
+
hasRequiredCloneDeep = 1;
|
|
98
|
+
(function (exports) {
|
|
99
|
+
Object.defineProperty(exports, "__esModule", {
|
|
100
|
+
value: true
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "cloneDeep", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function() {
|
|
105
|
+
return cloneDeep;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
function cloneDeep(value) {
|
|
109
|
+
if (Array.isArray(value)) {
|
|
110
|
+
return value.map((child)=>cloneDeep(child));
|
|
111
|
+
}
|
|
112
|
+
if (typeof value === "object" && value !== null) {
|
|
113
|
+
return Object.fromEntries(Object.entries(value).map(([k, v])=>[
|
|
114
|
+
k,
|
|
115
|
+
cloneDeep(v)
|
|
116
|
+
]));
|
|
117
|
+
}
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
} (cloneDeep));
|
|
121
|
+
return cloneDeep;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
var config_full;
|
|
125
|
+
var hasRequiredConfig_full;
|
|
126
|
+
|
|
127
|
+
function requireConfig_full () {
|
|
128
|
+
if (hasRequiredConfig_full) return config_full;
|
|
129
|
+
hasRequiredConfig_full = 1;
|
|
130
|
+
config_full = {
|
|
131
|
+
content: [],
|
|
132
|
+
presets: [],
|
|
133
|
+
darkMode: 'media', // or 'class'
|
|
134
|
+
theme: {
|
|
135
|
+
accentColor: ({ theme }) => ({
|
|
136
|
+
...theme('colors'),
|
|
137
|
+
auto: 'auto',
|
|
138
|
+
}),
|
|
139
|
+
animation: {
|
|
140
|
+
none: 'none',
|
|
141
|
+
spin: 'spin 1s linear infinite',
|
|
142
|
+
ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
|
|
143
|
+
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
|
|
144
|
+
bounce: 'bounce 1s infinite',
|
|
145
|
+
},
|
|
146
|
+
aria: {
|
|
147
|
+
busy: 'busy="true"',
|
|
148
|
+
checked: 'checked="true"',
|
|
149
|
+
disabled: 'disabled="true"',
|
|
150
|
+
expanded: 'expanded="true"',
|
|
151
|
+
hidden: 'hidden="true"',
|
|
152
|
+
pressed: 'pressed="true"',
|
|
153
|
+
readonly: 'readonly="true"',
|
|
154
|
+
required: 'required="true"',
|
|
155
|
+
selected: 'selected="true"',
|
|
156
|
+
},
|
|
157
|
+
aspectRatio: {
|
|
158
|
+
auto: 'auto',
|
|
159
|
+
square: '1 / 1',
|
|
160
|
+
video: '16 / 9',
|
|
161
|
+
},
|
|
162
|
+
backdropBlur: ({ theme }) => theme('blur'),
|
|
163
|
+
backdropBrightness: ({ theme }) => theme('brightness'),
|
|
164
|
+
backdropContrast: ({ theme }) => theme('contrast'),
|
|
165
|
+
backdropGrayscale: ({ theme }) => theme('grayscale'),
|
|
166
|
+
backdropHueRotate: ({ theme }) => theme('hueRotate'),
|
|
167
|
+
backdropInvert: ({ theme }) => theme('invert'),
|
|
168
|
+
backdropOpacity: ({ theme }) => theme('opacity'),
|
|
169
|
+
backdropSaturate: ({ theme }) => theme('saturate'),
|
|
170
|
+
backdropSepia: ({ theme }) => theme('sepia'),
|
|
171
|
+
backgroundColor: ({ theme }) => theme('colors'),
|
|
172
|
+
backgroundImage: {
|
|
173
|
+
none: 'none',
|
|
174
|
+
'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
|
|
175
|
+
'gradient-to-tr': 'linear-gradient(to top right, var(--tw-gradient-stops))',
|
|
176
|
+
'gradient-to-r': 'linear-gradient(to right, var(--tw-gradient-stops))',
|
|
177
|
+
'gradient-to-br': 'linear-gradient(to bottom right, var(--tw-gradient-stops))',
|
|
178
|
+
'gradient-to-b': 'linear-gradient(to bottom, var(--tw-gradient-stops))',
|
|
179
|
+
'gradient-to-bl': 'linear-gradient(to bottom left, var(--tw-gradient-stops))',
|
|
180
|
+
'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
|
|
181
|
+
'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
|
|
182
|
+
},
|
|
183
|
+
backgroundOpacity: ({ theme }) => theme('opacity'),
|
|
184
|
+
backgroundPosition: {
|
|
185
|
+
bottom: 'bottom',
|
|
186
|
+
center: 'center',
|
|
187
|
+
left: 'left',
|
|
188
|
+
'left-bottom': 'left bottom',
|
|
189
|
+
'left-top': 'left top',
|
|
190
|
+
right: 'right',
|
|
191
|
+
'right-bottom': 'right bottom',
|
|
192
|
+
'right-top': 'right top',
|
|
193
|
+
top: 'top',
|
|
194
|
+
},
|
|
195
|
+
backgroundSize: {
|
|
196
|
+
auto: 'auto',
|
|
197
|
+
cover: 'cover',
|
|
198
|
+
contain: 'contain',
|
|
199
|
+
},
|
|
200
|
+
blur: {
|
|
201
|
+
0: '0',
|
|
202
|
+
none: '',
|
|
203
|
+
sm: '4px',
|
|
204
|
+
DEFAULT: '8px',
|
|
205
|
+
md: '12px',
|
|
206
|
+
lg: '16px',
|
|
207
|
+
xl: '24px',
|
|
208
|
+
'2xl': '40px',
|
|
209
|
+
'3xl': '64px',
|
|
210
|
+
},
|
|
211
|
+
borderColor: ({ theme }) => ({
|
|
212
|
+
...theme('colors'),
|
|
213
|
+
DEFAULT: theme('colors.gray.200', 'currentColor'),
|
|
214
|
+
}),
|
|
215
|
+
borderOpacity: ({ theme }) => theme('opacity'),
|
|
216
|
+
borderRadius: {
|
|
217
|
+
none: '0px',
|
|
218
|
+
sm: '0.125rem',
|
|
219
|
+
DEFAULT: '0.25rem',
|
|
220
|
+
md: '0.375rem',
|
|
221
|
+
lg: '0.5rem',
|
|
222
|
+
xl: '0.75rem',
|
|
223
|
+
'2xl': '1rem',
|
|
224
|
+
'3xl': '1.5rem',
|
|
225
|
+
full: '9999px',
|
|
226
|
+
},
|
|
227
|
+
borderSpacing: ({ theme }) => ({
|
|
228
|
+
...theme('spacing'),
|
|
229
|
+
}),
|
|
230
|
+
borderWidth: {
|
|
231
|
+
DEFAULT: '1px',
|
|
232
|
+
0: '0px',
|
|
233
|
+
2: '2px',
|
|
234
|
+
4: '4px',
|
|
235
|
+
8: '8px',
|
|
236
|
+
},
|
|
237
|
+
boxShadow: {
|
|
238
|
+
sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
|
|
239
|
+
DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
|
|
240
|
+
md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
|
|
241
|
+
lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
|
|
242
|
+
xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
|
|
243
|
+
'2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
|
|
244
|
+
inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
|
|
245
|
+
none: 'none',
|
|
246
|
+
},
|
|
247
|
+
boxShadowColor: ({ theme }) => theme('colors'),
|
|
248
|
+
brightness: {
|
|
249
|
+
0: '0',
|
|
250
|
+
50: '.5',
|
|
251
|
+
75: '.75',
|
|
252
|
+
90: '.9',
|
|
253
|
+
95: '.95',
|
|
254
|
+
100: '1',
|
|
255
|
+
105: '1.05',
|
|
256
|
+
110: '1.1',
|
|
257
|
+
125: '1.25',
|
|
258
|
+
150: '1.5',
|
|
259
|
+
200: '2',
|
|
260
|
+
},
|
|
261
|
+
caretColor: ({ theme }) => theme('colors'),
|
|
262
|
+
colors: ({ colors }) => ({
|
|
263
|
+
inherit: colors.inherit,
|
|
264
|
+
current: colors.current,
|
|
265
|
+
transparent: colors.transparent,
|
|
266
|
+
black: colors.black,
|
|
267
|
+
white: colors.white,
|
|
268
|
+
slate: colors.slate,
|
|
269
|
+
gray: colors.gray,
|
|
270
|
+
zinc: colors.zinc,
|
|
271
|
+
neutral: colors.neutral,
|
|
272
|
+
stone: colors.stone,
|
|
273
|
+
red: colors.red,
|
|
274
|
+
orange: colors.orange,
|
|
275
|
+
amber: colors.amber,
|
|
276
|
+
yellow: colors.yellow,
|
|
277
|
+
lime: colors.lime,
|
|
278
|
+
green: colors.green,
|
|
279
|
+
emerald: colors.emerald,
|
|
280
|
+
teal: colors.teal,
|
|
281
|
+
cyan: colors.cyan,
|
|
282
|
+
sky: colors.sky,
|
|
283
|
+
blue: colors.blue,
|
|
284
|
+
indigo: colors.indigo,
|
|
285
|
+
violet: colors.violet,
|
|
286
|
+
purple: colors.purple,
|
|
287
|
+
fuchsia: colors.fuchsia,
|
|
288
|
+
pink: colors.pink,
|
|
289
|
+
rose: colors.rose,
|
|
290
|
+
}),
|
|
291
|
+
columns: {
|
|
292
|
+
auto: 'auto',
|
|
293
|
+
1: '1',
|
|
294
|
+
2: '2',
|
|
295
|
+
3: '3',
|
|
296
|
+
4: '4',
|
|
297
|
+
5: '5',
|
|
298
|
+
6: '6',
|
|
299
|
+
7: '7',
|
|
300
|
+
8: '8',
|
|
301
|
+
9: '9',
|
|
302
|
+
10: '10',
|
|
303
|
+
11: '11',
|
|
304
|
+
12: '12',
|
|
305
|
+
'3xs': '16rem',
|
|
306
|
+
'2xs': '18rem',
|
|
307
|
+
xs: '20rem',
|
|
308
|
+
sm: '24rem',
|
|
309
|
+
md: '28rem',
|
|
310
|
+
lg: '32rem',
|
|
311
|
+
xl: '36rem',
|
|
312
|
+
'2xl': '42rem',
|
|
313
|
+
'3xl': '48rem',
|
|
314
|
+
'4xl': '56rem',
|
|
315
|
+
'5xl': '64rem',
|
|
316
|
+
'6xl': '72rem',
|
|
317
|
+
'7xl': '80rem',
|
|
318
|
+
},
|
|
319
|
+
container: {},
|
|
320
|
+
content: {
|
|
321
|
+
none: 'none',
|
|
322
|
+
},
|
|
323
|
+
contrast: {
|
|
324
|
+
0: '0',
|
|
325
|
+
50: '.5',
|
|
326
|
+
75: '.75',
|
|
327
|
+
100: '1',
|
|
328
|
+
125: '1.25',
|
|
329
|
+
150: '1.5',
|
|
330
|
+
200: '2',
|
|
331
|
+
},
|
|
332
|
+
cursor: {
|
|
333
|
+
auto: 'auto',
|
|
334
|
+
default: 'default',
|
|
335
|
+
pointer: 'pointer',
|
|
336
|
+
wait: 'wait',
|
|
337
|
+
text: 'text',
|
|
338
|
+
move: 'move',
|
|
339
|
+
help: 'help',
|
|
340
|
+
'not-allowed': 'not-allowed',
|
|
341
|
+
none: 'none',
|
|
342
|
+
'context-menu': 'context-menu',
|
|
343
|
+
progress: 'progress',
|
|
344
|
+
cell: 'cell',
|
|
345
|
+
crosshair: 'crosshair',
|
|
346
|
+
'vertical-text': 'vertical-text',
|
|
347
|
+
alias: 'alias',
|
|
348
|
+
copy: 'copy',
|
|
349
|
+
'no-drop': 'no-drop',
|
|
350
|
+
grab: 'grab',
|
|
351
|
+
grabbing: 'grabbing',
|
|
352
|
+
'all-scroll': 'all-scroll',
|
|
353
|
+
'col-resize': 'col-resize',
|
|
354
|
+
'row-resize': 'row-resize',
|
|
355
|
+
'n-resize': 'n-resize',
|
|
356
|
+
'e-resize': 'e-resize',
|
|
357
|
+
's-resize': 's-resize',
|
|
358
|
+
'w-resize': 'w-resize',
|
|
359
|
+
'ne-resize': 'ne-resize',
|
|
360
|
+
'nw-resize': 'nw-resize',
|
|
361
|
+
'se-resize': 'se-resize',
|
|
362
|
+
'sw-resize': 'sw-resize',
|
|
363
|
+
'ew-resize': 'ew-resize',
|
|
364
|
+
'ns-resize': 'ns-resize',
|
|
365
|
+
'nesw-resize': 'nesw-resize',
|
|
366
|
+
'nwse-resize': 'nwse-resize',
|
|
367
|
+
'zoom-in': 'zoom-in',
|
|
368
|
+
'zoom-out': 'zoom-out',
|
|
369
|
+
},
|
|
370
|
+
divideColor: ({ theme }) => theme('borderColor'),
|
|
371
|
+
divideOpacity: ({ theme }) => theme('borderOpacity'),
|
|
372
|
+
divideWidth: ({ theme }) => theme('borderWidth'),
|
|
373
|
+
dropShadow: {
|
|
374
|
+
sm: '0 1px 1px rgb(0 0 0 / 0.05)',
|
|
375
|
+
DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
|
|
376
|
+
md: ['0 4px 3px rgb(0 0 0 / 0.07)', '0 2px 2px rgb(0 0 0 / 0.06)'],
|
|
377
|
+
lg: ['0 10px 8px rgb(0 0 0 / 0.04)', '0 4px 3px rgb(0 0 0 / 0.1)'],
|
|
378
|
+
xl: ['0 20px 13px rgb(0 0 0 / 0.03)', '0 8px 5px rgb(0 0 0 / 0.08)'],
|
|
379
|
+
'2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
|
|
380
|
+
none: '0 0 #0000',
|
|
381
|
+
},
|
|
382
|
+
fill: ({ theme }) => ({
|
|
383
|
+
none: 'none',
|
|
384
|
+
...theme('colors'),
|
|
385
|
+
}),
|
|
386
|
+
flex: {
|
|
387
|
+
1: '1 1 0%',
|
|
388
|
+
auto: '1 1 auto',
|
|
389
|
+
initial: '0 1 auto',
|
|
390
|
+
none: 'none',
|
|
391
|
+
},
|
|
392
|
+
flexBasis: ({ theme }) => ({
|
|
393
|
+
auto: 'auto',
|
|
394
|
+
...theme('spacing'),
|
|
395
|
+
'1/2': '50%',
|
|
396
|
+
'1/3': '33.333333%',
|
|
397
|
+
'2/3': '66.666667%',
|
|
398
|
+
'1/4': '25%',
|
|
399
|
+
'2/4': '50%',
|
|
400
|
+
'3/4': '75%',
|
|
401
|
+
'1/5': '20%',
|
|
402
|
+
'2/5': '40%',
|
|
403
|
+
'3/5': '60%',
|
|
404
|
+
'4/5': '80%',
|
|
405
|
+
'1/6': '16.666667%',
|
|
406
|
+
'2/6': '33.333333%',
|
|
407
|
+
'3/6': '50%',
|
|
408
|
+
'4/6': '66.666667%',
|
|
409
|
+
'5/6': '83.333333%',
|
|
410
|
+
'1/12': '8.333333%',
|
|
411
|
+
'2/12': '16.666667%',
|
|
412
|
+
'3/12': '25%',
|
|
413
|
+
'4/12': '33.333333%',
|
|
414
|
+
'5/12': '41.666667%',
|
|
415
|
+
'6/12': '50%',
|
|
416
|
+
'7/12': '58.333333%',
|
|
417
|
+
'8/12': '66.666667%',
|
|
418
|
+
'9/12': '75%',
|
|
419
|
+
'10/12': '83.333333%',
|
|
420
|
+
'11/12': '91.666667%',
|
|
421
|
+
full: '100%',
|
|
422
|
+
}),
|
|
423
|
+
flexGrow: {
|
|
424
|
+
0: '0',
|
|
425
|
+
DEFAULT: '1',
|
|
426
|
+
},
|
|
427
|
+
flexShrink: {
|
|
428
|
+
0: '0',
|
|
429
|
+
DEFAULT: '1',
|
|
430
|
+
},
|
|
431
|
+
fontFamily: {
|
|
432
|
+
sans: [
|
|
433
|
+
'ui-sans-serif',
|
|
434
|
+
'system-ui',
|
|
435
|
+
'sans-serif',
|
|
436
|
+
'"Apple Color Emoji"',
|
|
437
|
+
'"Segoe UI Emoji"',
|
|
438
|
+
'"Segoe UI Symbol"',
|
|
439
|
+
'"Noto Color Emoji"',
|
|
440
|
+
],
|
|
441
|
+
serif: ['ui-serif', 'Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
|
|
442
|
+
mono: [
|
|
443
|
+
'ui-monospace',
|
|
444
|
+
'SFMono-Regular',
|
|
445
|
+
'Menlo',
|
|
446
|
+
'Monaco',
|
|
447
|
+
'Consolas',
|
|
448
|
+
'"Liberation Mono"',
|
|
449
|
+
'"Courier New"',
|
|
450
|
+
'monospace',
|
|
451
|
+
],
|
|
452
|
+
},
|
|
453
|
+
fontSize: {
|
|
454
|
+
xs: ['0.75rem', { lineHeight: '1rem' }],
|
|
455
|
+
sm: ['0.875rem', { lineHeight: '1.25rem' }],
|
|
456
|
+
base: ['1rem', { lineHeight: '1.5rem' }],
|
|
457
|
+
lg: ['1.125rem', { lineHeight: '1.75rem' }],
|
|
458
|
+
xl: ['1.25rem', { lineHeight: '1.75rem' }],
|
|
459
|
+
'2xl': ['1.5rem', { lineHeight: '2rem' }],
|
|
460
|
+
'3xl': ['1.875rem', { lineHeight: '2.25rem' }],
|
|
461
|
+
'4xl': ['2.25rem', { lineHeight: '2.5rem' }],
|
|
462
|
+
'5xl': ['3rem', { lineHeight: '1' }],
|
|
463
|
+
'6xl': ['3.75rem', { lineHeight: '1' }],
|
|
464
|
+
'7xl': ['4.5rem', { lineHeight: '1' }],
|
|
465
|
+
'8xl': ['6rem', { lineHeight: '1' }],
|
|
466
|
+
'9xl': ['8rem', { lineHeight: '1' }],
|
|
467
|
+
},
|
|
468
|
+
fontWeight: {
|
|
469
|
+
thin: '100',
|
|
470
|
+
extralight: '200',
|
|
471
|
+
light: '300',
|
|
472
|
+
normal: '400',
|
|
473
|
+
medium: '500',
|
|
474
|
+
semibold: '600',
|
|
475
|
+
bold: '700',
|
|
476
|
+
extrabold: '800',
|
|
477
|
+
black: '900',
|
|
478
|
+
},
|
|
479
|
+
gap: ({ theme }) => theme('spacing'),
|
|
480
|
+
gradientColorStops: ({ theme }) => theme('colors'),
|
|
481
|
+
gradientColorStopPositions: {
|
|
482
|
+
'0%': '0%',
|
|
483
|
+
'5%': '5%',
|
|
484
|
+
'10%': '10%',
|
|
485
|
+
'15%': '15%',
|
|
486
|
+
'20%': '20%',
|
|
487
|
+
'25%': '25%',
|
|
488
|
+
'30%': '30%',
|
|
489
|
+
'35%': '35%',
|
|
490
|
+
'40%': '40%',
|
|
491
|
+
'45%': '45%',
|
|
492
|
+
'50%': '50%',
|
|
493
|
+
'55%': '55%',
|
|
494
|
+
'60%': '60%',
|
|
495
|
+
'65%': '65%',
|
|
496
|
+
'70%': '70%',
|
|
497
|
+
'75%': '75%',
|
|
498
|
+
'80%': '80%',
|
|
499
|
+
'85%': '85%',
|
|
500
|
+
'90%': '90%',
|
|
501
|
+
'95%': '95%',
|
|
502
|
+
'100%': '100%',
|
|
503
|
+
},
|
|
504
|
+
grayscale: {
|
|
505
|
+
0: '0',
|
|
506
|
+
DEFAULT: '100%',
|
|
507
|
+
},
|
|
508
|
+
gridAutoColumns: {
|
|
509
|
+
auto: 'auto',
|
|
510
|
+
min: 'min-content',
|
|
511
|
+
max: 'max-content',
|
|
512
|
+
fr: 'minmax(0, 1fr)',
|
|
513
|
+
},
|
|
514
|
+
gridAutoRows: {
|
|
515
|
+
auto: 'auto',
|
|
516
|
+
min: 'min-content',
|
|
517
|
+
max: 'max-content',
|
|
518
|
+
fr: 'minmax(0, 1fr)',
|
|
519
|
+
},
|
|
520
|
+
gridColumn: {
|
|
521
|
+
auto: 'auto',
|
|
522
|
+
'span-1': 'span 1 / span 1',
|
|
523
|
+
'span-2': 'span 2 / span 2',
|
|
524
|
+
'span-3': 'span 3 / span 3',
|
|
525
|
+
'span-4': 'span 4 / span 4',
|
|
526
|
+
'span-5': 'span 5 / span 5',
|
|
527
|
+
'span-6': 'span 6 / span 6',
|
|
528
|
+
'span-7': 'span 7 / span 7',
|
|
529
|
+
'span-8': 'span 8 / span 8',
|
|
530
|
+
'span-9': 'span 9 / span 9',
|
|
531
|
+
'span-10': 'span 10 / span 10',
|
|
532
|
+
'span-11': 'span 11 / span 11',
|
|
533
|
+
'span-12': 'span 12 / span 12',
|
|
534
|
+
'span-full': '1 / -1',
|
|
535
|
+
},
|
|
536
|
+
gridColumnEnd: {
|
|
537
|
+
auto: 'auto',
|
|
538
|
+
1: '1',
|
|
539
|
+
2: '2',
|
|
540
|
+
3: '3',
|
|
541
|
+
4: '4',
|
|
542
|
+
5: '5',
|
|
543
|
+
6: '6',
|
|
544
|
+
7: '7',
|
|
545
|
+
8: '8',
|
|
546
|
+
9: '9',
|
|
547
|
+
10: '10',
|
|
548
|
+
11: '11',
|
|
549
|
+
12: '12',
|
|
550
|
+
13: '13',
|
|
551
|
+
},
|
|
552
|
+
gridColumnStart: {
|
|
553
|
+
auto: 'auto',
|
|
554
|
+
1: '1',
|
|
555
|
+
2: '2',
|
|
556
|
+
3: '3',
|
|
557
|
+
4: '4',
|
|
558
|
+
5: '5',
|
|
559
|
+
6: '6',
|
|
560
|
+
7: '7',
|
|
561
|
+
8: '8',
|
|
562
|
+
9: '9',
|
|
563
|
+
10: '10',
|
|
564
|
+
11: '11',
|
|
565
|
+
12: '12',
|
|
566
|
+
13: '13',
|
|
567
|
+
},
|
|
568
|
+
gridRow: {
|
|
569
|
+
auto: 'auto',
|
|
570
|
+
'span-1': 'span 1 / span 1',
|
|
571
|
+
'span-2': 'span 2 / span 2',
|
|
572
|
+
'span-3': 'span 3 / span 3',
|
|
573
|
+
'span-4': 'span 4 / span 4',
|
|
574
|
+
'span-5': 'span 5 / span 5',
|
|
575
|
+
'span-6': 'span 6 / span 6',
|
|
576
|
+
'span-7': 'span 7 / span 7',
|
|
577
|
+
'span-8': 'span 8 / span 8',
|
|
578
|
+
'span-9': 'span 9 / span 9',
|
|
579
|
+
'span-10': 'span 10 / span 10',
|
|
580
|
+
'span-11': 'span 11 / span 11',
|
|
581
|
+
'span-12': 'span 12 / span 12',
|
|
582
|
+
'span-full': '1 / -1',
|
|
583
|
+
},
|
|
584
|
+
gridRowEnd: {
|
|
585
|
+
auto: 'auto',
|
|
586
|
+
1: '1',
|
|
587
|
+
2: '2',
|
|
588
|
+
3: '3',
|
|
589
|
+
4: '4',
|
|
590
|
+
5: '5',
|
|
591
|
+
6: '6',
|
|
592
|
+
7: '7',
|
|
593
|
+
8: '8',
|
|
594
|
+
9: '9',
|
|
595
|
+
10: '10',
|
|
596
|
+
11: '11',
|
|
597
|
+
12: '12',
|
|
598
|
+
13: '13',
|
|
599
|
+
},
|
|
600
|
+
gridRowStart: {
|
|
601
|
+
auto: 'auto',
|
|
602
|
+
1: '1',
|
|
603
|
+
2: '2',
|
|
604
|
+
3: '3',
|
|
605
|
+
4: '4',
|
|
606
|
+
5: '5',
|
|
607
|
+
6: '6',
|
|
608
|
+
7: '7',
|
|
609
|
+
8: '8',
|
|
610
|
+
9: '9',
|
|
611
|
+
10: '10',
|
|
612
|
+
11: '11',
|
|
613
|
+
12: '12',
|
|
614
|
+
13: '13',
|
|
615
|
+
},
|
|
616
|
+
gridTemplateColumns: {
|
|
617
|
+
none: 'none',
|
|
618
|
+
subgrid: 'subgrid',
|
|
619
|
+
1: 'repeat(1, minmax(0, 1fr))',
|
|
620
|
+
2: 'repeat(2, minmax(0, 1fr))',
|
|
621
|
+
3: 'repeat(3, minmax(0, 1fr))',
|
|
622
|
+
4: 'repeat(4, minmax(0, 1fr))',
|
|
623
|
+
5: 'repeat(5, minmax(0, 1fr))',
|
|
624
|
+
6: 'repeat(6, minmax(0, 1fr))',
|
|
625
|
+
7: 'repeat(7, minmax(0, 1fr))',
|
|
626
|
+
8: 'repeat(8, minmax(0, 1fr))',
|
|
627
|
+
9: 'repeat(9, minmax(0, 1fr))',
|
|
628
|
+
10: 'repeat(10, minmax(0, 1fr))',
|
|
629
|
+
11: 'repeat(11, minmax(0, 1fr))',
|
|
630
|
+
12: 'repeat(12, minmax(0, 1fr))',
|
|
631
|
+
},
|
|
632
|
+
gridTemplateRows: {
|
|
633
|
+
none: 'none',
|
|
634
|
+
subgrid: 'subgrid',
|
|
635
|
+
1: 'repeat(1, minmax(0, 1fr))',
|
|
636
|
+
2: 'repeat(2, minmax(0, 1fr))',
|
|
637
|
+
3: 'repeat(3, minmax(0, 1fr))',
|
|
638
|
+
4: 'repeat(4, minmax(0, 1fr))',
|
|
639
|
+
5: 'repeat(5, minmax(0, 1fr))',
|
|
640
|
+
6: 'repeat(6, minmax(0, 1fr))',
|
|
641
|
+
7: 'repeat(7, minmax(0, 1fr))',
|
|
642
|
+
8: 'repeat(8, minmax(0, 1fr))',
|
|
643
|
+
9: 'repeat(9, minmax(0, 1fr))',
|
|
644
|
+
10: 'repeat(10, minmax(0, 1fr))',
|
|
645
|
+
11: 'repeat(11, minmax(0, 1fr))',
|
|
646
|
+
12: 'repeat(12, minmax(0, 1fr))',
|
|
647
|
+
},
|
|
648
|
+
height: ({ theme }) => ({
|
|
649
|
+
auto: 'auto',
|
|
650
|
+
...theme('spacing'),
|
|
651
|
+
'1/2': '50%',
|
|
652
|
+
'1/3': '33.333333%',
|
|
653
|
+
'2/3': '66.666667%',
|
|
654
|
+
'1/4': '25%',
|
|
655
|
+
'2/4': '50%',
|
|
656
|
+
'3/4': '75%',
|
|
657
|
+
'1/5': '20%',
|
|
658
|
+
'2/5': '40%',
|
|
659
|
+
'3/5': '60%',
|
|
660
|
+
'4/5': '80%',
|
|
661
|
+
'1/6': '16.666667%',
|
|
662
|
+
'2/6': '33.333333%',
|
|
663
|
+
'3/6': '50%',
|
|
664
|
+
'4/6': '66.666667%',
|
|
665
|
+
'5/6': '83.333333%',
|
|
666
|
+
full: '100%',
|
|
667
|
+
screen: '100vh',
|
|
668
|
+
svh: '100svh',
|
|
669
|
+
lvh: '100lvh',
|
|
670
|
+
dvh: '100dvh',
|
|
671
|
+
min: 'min-content',
|
|
672
|
+
max: 'max-content',
|
|
673
|
+
fit: 'fit-content',
|
|
674
|
+
}),
|
|
675
|
+
hueRotate: {
|
|
676
|
+
0: '0deg',
|
|
677
|
+
15: '15deg',
|
|
678
|
+
30: '30deg',
|
|
679
|
+
60: '60deg',
|
|
680
|
+
90: '90deg',
|
|
681
|
+
180: '180deg',
|
|
682
|
+
},
|
|
683
|
+
inset: ({ theme }) => ({
|
|
684
|
+
auto: 'auto',
|
|
685
|
+
...theme('spacing'),
|
|
686
|
+
'1/2': '50%',
|
|
687
|
+
'1/3': '33.333333%',
|
|
688
|
+
'2/3': '66.666667%',
|
|
689
|
+
'1/4': '25%',
|
|
690
|
+
'2/4': '50%',
|
|
691
|
+
'3/4': '75%',
|
|
692
|
+
full: '100%',
|
|
693
|
+
}),
|
|
694
|
+
invert: {
|
|
695
|
+
0: '0',
|
|
696
|
+
DEFAULT: '100%',
|
|
697
|
+
},
|
|
698
|
+
keyframes: {
|
|
699
|
+
spin: {
|
|
700
|
+
to: {
|
|
701
|
+
transform: 'rotate(360deg)',
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
ping: {
|
|
705
|
+
'75%, 100%': {
|
|
706
|
+
transform: 'scale(2)',
|
|
707
|
+
opacity: '0',
|
|
708
|
+
},
|
|
709
|
+
},
|
|
710
|
+
pulse: {
|
|
711
|
+
'50%': {
|
|
712
|
+
opacity: '.5',
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
bounce: {
|
|
716
|
+
'0%, 100%': {
|
|
717
|
+
transform: 'translateY(-25%)',
|
|
718
|
+
animationTimingFunction: 'cubic-bezier(0.8,0,1,1)',
|
|
719
|
+
},
|
|
720
|
+
'50%': {
|
|
721
|
+
transform: 'none',
|
|
722
|
+
animationTimingFunction: 'cubic-bezier(0,0,0.2,1)',
|
|
723
|
+
},
|
|
724
|
+
},
|
|
725
|
+
},
|
|
726
|
+
letterSpacing: {
|
|
727
|
+
tighter: '-0.05em',
|
|
728
|
+
tight: '-0.025em',
|
|
729
|
+
normal: '0em',
|
|
730
|
+
wide: '0.025em',
|
|
731
|
+
wider: '0.05em',
|
|
732
|
+
widest: '0.1em',
|
|
733
|
+
},
|
|
734
|
+
lineHeight: {
|
|
735
|
+
none: '1',
|
|
736
|
+
tight: '1.25',
|
|
737
|
+
snug: '1.375',
|
|
738
|
+
normal: '1.5',
|
|
739
|
+
relaxed: '1.625',
|
|
740
|
+
loose: '2',
|
|
741
|
+
3: '.75rem',
|
|
742
|
+
4: '1rem',
|
|
743
|
+
5: '1.25rem',
|
|
744
|
+
6: '1.5rem',
|
|
745
|
+
7: '1.75rem',
|
|
746
|
+
8: '2rem',
|
|
747
|
+
9: '2.25rem',
|
|
748
|
+
10: '2.5rem',
|
|
749
|
+
},
|
|
750
|
+
listStyleType: {
|
|
751
|
+
none: 'none',
|
|
752
|
+
disc: 'disc',
|
|
753
|
+
decimal: 'decimal',
|
|
754
|
+
},
|
|
755
|
+
listStyleImage: {
|
|
756
|
+
none: 'none',
|
|
757
|
+
},
|
|
758
|
+
margin: ({ theme }) => ({
|
|
759
|
+
auto: 'auto',
|
|
760
|
+
...theme('spacing'),
|
|
761
|
+
}),
|
|
762
|
+
lineClamp: {
|
|
763
|
+
1: '1',
|
|
764
|
+
2: '2',
|
|
765
|
+
3: '3',
|
|
766
|
+
4: '4',
|
|
767
|
+
5: '5',
|
|
768
|
+
6: '6',
|
|
769
|
+
},
|
|
770
|
+
maxHeight: ({ theme }) => ({
|
|
771
|
+
...theme('spacing'),
|
|
772
|
+
none: 'none',
|
|
773
|
+
full: '100%',
|
|
774
|
+
screen: '100vh',
|
|
775
|
+
svh: '100svh',
|
|
776
|
+
lvh: '100lvh',
|
|
777
|
+
dvh: '100dvh',
|
|
778
|
+
min: 'min-content',
|
|
779
|
+
max: 'max-content',
|
|
780
|
+
fit: 'fit-content',
|
|
781
|
+
}),
|
|
782
|
+
maxWidth: ({ theme, breakpoints }) => ({
|
|
783
|
+
...theme('spacing'),
|
|
784
|
+
none: 'none',
|
|
785
|
+
xs: '20rem',
|
|
786
|
+
sm: '24rem',
|
|
787
|
+
md: '28rem',
|
|
788
|
+
lg: '32rem',
|
|
789
|
+
xl: '36rem',
|
|
790
|
+
'2xl': '42rem',
|
|
791
|
+
'3xl': '48rem',
|
|
792
|
+
'4xl': '56rem',
|
|
793
|
+
'5xl': '64rem',
|
|
794
|
+
'6xl': '72rem',
|
|
795
|
+
'7xl': '80rem',
|
|
796
|
+
full: '100%',
|
|
797
|
+
min: 'min-content',
|
|
798
|
+
max: 'max-content',
|
|
799
|
+
fit: 'fit-content',
|
|
800
|
+
prose: '65ch',
|
|
801
|
+
...breakpoints(theme('screens')),
|
|
802
|
+
}),
|
|
803
|
+
minHeight: ({ theme }) => ({
|
|
804
|
+
...theme('spacing'),
|
|
805
|
+
full: '100%',
|
|
806
|
+
screen: '100vh',
|
|
807
|
+
svh: '100svh',
|
|
808
|
+
lvh: '100lvh',
|
|
809
|
+
dvh: '100dvh',
|
|
810
|
+
min: 'min-content',
|
|
811
|
+
max: 'max-content',
|
|
812
|
+
fit: 'fit-content',
|
|
813
|
+
}),
|
|
814
|
+
minWidth: ({ theme }) => ({
|
|
815
|
+
...theme('spacing'),
|
|
816
|
+
full: '100%',
|
|
817
|
+
min: 'min-content',
|
|
818
|
+
max: 'max-content',
|
|
819
|
+
fit: 'fit-content',
|
|
820
|
+
}),
|
|
821
|
+
objectPosition: {
|
|
822
|
+
bottom: 'bottom',
|
|
823
|
+
center: 'center',
|
|
824
|
+
left: 'left',
|
|
825
|
+
'left-bottom': 'left bottom',
|
|
826
|
+
'left-top': 'left top',
|
|
827
|
+
right: 'right',
|
|
828
|
+
'right-bottom': 'right bottom',
|
|
829
|
+
'right-top': 'right top',
|
|
830
|
+
top: 'top',
|
|
831
|
+
},
|
|
832
|
+
opacity: {
|
|
833
|
+
0: '0',
|
|
834
|
+
5: '0.05',
|
|
835
|
+
10: '0.1',
|
|
836
|
+
15: '0.15',
|
|
837
|
+
20: '0.2',
|
|
838
|
+
25: '0.25',
|
|
839
|
+
30: '0.3',
|
|
840
|
+
35: '0.35',
|
|
841
|
+
40: '0.4',
|
|
842
|
+
45: '0.45',
|
|
843
|
+
50: '0.5',
|
|
844
|
+
55: '0.55',
|
|
845
|
+
60: '0.6',
|
|
846
|
+
65: '0.65',
|
|
847
|
+
70: '0.7',
|
|
848
|
+
75: '0.75',
|
|
849
|
+
80: '0.8',
|
|
850
|
+
85: '0.85',
|
|
851
|
+
90: '0.9',
|
|
852
|
+
95: '0.95',
|
|
853
|
+
100: '1',
|
|
854
|
+
},
|
|
855
|
+
order: {
|
|
856
|
+
first: '-9999',
|
|
857
|
+
last: '9999',
|
|
858
|
+
none: '0',
|
|
859
|
+
1: '1',
|
|
860
|
+
2: '2',
|
|
861
|
+
3: '3',
|
|
862
|
+
4: '4',
|
|
863
|
+
5: '5',
|
|
864
|
+
6: '6',
|
|
865
|
+
7: '7',
|
|
866
|
+
8: '8',
|
|
867
|
+
9: '9',
|
|
868
|
+
10: '10',
|
|
869
|
+
11: '11',
|
|
870
|
+
12: '12',
|
|
871
|
+
},
|
|
872
|
+
outlineColor: ({ theme }) => theme('colors'),
|
|
873
|
+
outlineOffset: {
|
|
874
|
+
0: '0px',
|
|
875
|
+
1: '1px',
|
|
876
|
+
2: '2px',
|
|
877
|
+
4: '4px',
|
|
878
|
+
8: '8px',
|
|
879
|
+
},
|
|
880
|
+
outlineWidth: {
|
|
881
|
+
0: '0px',
|
|
882
|
+
1: '1px',
|
|
883
|
+
2: '2px',
|
|
884
|
+
4: '4px',
|
|
885
|
+
8: '8px',
|
|
886
|
+
},
|
|
887
|
+
padding: ({ theme }) => theme('spacing'),
|
|
888
|
+
placeholderColor: ({ theme }) => theme('colors'),
|
|
889
|
+
placeholderOpacity: ({ theme }) => theme('opacity'),
|
|
890
|
+
ringColor: ({ theme }) => ({
|
|
891
|
+
DEFAULT: theme('colors.blue.500', '#3b82f6'),
|
|
892
|
+
...theme('colors'),
|
|
893
|
+
}),
|
|
894
|
+
ringOffsetColor: ({ theme }) => theme('colors'),
|
|
895
|
+
ringOffsetWidth: {
|
|
896
|
+
0: '0px',
|
|
897
|
+
1: '1px',
|
|
898
|
+
2: '2px',
|
|
899
|
+
4: '4px',
|
|
900
|
+
8: '8px',
|
|
901
|
+
},
|
|
902
|
+
ringOpacity: ({ theme }) => ({
|
|
903
|
+
DEFAULT: '0.5',
|
|
904
|
+
...theme('opacity'),
|
|
905
|
+
}),
|
|
906
|
+
ringWidth: {
|
|
907
|
+
DEFAULT: '3px',
|
|
908
|
+
0: '0px',
|
|
909
|
+
1: '1px',
|
|
910
|
+
2: '2px',
|
|
911
|
+
4: '4px',
|
|
912
|
+
8: '8px',
|
|
913
|
+
},
|
|
914
|
+
rotate: {
|
|
915
|
+
0: '0deg',
|
|
916
|
+
1: '1deg',
|
|
917
|
+
2: '2deg',
|
|
918
|
+
3: '3deg',
|
|
919
|
+
6: '6deg',
|
|
920
|
+
12: '12deg',
|
|
921
|
+
45: '45deg',
|
|
922
|
+
90: '90deg',
|
|
923
|
+
180: '180deg',
|
|
924
|
+
},
|
|
925
|
+
saturate: {
|
|
926
|
+
0: '0',
|
|
927
|
+
50: '.5',
|
|
928
|
+
100: '1',
|
|
929
|
+
150: '1.5',
|
|
930
|
+
200: '2',
|
|
931
|
+
},
|
|
932
|
+
scale: {
|
|
933
|
+
0: '0',
|
|
934
|
+
50: '.5',
|
|
935
|
+
75: '.75',
|
|
936
|
+
90: '.9',
|
|
937
|
+
95: '.95',
|
|
938
|
+
100: '1',
|
|
939
|
+
105: '1.05',
|
|
940
|
+
110: '1.1',
|
|
941
|
+
125: '1.25',
|
|
942
|
+
150: '1.5',
|
|
943
|
+
},
|
|
944
|
+
screens: {
|
|
945
|
+
sm: '640px',
|
|
946
|
+
md: '768px',
|
|
947
|
+
lg: '1024px',
|
|
948
|
+
xl: '1280px',
|
|
949
|
+
'2xl': '1536px',
|
|
950
|
+
},
|
|
951
|
+
scrollMargin: ({ theme }) => ({
|
|
952
|
+
...theme('spacing'),
|
|
953
|
+
}),
|
|
954
|
+
scrollPadding: ({ theme }) => theme('spacing'),
|
|
955
|
+
sepia: {
|
|
956
|
+
0: '0',
|
|
957
|
+
DEFAULT: '100%',
|
|
958
|
+
},
|
|
959
|
+
skew: {
|
|
960
|
+
0: '0deg',
|
|
961
|
+
1: '1deg',
|
|
962
|
+
2: '2deg',
|
|
963
|
+
3: '3deg',
|
|
964
|
+
6: '6deg',
|
|
965
|
+
12: '12deg',
|
|
966
|
+
},
|
|
967
|
+
space: ({ theme }) => ({
|
|
968
|
+
...theme('spacing'),
|
|
969
|
+
}),
|
|
970
|
+
spacing: {
|
|
971
|
+
px: '1px',
|
|
972
|
+
0: '0px',
|
|
973
|
+
0.5: '0.125rem',
|
|
974
|
+
1: '0.25rem',
|
|
975
|
+
1.5: '0.375rem',
|
|
976
|
+
2: '0.5rem',
|
|
977
|
+
2.5: '0.625rem',
|
|
978
|
+
3: '0.75rem',
|
|
979
|
+
3.5: '0.875rem',
|
|
980
|
+
4: '1rem',
|
|
981
|
+
5: '1.25rem',
|
|
982
|
+
6: '1.5rem',
|
|
983
|
+
7: '1.75rem',
|
|
984
|
+
8: '2rem',
|
|
985
|
+
9: '2.25rem',
|
|
986
|
+
10: '2.5rem',
|
|
987
|
+
11: '2.75rem',
|
|
988
|
+
12: '3rem',
|
|
989
|
+
14: '3.5rem',
|
|
990
|
+
16: '4rem',
|
|
991
|
+
20: '5rem',
|
|
992
|
+
24: '6rem',
|
|
993
|
+
28: '7rem',
|
|
994
|
+
32: '8rem',
|
|
995
|
+
36: '9rem',
|
|
996
|
+
40: '10rem',
|
|
997
|
+
44: '11rem',
|
|
998
|
+
48: '12rem',
|
|
999
|
+
52: '13rem',
|
|
1000
|
+
56: '14rem',
|
|
1001
|
+
60: '15rem',
|
|
1002
|
+
64: '16rem',
|
|
1003
|
+
72: '18rem',
|
|
1004
|
+
80: '20rem',
|
|
1005
|
+
96: '24rem',
|
|
1006
|
+
},
|
|
1007
|
+
stroke: ({ theme }) => ({
|
|
1008
|
+
none: 'none',
|
|
1009
|
+
...theme('colors'),
|
|
1010
|
+
}),
|
|
1011
|
+
strokeWidth: {
|
|
1012
|
+
0: '0',
|
|
1013
|
+
1: '1',
|
|
1014
|
+
2: '2',
|
|
1015
|
+
},
|
|
1016
|
+
supports: {},
|
|
1017
|
+
data: {},
|
|
1018
|
+
textColor: ({ theme }) => theme('colors'),
|
|
1019
|
+
textDecorationColor: ({ theme }) => theme('colors'),
|
|
1020
|
+
textDecorationThickness: {
|
|
1021
|
+
auto: 'auto',
|
|
1022
|
+
'from-font': 'from-font',
|
|
1023
|
+
0: '0px',
|
|
1024
|
+
1: '1px',
|
|
1025
|
+
2: '2px',
|
|
1026
|
+
4: '4px',
|
|
1027
|
+
8: '8px',
|
|
1028
|
+
},
|
|
1029
|
+
textIndent: ({ theme }) => ({
|
|
1030
|
+
...theme('spacing'),
|
|
1031
|
+
}),
|
|
1032
|
+
textOpacity: ({ theme }) => theme('opacity'),
|
|
1033
|
+
textUnderlineOffset: {
|
|
1034
|
+
auto: 'auto',
|
|
1035
|
+
0: '0px',
|
|
1036
|
+
1: '1px',
|
|
1037
|
+
2: '2px',
|
|
1038
|
+
4: '4px',
|
|
1039
|
+
8: '8px',
|
|
1040
|
+
},
|
|
1041
|
+
transformOrigin: {
|
|
1042
|
+
center: 'center',
|
|
1043
|
+
top: 'top',
|
|
1044
|
+
'top-right': 'top right',
|
|
1045
|
+
right: 'right',
|
|
1046
|
+
'bottom-right': 'bottom right',
|
|
1047
|
+
bottom: 'bottom',
|
|
1048
|
+
'bottom-left': 'bottom left',
|
|
1049
|
+
left: 'left',
|
|
1050
|
+
'top-left': 'top left',
|
|
1051
|
+
},
|
|
1052
|
+
transitionDelay: {
|
|
1053
|
+
0: '0s',
|
|
1054
|
+
75: '75ms',
|
|
1055
|
+
100: '100ms',
|
|
1056
|
+
150: '150ms',
|
|
1057
|
+
200: '200ms',
|
|
1058
|
+
300: '300ms',
|
|
1059
|
+
500: '500ms',
|
|
1060
|
+
700: '700ms',
|
|
1061
|
+
1000: '1000ms',
|
|
1062
|
+
},
|
|
1063
|
+
transitionDuration: {
|
|
1064
|
+
DEFAULT: '150ms',
|
|
1065
|
+
0: '0s',
|
|
1066
|
+
75: '75ms',
|
|
1067
|
+
100: '100ms',
|
|
1068
|
+
150: '150ms',
|
|
1069
|
+
200: '200ms',
|
|
1070
|
+
300: '300ms',
|
|
1071
|
+
500: '500ms',
|
|
1072
|
+
700: '700ms',
|
|
1073
|
+
1000: '1000ms',
|
|
1074
|
+
},
|
|
1075
|
+
transitionProperty: {
|
|
1076
|
+
none: 'none',
|
|
1077
|
+
all: 'all',
|
|
1078
|
+
DEFAULT:
|
|
1079
|
+
'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
|
|
1080
|
+
colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
|
|
1081
|
+
opacity: 'opacity',
|
|
1082
|
+
shadow: 'box-shadow',
|
|
1083
|
+
transform: 'transform',
|
|
1084
|
+
},
|
|
1085
|
+
transitionTimingFunction: {
|
|
1086
|
+
DEFAULT: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
1087
|
+
linear: 'linear',
|
|
1088
|
+
in: 'cubic-bezier(0.4, 0, 1, 1)',
|
|
1089
|
+
out: 'cubic-bezier(0, 0, 0.2, 1)',
|
|
1090
|
+
'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
1091
|
+
},
|
|
1092
|
+
translate: ({ theme }) => ({
|
|
1093
|
+
...theme('spacing'),
|
|
1094
|
+
'1/2': '50%',
|
|
1095
|
+
'1/3': '33.333333%',
|
|
1096
|
+
'2/3': '66.666667%',
|
|
1097
|
+
'1/4': '25%',
|
|
1098
|
+
'2/4': '50%',
|
|
1099
|
+
'3/4': '75%',
|
|
1100
|
+
full: '100%',
|
|
1101
|
+
}),
|
|
1102
|
+
size: ({ theme }) => ({
|
|
1103
|
+
auto: 'auto',
|
|
1104
|
+
...theme('spacing'),
|
|
1105
|
+
'1/2': '50%',
|
|
1106
|
+
'1/3': '33.333333%',
|
|
1107
|
+
'2/3': '66.666667%',
|
|
1108
|
+
'1/4': '25%',
|
|
1109
|
+
'2/4': '50%',
|
|
1110
|
+
'3/4': '75%',
|
|
1111
|
+
'1/5': '20%',
|
|
1112
|
+
'2/5': '40%',
|
|
1113
|
+
'3/5': '60%',
|
|
1114
|
+
'4/5': '80%',
|
|
1115
|
+
'1/6': '16.666667%',
|
|
1116
|
+
'2/6': '33.333333%',
|
|
1117
|
+
'3/6': '50%',
|
|
1118
|
+
'4/6': '66.666667%',
|
|
1119
|
+
'5/6': '83.333333%',
|
|
1120
|
+
'1/12': '8.333333%',
|
|
1121
|
+
'2/12': '16.666667%',
|
|
1122
|
+
'3/12': '25%',
|
|
1123
|
+
'4/12': '33.333333%',
|
|
1124
|
+
'5/12': '41.666667%',
|
|
1125
|
+
'6/12': '50%',
|
|
1126
|
+
'7/12': '58.333333%',
|
|
1127
|
+
'8/12': '66.666667%',
|
|
1128
|
+
'9/12': '75%',
|
|
1129
|
+
'10/12': '83.333333%',
|
|
1130
|
+
'11/12': '91.666667%',
|
|
1131
|
+
full: '100%',
|
|
1132
|
+
min: 'min-content',
|
|
1133
|
+
max: 'max-content',
|
|
1134
|
+
fit: 'fit-content',
|
|
1135
|
+
}),
|
|
1136
|
+
width: ({ theme }) => ({
|
|
1137
|
+
auto: 'auto',
|
|
1138
|
+
...theme('spacing'),
|
|
1139
|
+
'1/2': '50%',
|
|
1140
|
+
'1/3': '33.333333%',
|
|
1141
|
+
'2/3': '66.666667%',
|
|
1142
|
+
'1/4': '25%',
|
|
1143
|
+
'2/4': '50%',
|
|
1144
|
+
'3/4': '75%',
|
|
1145
|
+
'1/5': '20%',
|
|
1146
|
+
'2/5': '40%',
|
|
1147
|
+
'3/5': '60%',
|
|
1148
|
+
'4/5': '80%',
|
|
1149
|
+
'1/6': '16.666667%',
|
|
1150
|
+
'2/6': '33.333333%',
|
|
1151
|
+
'3/6': '50%',
|
|
1152
|
+
'4/6': '66.666667%',
|
|
1153
|
+
'5/6': '83.333333%',
|
|
1154
|
+
'1/12': '8.333333%',
|
|
1155
|
+
'2/12': '16.666667%',
|
|
1156
|
+
'3/12': '25%',
|
|
1157
|
+
'4/12': '33.333333%',
|
|
1158
|
+
'5/12': '41.666667%',
|
|
1159
|
+
'6/12': '50%',
|
|
1160
|
+
'7/12': '58.333333%',
|
|
1161
|
+
'8/12': '66.666667%',
|
|
1162
|
+
'9/12': '75%',
|
|
1163
|
+
'10/12': '83.333333%',
|
|
1164
|
+
'11/12': '91.666667%',
|
|
1165
|
+
full: '100%',
|
|
1166
|
+
screen: '100vw',
|
|
1167
|
+
svw: '100svw',
|
|
1168
|
+
lvw: '100lvw',
|
|
1169
|
+
dvw: '100dvw',
|
|
1170
|
+
min: 'min-content',
|
|
1171
|
+
max: 'max-content',
|
|
1172
|
+
fit: 'fit-content',
|
|
1173
|
+
}),
|
|
1174
|
+
willChange: {
|
|
1175
|
+
auto: 'auto',
|
|
1176
|
+
scroll: 'scroll-position',
|
|
1177
|
+
contents: 'contents',
|
|
1178
|
+
transform: 'transform',
|
|
1179
|
+
},
|
|
1180
|
+
zIndex: {
|
|
1181
|
+
auto: 'auto',
|
|
1182
|
+
0: '0',
|
|
1183
|
+
10: '10',
|
|
1184
|
+
20: '20',
|
|
1185
|
+
30: '30',
|
|
1186
|
+
40: '40',
|
|
1187
|
+
50: '50',
|
|
1188
|
+
},
|
|
1189
|
+
},
|
|
1190
|
+
plugins: [],
|
|
1191
|
+
};
|
|
1192
|
+
return config_full;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
var hasRequiredDefaultTheme$1;
|
|
1196
|
+
|
|
1197
|
+
function requireDefaultTheme$1 () {
|
|
1198
|
+
if (hasRequiredDefaultTheme$1) return defaultTheme;
|
|
1199
|
+
hasRequiredDefaultTheme$1 = 1;
|
|
1200
|
+
(function (exports) {
|
|
1201
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1202
|
+
value: true
|
|
1203
|
+
});
|
|
1204
|
+
Object.defineProperty(exports, "default", {
|
|
1205
|
+
enumerable: true,
|
|
1206
|
+
get: function() {
|
|
1207
|
+
return _default;
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
const _cloneDeep = requireCloneDeep();
|
|
1211
|
+
const _configfull = /*#__PURE__*/ _interop_require_default(requireConfig_full());
|
|
1212
|
+
function _interop_require_default(obj) {
|
|
1213
|
+
return obj && obj.__esModule ? obj : {
|
|
1214
|
+
default: obj
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
const _default = (0, _cloneDeep.cloneDeep)(_configfull.default.theme);
|
|
1218
|
+
} (defaultTheme));
|
|
1219
|
+
return defaultTheme;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
var defaultTheme_1;
|
|
1223
|
+
var hasRequiredDefaultTheme;
|
|
1224
|
+
|
|
1225
|
+
function requireDefaultTheme () {
|
|
1226
|
+
if (hasRequiredDefaultTheme) return defaultTheme_1;
|
|
1227
|
+
hasRequiredDefaultTheme = 1;
|
|
1228
|
+
let defaultTheme = requireDefaultTheme$1();
|
|
1229
|
+
defaultTheme_1 = (defaultTheme.__esModule ? defaultTheme : { default: defaultTheme }).default;
|
|
1230
|
+
return defaultTheme_1;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
var defaultThemeExports = requireDefaultTheme();
|
|
1234
|
+
|
|
1235
|
+
const { blue, dark, green, lime, magenta, orange, pink, primary, purple, red, teal, yellow } = BrainfishColors;
|
|
1236
|
+
const preset = {
|
|
1237
|
+
darkMode: ["class"],
|
|
1238
|
+
theme: {
|
|
1239
|
+
container: {
|
|
1240
|
+
center: true,
|
|
1241
|
+
padding: "2rem",
|
|
1242
|
+
screens: {
|
|
1243
|
+
"2xl": "1400px"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
extend: {
|
|
1247
|
+
fontFamily: {
|
|
1248
|
+
...defaultThemeExports.fontFamily,
|
|
1249
|
+
sans: ["var(--bfc-font-family)", "system-ui", "sans-serif"],
|
|
1250
|
+
fraunces: ["var(--font-fraunces)", "serif"],
|
|
1251
|
+
inter: ["var(--font-inter)", "sans-serif"]
|
|
1252
|
+
},
|
|
1253
|
+
fontWeight: {
|
|
1254
|
+
bold: "700",
|
|
1255
|
+
normal: "400"
|
|
1256
|
+
},
|
|
1257
|
+
colors: {
|
|
1258
|
+
transparent: "transparent",
|
|
1259
|
+
primary: "var(--bfc-primary)",
|
|
1260
|
+
success: {
|
|
1261
|
+
DEFAULT: "var(--bfc-success-bg)",
|
|
1262
|
+
foreground: "var(--bfc-success-text)"
|
|
1263
|
+
},
|
|
1264
|
+
destructive: {
|
|
1265
|
+
DEFAULT: "var(--bfc-destructive-bg)",
|
|
1266
|
+
foreground: "var(--bfc-destructive-text)"
|
|
1267
|
+
},
|
|
1268
|
+
warning: "var(--bfc-warning-bg)",
|
|
1269
|
+
base: {
|
|
1270
|
+
orange: orange.DEFAULT,
|
|
1271
|
+
yellow: yellow.DEFAULT,
|
|
1272
|
+
primary: primary.DEFAULT,
|
|
1273
|
+
green: green.DEFAULT,
|
|
1274
|
+
blue: blue.DEFAULT,
|
|
1275
|
+
purple: purple.DEFAULT,
|
|
1276
|
+
pink: pink.DEFAULT,
|
|
1277
|
+
red: red.DEFAULT,
|
|
1278
|
+
lime: lime.DEFAULT,
|
|
1279
|
+
teal: teal.DEFAULT,
|
|
1280
|
+
magenta: magenta.DEFAULT
|
|
1281
|
+
},
|
|
1282
|
+
dark,
|
|
1283
|
+
orange,
|
|
1284
|
+
yellow,
|
|
1285
|
+
green,
|
|
1286
|
+
blue,
|
|
1287
|
+
purple,
|
|
1288
|
+
pink,
|
|
1289
|
+
red,
|
|
1290
|
+
border: "var(--bfc-border)",
|
|
1291
|
+
input: "var(--bfc-input)",
|
|
1292
|
+
ring: "var(--bfc-border)",
|
|
1293
|
+
background: "var(--bfc-background)",
|
|
1294
|
+
foreground: "var(--bfc-foreground)",
|
|
1295
|
+
feedback: {
|
|
1296
|
+
positive: "var(--bfc-feedback-positive)",
|
|
1297
|
+
negative: "var(--bfc-feedback-negative)"
|
|
1298
|
+
},
|
|
1299
|
+
link: "var(--bfc-link)",
|
|
1300
|
+
surface: {
|
|
1301
|
+
DEFAULT: "var(--bfc-surface)",
|
|
1302
|
+
border: "var(--bfc-surface-border)"
|
|
1303
|
+
},
|
|
1304
|
+
secondary: {
|
|
1305
|
+
DEFAULT: "var(--bfc-secondary)",
|
|
1306
|
+
foreground: "var(--bfc-secondary-foreground)"
|
|
1307
|
+
},
|
|
1308
|
+
muted: {
|
|
1309
|
+
DEFAULT: "var(--bfc-muted)",
|
|
1310
|
+
foreground: "var(--bfc-muted-foreground)"
|
|
1311
|
+
},
|
|
1312
|
+
accent: {
|
|
1313
|
+
DEFAULT: "var(--bfc-accent)",
|
|
1314
|
+
foreground: "var(--bfc-accent-foreground)"
|
|
1315
|
+
},
|
|
1316
|
+
popover: {
|
|
1317
|
+
DEFAULT: "var(--bfc-popover)",
|
|
1318
|
+
foreground: "var(--bfc-foreground)"
|
|
1319
|
+
},
|
|
1320
|
+
card: {
|
|
1321
|
+
DEFAULT: "var(--bfc-card)",
|
|
1322
|
+
foreground: "var(--bfc-card-foreground)"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
textColor: {
|
|
1326
|
+
primary: "var(--bfc-primary-foreground)",
|
|
1327
|
+
"primary-foreground": "var(--bfc-primary-foreground)",
|
|
1328
|
+
default: "var(--bfc-text-default)",
|
|
1329
|
+
subtle: "var(--bfc-text-subtle)",
|
|
1330
|
+
subtlest: "var(--bfc-text-subtlest)",
|
|
1331
|
+
success: "var(--bfc-success-text)",
|
|
1332
|
+
destructive: "var(--bfc-destructive-text)",
|
|
1333
|
+
warning: "var(--bfc-warning-text)"
|
|
1334
|
+
},
|
|
1335
|
+
backgroundColor: {
|
|
1336
|
+
success: "var(--bfc-success-bg)",
|
|
1337
|
+
destructive: "var(--bfc-destructive-bg)",
|
|
1338
|
+
warning: "var(--bfc-warning-bg)",
|
|
1339
|
+
surface: "var(--bfc-white)"
|
|
1340
|
+
},
|
|
1341
|
+
borderColor: {
|
|
1342
|
+
success: "var(--bfc-success-border)",
|
|
1343
|
+
destructive: "var(--bfc-destructive-border)",
|
|
1344
|
+
warning: "var(--bfc-warning-border)"
|
|
1345
|
+
},
|
|
1346
|
+
keyframes: {
|
|
1347
|
+
"accordion-down": {
|
|
1348
|
+
from: { height: "0" },
|
|
1349
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
1350
|
+
},
|
|
1351
|
+
"accordion-up": {
|
|
1352
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
1353
|
+
to: { height: "0" }
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
animation: {
|
|
1357
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
1358
|
+
"accordion-up": "accordion-up 0.2s ease-out"
|
|
1359
|
+
},
|
|
1360
|
+
maxWidth: {
|
|
1361
|
+
threadWidth: "1400px"
|
|
1362
|
+
},
|
|
1363
|
+
spacing: {
|
|
1364
|
+
headerHeight: "64px",
|
|
1365
|
+
md: "16px",
|
|
1366
|
+
lg: "24px",
|
|
1367
|
+
xl: "32px"
|
|
1368
|
+
},
|
|
1369
|
+
gridTemplateColumns: {
|
|
1370
|
+
12: "repeat(12, minmax(0, 1fr))"
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
plugins: [
|
|
1375
|
+
require("tailwindcss-animate"),
|
|
1376
|
+
require("@tailwindcss/container-queries"),
|
|
1377
|
+
plugin(function({ addBase }) {
|
|
1378
|
+
addBase({
|
|
1379
|
+
"ul": { listStyleType: "disc" },
|
|
1380
|
+
"ol": { listStyleType: "decimal" }
|
|
1381
|
+
});
|
|
1382
|
+
}),
|
|
1383
|
+
plugin(function({ addUtilities }) {
|
|
1384
|
+
addUtilities({
|
|
1385
|
+
// Typography - Headings
|
|
1386
|
+
...Object.entries({
|
|
1387
|
+
"xxl": { fontSize: "2rem", lineHeight: "2.25rem", fontFamily: "var(--bfc-heading-xxl-font-family)" },
|
|
1388
|
+
"xl": { fontSize: "1.75rem", lineHeight: "2rem", fontFamily: "var(--bfc-v2-font-family)" },
|
|
1389
|
+
"lg": { fontSize: "1.5rem", lineHeight: "1.75rem", fontFamily: "var(--bfc-v2-font-family)" },
|
|
1390
|
+
"m": { fontSize: "1.25rem", lineHeight: "1.5rem", fontFamily: "var(--bfc-v2-font-family)" },
|
|
1391
|
+
"sm": { fontSize: "1rem", lineHeight: "1.25rem", fontFamily: "var(--bfc-v2-font-family)" },
|
|
1392
|
+
"xs": { fontSize: "0.875rem", lineHeight: "1.25rem", fontFamily: "var(--bfc-v2-font-family)" },
|
|
1393
|
+
"xxs": { fontSize: "0.75rem", lineHeight: "1rem", fontFamily: "var(--bfc-v2-font-family)" },
|
|
1394
|
+
"xxxs": { fontSize: "0.625rem", lineHeight: "0.875rem", fontFamily: "var(--bfc-v2-font-family)" }
|
|
1395
|
+
}).reduce(
|
|
1396
|
+
(acc, [size, styles]) => {
|
|
1397
|
+
acc[`.heading-${size}`] = {
|
|
1398
|
+
"font-family": styles.fontFamily,
|
|
1399
|
+
"font-size": styles.fontSize,
|
|
1400
|
+
"font-style": "normal",
|
|
1401
|
+
"font-weight": "700",
|
|
1402
|
+
"line-height": styles.lineHeight
|
|
1403
|
+
};
|
|
1404
|
+
return acc;
|
|
1405
|
+
},
|
|
1406
|
+
{}
|
|
1407
|
+
),
|
|
1408
|
+
// Typography - Paragraph
|
|
1409
|
+
...Object.entries({
|
|
1410
|
+
"lg": { fontSize: "1rem", lineHeight: "1.5rem" },
|
|
1411
|
+
"md": { fontSize: "0.875rem", lineHeight: "1.25rem" },
|
|
1412
|
+
"sm": { fontSize: "0.75rem", lineHeight: "1rem" }
|
|
1413
|
+
}).reduce(
|
|
1414
|
+
(acc, [size, styles]) => {
|
|
1415
|
+
acc[`.paragraph-${size}`] = {
|
|
1416
|
+
"font-family": "var(--bfc-v2-font-family)",
|
|
1417
|
+
"font-size": styles.fontSize,
|
|
1418
|
+
"font-style": "normal",
|
|
1419
|
+
"font-weight": "400",
|
|
1420
|
+
"line-height": styles.lineHeight
|
|
1421
|
+
};
|
|
1422
|
+
return acc;
|
|
1423
|
+
},
|
|
1424
|
+
{}
|
|
1425
|
+
)
|
|
1426
|
+
});
|
|
1427
|
+
}),
|
|
1428
|
+
plugin(function({ addUtilities }) {
|
|
1429
|
+
const dashedBorderUtilities = {};
|
|
1430
|
+
const gradient = (deg, color) => `repeating-linear-gradient(${deg}deg, ${color}, ${color} 8px, transparent 8px, transparent 16px)`;
|
|
1431
|
+
const createBorderUtility = (colorValue, sides, baseName) => {
|
|
1432
|
+
const gradients = [0, 90, 180, 270].map((deg) => {
|
|
1433
|
+
const color = sides.includes(deg) ? colorValue : "transparent";
|
|
1434
|
+
return gradient(deg, color);
|
|
1435
|
+
});
|
|
1436
|
+
const className = baseName ? `.custom-dashed-border-${baseName}` : ".custom-dashed-border";
|
|
1437
|
+
return {
|
|
1438
|
+
[className]: {
|
|
1439
|
+
position: "relative",
|
|
1440
|
+
border: "none"
|
|
1441
|
+
},
|
|
1442
|
+
[`${className}::before`]: {
|
|
1443
|
+
content: '""',
|
|
1444
|
+
position: "absolute",
|
|
1445
|
+
inset: "0",
|
|
1446
|
+
"background-image": gradients.join(","),
|
|
1447
|
+
"background-position": "0 0, 0 0, 100% 0, 0 100%",
|
|
1448
|
+
"background-size": "1px 100%, 100% 1px, 1px 100%, 100% 1px",
|
|
1449
|
+
"background-repeat": "no-repeat",
|
|
1450
|
+
"pointer-events": "none",
|
|
1451
|
+
"border-radius": "inherit",
|
|
1452
|
+
"z-index": "0"
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
const generateUtilitiesForColor = (colorValue, baseName) => {
|
|
1457
|
+
const utilities = {};
|
|
1458
|
+
Object.assign(utilities, createBorderUtility(colorValue, [0, 90, 180, 270], baseName));
|
|
1459
|
+
Object.assign(utilities, createBorderUtility(colorValue, [90], baseName ? `t-${baseName}` : "t"));
|
|
1460
|
+
Object.assign(utilities, createBorderUtility(colorValue, [180], baseName ? `r-${baseName}` : "r"));
|
|
1461
|
+
Object.assign(utilities, createBorderUtility(colorValue, [270], baseName ? `b-${baseName}` : "b"));
|
|
1462
|
+
Object.assign(utilities, createBorderUtility(colorValue, [0], baseName ? `l-${baseName}` : "l"));
|
|
1463
|
+
Object.assign(utilities, createBorderUtility(colorValue, [0, 180], baseName ? `x-${baseName}` : "x"));
|
|
1464
|
+
Object.assign(utilities, createBorderUtility(colorValue, [90, 270], baseName ? `y-${baseName}` : "y"));
|
|
1465
|
+
return utilities;
|
|
1466
|
+
};
|
|
1467
|
+
Object.assign(dashedBorderUtilities, generateUtilitiesForColor("var(--bfc-border)", ""));
|
|
1468
|
+
Object.entries(BrainfishColors).forEach(([colorName, colorShades]) => {
|
|
1469
|
+
Object.entries(colorShades).forEach(([shade, colorValue]) => {
|
|
1470
|
+
const baseName = shade === "DEFAULT" ? colorName : `${colorName}-${shade}`;
|
|
1471
|
+
Object.assign(dashedBorderUtilities, generateUtilitiesForColor(colorValue, baseName));
|
|
1472
|
+
});
|
|
1473
|
+
});
|
|
1474
|
+
addUtilities(dashedBorderUtilities);
|
|
1475
|
+
addUtilities({
|
|
1476
|
+
".custom-dashed-border-hover": {
|
|
1477
|
+
"&::before": {
|
|
1478
|
+
"background-image": "none",
|
|
1479
|
+
"border": "1px solid var(--bfc-border)"
|
|
1480
|
+
},
|
|
1481
|
+
"box-shadow": "4px 4px 0 0 var(--bfc-border)"
|
|
1482
|
+
}
|
|
1483
|
+
});
|
|
1484
|
+
})
|
|
1485
|
+
]
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1488
|
+
export { preset as default };
|
|
1489
|
+
//# sourceMappingURL=tailwind.preset.js.map
|