@unocss/preset-mini 0.55.1 → 0.55.3

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.
Files changed (56) hide show
  1. package/dist/colors.cjs +360 -6
  2. package/dist/{colors-dabdd21f.d.ts → colors.d.cts} +3 -2
  3. package/dist/colors.d.mts +354 -0
  4. package/dist/colors.d.ts +353 -2
  5. package/dist/colors.mjs +361 -1
  6. package/dist/index.cjs +12 -12
  7. package/dist/index.d.cts +69 -0
  8. package/dist/index.d.mts +69 -0
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.mjs +9 -10
  11. package/dist/rules.cjs +928 -48
  12. package/dist/rules.d.cts +133 -0
  13. package/dist/rules.d.mts +133 -0
  14. package/dist/rules.d.ts +1 -1
  15. package/dist/rules.mjs +891 -4
  16. package/dist/shared/preset-mini.0d957b3b.d.mts +721 -0
  17. package/dist/shared/preset-mini.0fac4963.mjs +320 -0
  18. package/dist/shared/preset-mini.2f8c3259.d.mts +67 -0
  19. package/dist/{types-d991ba46.d.ts → shared/preset-mini.32abac2c.d.cts} +1 -1
  20. package/dist/shared/preset-mini.32abac2c.d.mts +71 -0
  21. package/dist/shared/preset-mini.32abac2c.d.ts +71 -0
  22. package/dist/{default-1f25a0ae.d.ts → shared/preset-mini.3a79e471.d.ts} +1 -1
  23. package/dist/shared/preset-mini.5bfee53b.cjs +344 -0
  24. package/dist/shared/preset-mini.7b9de562.d.cts +67 -0
  25. package/dist/shared/{preset-mini.a21c5071.cjs → preset-mini.b4ad509c.cjs} +12 -8
  26. package/dist/shared/{preset-mini.6c1c8016.mjs → preset-mini.f1fe435e.mjs} +13 -9
  27. package/dist/shared/preset-mini.f67366b3.d.cts +721 -0
  28. package/dist/{utilities-d496540e.d.ts → shared/preset-mini.fa67009f.d.ts} +1 -1
  29. package/dist/theme.cjs +308 -34
  30. package/dist/theme.d.cts +264 -0
  31. package/dist/theme.d.mts +264 -0
  32. package/dist/theme.d.ts +5 -5
  33. package/dist/theme.mjs +284 -4
  34. package/dist/utils.cjs +81 -10
  35. package/dist/utils.d.cts +65 -0
  36. package/dist/utils.d.mts +65 -0
  37. package/dist/utils.d.ts +13 -31
  38. package/dist/utils.mjs +81 -3
  39. package/dist/variants.cjs +737 -33
  40. package/dist/variants.d.cts +46 -0
  41. package/dist/variants.d.mts +46 -0
  42. package/dist/variants.d.ts +4 -4
  43. package/dist/variants.mjs +714 -4
  44. package/package.json +3 -3
  45. package/dist/shared/preset-mini.0131b915.mjs +0 -704
  46. package/dist/shared/preset-mini.1c66bf79.mjs +0 -361
  47. package/dist/shared/preset-mini.74f9d55e.mjs +0 -80
  48. package/dist/shared/preset-mini.811eb23d.mjs +0 -681
  49. package/dist/shared/preset-mini.8dd73081.mjs +0 -452
  50. package/dist/shared/preset-mini.9d93761b.cjs +0 -729
  51. package/dist/shared/preset-mini.b8d9397e.cjs +0 -471
  52. package/dist/shared/preset-mini.ce5169f2.cjs +0 -730
  53. package/dist/shared/preset-mini.d778b487.cjs +0 -85
  54. package/dist/shared/preset-mini.de3bd9f7.mjs +0 -284
  55. package/dist/shared/preset-mini.e078d7da.cjs +0 -313
  56. package/dist/shared/preset-mini.f3fc54d2.cjs +0 -363
@@ -1,85 +0,0 @@
1
- 'use strict';
2
-
3
- const core = require('@unocss/core');
4
- const colors = require('./preset-mini.a21c5071.cjs');
5
-
6
- function variantMatcher(name, handler) {
7
- let re;
8
- return {
9
- name,
10
- match(input, ctx) {
11
- if (!re)
12
- re = new RegExp(`^${core.escapeRegExp(name)}(?:${ctx.generator.config.separators.join("|")})`);
13
- const match = input.match(re);
14
- if (match) {
15
- return {
16
- matcher: input.slice(match[0].length),
17
- handle: (input2, next) => next({
18
- ...input2,
19
- ...handler(input2)
20
- })
21
- };
22
- }
23
- },
24
- autocomplete: `${name}:`
25
- };
26
- }
27
- function variantParentMatcher(name, parent) {
28
- let re;
29
- return {
30
- name,
31
- match(input, ctx) {
32
- if (!re)
33
- re = new RegExp(`^${core.escapeRegExp(name)}(?:${ctx.generator.config.separators.join("|")})`);
34
- const match = input.match(re);
35
- if (match) {
36
- return {
37
- matcher: input.slice(match[0].length),
38
- handle: (input2, next) => next({
39
- ...input2,
40
- parent: `${input2.parent ? `${input2.parent} $$ ` : ""}${parent}`
41
- })
42
- };
43
- }
44
- },
45
- autocomplete: `${name}:`
46
- };
47
- }
48
- function variantGetBracket(prefix, matcher, separators) {
49
- if (matcher.startsWith(`${prefix}[`)) {
50
- const [match, rest] = colors.getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
51
- if (match && rest) {
52
- for (const separator of separators) {
53
- if (rest.startsWith(separator))
54
- return [match, rest.slice(separator.length), separator];
55
- }
56
- return [match, rest, ""];
57
- }
58
- }
59
- }
60
- function variantGetParameter(prefix, matcher, separators) {
61
- if (matcher.startsWith(prefix)) {
62
- const body = variantGetBracket(prefix, matcher, separators);
63
- if (body) {
64
- const [label = "", rest = body[1]] = variantGetParameter("/", body[1], separators) ?? [];
65
- return [body[0], rest, label];
66
- }
67
- for (const separator of separators.filter((x) => x !== "/")) {
68
- const pos = matcher.indexOf(separator, prefix.length);
69
- if (pos !== -1) {
70
- const labelPos = matcher.indexOf("/", prefix.length);
71
- const unlabelled = labelPos === -1 || pos <= labelPos;
72
- return [
73
- matcher.slice(prefix.length, unlabelled ? pos : labelPos),
74
- matcher.slice(pos + separator.length),
75
- unlabelled ? "" : matcher.slice(labelPos + 1, pos)
76
- ];
77
- }
78
- }
79
- }
80
- }
81
-
82
- exports.variantGetBracket = variantGetBracket;
83
- exports.variantGetParameter = variantGetParameter;
84
- exports.variantMatcher = variantMatcher;
85
- exports.variantParentMatcher = variantParentMatcher;
@@ -1,284 +0,0 @@
1
- import { c as colors } from './preset-mini.1c66bf79.mjs';
2
- import { Q as transformBase, R as boxShadowsBase, S as ringBase } from './preset-mini.811eb23d.mjs';
3
- import '@unocss/core';
4
- import './preset-mini.6c1c8016.mjs';
5
-
6
- const fontFamily = {
7
- sans: [
8
- "ui-sans-serif",
9
- "system-ui",
10
- "-apple-system",
11
- "BlinkMacSystemFont",
12
- '"Segoe UI"',
13
- "Roboto",
14
- '"Helvetica Neue"',
15
- "Arial",
16
- '"Noto Sans"',
17
- "sans-serif",
18
- '"Apple Color Emoji"',
19
- '"Segoe UI Emoji"',
20
- '"Segoe UI Symbol"',
21
- '"Noto Color Emoji"'
22
- ].join(","),
23
- serif: [
24
- "ui-serif",
25
- "Georgia",
26
- "Cambria",
27
- '"Times New Roman"',
28
- "Times",
29
- "serif"
30
- ].join(","),
31
- mono: [
32
- "ui-monospace",
33
- "SFMono-Regular",
34
- "Menlo",
35
- "Monaco",
36
- "Consolas",
37
- '"Liberation Mono"',
38
- '"Courier New"',
39
- "monospace"
40
- ].join(",")
41
- };
42
- const fontSize = {
43
- "xs": ["0.75rem", "1rem"],
44
- "sm": ["0.875rem", "1.25rem"],
45
- "base": ["1rem", "1.5rem"],
46
- "lg": ["1.125rem", "1.75rem"],
47
- "xl": ["1.25rem", "1.75rem"],
48
- "2xl": ["1.5rem", "2rem"],
49
- "3xl": ["1.875rem", "2.25rem"],
50
- "4xl": ["2.25rem", "2.5rem"],
51
- "5xl": ["3rem", "1"],
52
- "6xl": ["3.75rem", "1"],
53
- "7xl": ["4.5rem", "1"],
54
- "8xl": ["6rem", "1"],
55
- "9xl": ["8rem", "1"]
56
- };
57
- const textIndent = {
58
- "DEFAULT": "1.5rem",
59
- "xs": "0.5rem",
60
- "sm": "1rem",
61
- "md": "1.5rem",
62
- "lg": "2rem",
63
- "xl": "2.5rem",
64
- "2xl": "3rem",
65
- "3xl": "4rem"
66
- };
67
- const textStrokeWidth = {
68
- DEFAULT: "1.5rem",
69
- none: "0",
70
- sm: "thin",
71
- md: "medium",
72
- lg: "thick"
73
- };
74
- const textShadow = {
75
- DEFAULT: ["0 0 1px rgba(0,0,0,0.2)", "0 0 1px rgba(1,0,5,0.1)"],
76
- none: "0 0 rgba(0,0,0,0)",
77
- sm: "1px 1px 3px rgba(36,37,47,0.25)",
78
- md: ["0 1px 2px rgba(30,29,39,0.19)", "1px 2px 4px rgba(54,64,147,0.18)"],
79
- lg: ["3px 3px 6px rgba(0,0,0,0.26)", "0 0 5px rgba(15,3,86,0.22)"],
80
- xl: ["1px 1px 3px rgba(0,0,0,0.29)", "2px 4px 7px rgba(73,64,125,0.35)"]
81
- };
82
- const lineHeight = {
83
- none: "1",
84
- tight: "1.25",
85
- snug: "1.375",
86
- normal: "1.5",
87
- relaxed: "1.625",
88
- loose: "2"
89
- };
90
- const letterSpacing = {
91
- tighter: "-0.05em",
92
- tight: "-0.025em",
93
- normal: "0em",
94
- wide: "0.025em",
95
- wider: "0.05em",
96
- widest: "0.1em"
97
- };
98
- const fontWeight = {
99
- thin: "100",
100
- extralight: "200",
101
- light: "300",
102
- normal: "400",
103
- medium: "500",
104
- semibold: "600",
105
- bold: "700",
106
- extrabold: "800",
107
- black: "900"
108
- };
109
- const wordSpacing = letterSpacing;
110
-
111
- const breakpoints = {
112
- "sm": "640px",
113
- "md": "768px",
114
- "lg": "1024px",
115
- "xl": "1280px",
116
- "2xl": "1536px"
117
- };
118
- const verticalBreakpoints = { ...breakpoints };
119
- const lineWidth = {
120
- DEFAULT: "1px",
121
- none: "0"
122
- };
123
- const spacing = {
124
- "DEFAULT": "1rem",
125
- "none": "0",
126
- "xs": "0.75rem",
127
- "sm": "0.875rem",
128
- "lg": "1.125rem",
129
- "xl": "1.25rem",
130
- "2xl": "1.5rem",
131
- "3xl": "1.875rem",
132
- "4xl": "2.25rem",
133
- "5xl": "3rem",
134
- "6xl": "3.75rem",
135
- "7xl": "4.5rem",
136
- "8xl": "6rem",
137
- "9xl": "8rem"
138
- };
139
- const duration = {
140
- DEFAULT: "150ms",
141
- none: "0s",
142
- 75: "75ms",
143
- 100: "100ms",
144
- 150: "150ms",
145
- 200: "200ms",
146
- 300: "300ms",
147
- 500: "500ms",
148
- 700: "700ms",
149
- 1e3: "1000ms"
150
- };
151
- const borderRadius = {
152
- "DEFAULT": "0.25rem",
153
- "none": "0",
154
- "sm": "0.125rem",
155
- "md": "0.375rem",
156
- "lg": "0.5rem",
157
- "xl": "0.75rem",
158
- "2xl": "1rem",
159
- "3xl": "1.5rem",
160
- "full": "9999px"
161
- };
162
- const boxShadow = {
163
- "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],
164
- "none": "0 0 rgba(0,0,0,0)",
165
- "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",
166
- "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],
167
- "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],
168
- "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],
169
- "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",
170
- "inner": "inset 0 2px 4px 0 rgba(0,0,0,0.05)"
171
- };
172
- const easing = {
173
- "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
174
- "linear": "linear",
175
- "in": "cubic-bezier(0.4, 0, 1, 1)",
176
- "out": "cubic-bezier(0, 0, 0.2, 1)",
177
- "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
178
- };
179
- const ringWidth = {
180
- DEFAULT: "1px",
181
- none: "0"
182
- };
183
-
184
- const blur = {
185
- "DEFAULT": "8px",
186
- "0": "0",
187
- "sm": "4px",
188
- "md": "12px",
189
- "lg": "16px",
190
- "xl": "24px",
191
- "2xl": "40px",
192
- "3xl": "64px"
193
- };
194
- const dropShadow = {
195
- "DEFAULT": ["0 1px 2px rgba(0,0,0,0.1)", "0 1px 1px rgba(0,0,0,0.06)"],
196
- "sm": "0 1px 1px rgba(0,0,0,0.05)",
197
- "md": ["0 4px 3px rgba(0,0,0,0.07)", "0 2px 2px rgba(0,0,0,0.06)"],
198
- "lg": ["0 10px 8px rgba(0,0,0,0.04)", "0 4px 3px rgba(0,0,0,0.1)"],
199
- "xl": ["0 20px 13px rgba(0,0,0,0.03)", "0 8px 5px rgba(0,0,0,0.08)"],
200
- "2xl": "0 25px 25px rgba(0,0,0,0.15)",
201
- "none": "0 0 rgba(0,0,0,0)"
202
- };
203
-
204
- const baseSize = {
205
- "xs": "20rem",
206
- "sm": "24rem",
207
- "md": "28rem",
208
- "lg": "32rem",
209
- "xl": "36rem",
210
- "2xl": "42rem",
211
- "3xl": "48rem",
212
- "4xl": "56rem",
213
- "5xl": "64rem",
214
- "6xl": "72rem",
215
- "7xl": "80rem",
216
- "prose": "65ch"
217
- };
218
- const width = {
219
- auto: "auto",
220
- ...baseSize,
221
- screen: "100vw"
222
- };
223
- const maxWidth = {
224
- none: "none",
225
- ...baseSize,
226
- screen: "100vw"
227
- };
228
- const height = {
229
- auto: "auto",
230
- ...baseSize,
231
- screen: "100vh"
232
- };
233
- const maxHeight = {
234
- none: "none",
235
- ...baseSize,
236
- screen: "100vh"
237
- };
238
- const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
239
-
240
- const preflightBase = {
241
- ...transformBase,
242
- ...boxShadowsBase,
243
- ...ringBase
244
- };
245
-
246
- const theme = {
247
- width,
248
- height,
249
- maxWidth,
250
- maxHeight,
251
- minWidth: maxWidth,
252
- minHeight: maxHeight,
253
- inlineSize: width,
254
- blockSize: height,
255
- maxInlineSize: maxWidth,
256
- maxBlockSize: maxHeight,
257
- minInlineSize: maxWidth,
258
- minBlockSize: maxHeight,
259
- colors,
260
- fontFamily,
261
- fontSize,
262
- fontWeight,
263
- breakpoints,
264
- verticalBreakpoints,
265
- borderRadius,
266
- lineHeight,
267
- letterSpacing,
268
- wordSpacing,
269
- boxShadow,
270
- textIndent,
271
- textShadow,
272
- textStrokeWidth,
273
- blur,
274
- dropShadow,
275
- easing,
276
- lineWidth,
277
- spacing,
278
- duration,
279
- ringWidth,
280
- preflightBase,
281
- containers
282
- };
283
-
284
- export { maxHeight as A, containers as B, fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, fontWeight as i, breakpoints as j, lineWidth as k, lineHeight as l, duration as m, borderRadius as n, boxShadow as o, easing as p, preflightBase as q, ringWidth as r, spacing as s, theme as t, baseSize as u, verticalBreakpoints as v, wordSpacing as w, width as x, maxWidth as y, height as z };
@@ -1,313 +0,0 @@
1
- 'use strict';
2
-
3
- const colors = require('./preset-mini.f3fc54d2.cjs');
4
- const transform = require('./preset-mini.ce5169f2.cjs');
5
- require('@unocss/core');
6
- require('./preset-mini.a21c5071.cjs');
7
-
8
- const fontFamily = {
9
- sans: [
10
- "ui-sans-serif",
11
- "system-ui",
12
- "-apple-system",
13
- "BlinkMacSystemFont",
14
- '"Segoe UI"',
15
- "Roboto",
16
- '"Helvetica Neue"',
17
- "Arial",
18
- '"Noto Sans"',
19
- "sans-serif",
20
- '"Apple Color Emoji"',
21
- '"Segoe UI Emoji"',
22
- '"Segoe UI Symbol"',
23
- '"Noto Color Emoji"'
24
- ].join(","),
25
- serif: [
26
- "ui-serif",
27
- "Georgia",
28
- "Cambria",
29
- '"Times New Roman"',
30
- "Times",
31
- "serif"
32
- ].join(","),
33
- mono: [
34
- "ui-monospace",
35
- "SFMono-Regular",
36
- "Menlo",
37
- "Monaco",
38
- "Consolas",
39
- '"Liberation Mono"',
40
- '"Courier New"',
41
- "monospace"
42
- ].join(",")
43
- };
44
- const fontSize = {
45
- "xs": ["0.75rem", "1rem"],
46
- "sm": ["0.875rem", "1.25rem"],
47
- "base": ["1rem", "1.5rem"],
48
- "lg": ["1.125rem", "1.75rem"],
49
- "xl": ["1.25rem", "1.75rem"],
50
- "2xl": ["1.5rem", "2rem"],
51
- "3xl": ["1.875rem", "2.25rem"],
52
- "4xl": ["2.25rem", "2.5rem"],
53
- "5xl": ["3rem", "1"],
54
- "6xl": ["3.75rem", "1"],
55
- "7xl": ["4.5rem", "1"],
56
- "8xl": ["6rem", "1"],
57
- "9xl": ["8rem", "1"]
58
- };
59
- const textIndent = {
60
- "DEFAULT": "1.5rem",
61
- "xs": "0.5rem",
62
- "sm": "1rem",
63
- "md": "1.5rem",
64
- "lg": "2rem",
65
- "xl": "2.5rem",
66
- "2xl": "3rem",
67
- "3xl": "4rem"
68
- };
69
- const textStrokeWidth = {
70
- DEFAULT: "1.5rem",
71
- none: "0",
72
- sm: "thin",
73
- md: "medium",
74
- lg: "thick"
75
- };
76
- const textShadow = {
77
- DEFAULT: ["0 0 1px rgba(0,0,0,0.2)", "0 0 1px rgba(1,0,5,0.1)"],
78
- none: "0 0 rgba(0,0,0,0)",
79
- sm: "1px 1px 3px rgba(36,37,47,0.25)",
80
- md: ["0 1px 2px rgba(30,29,39,0.19)", "1px 2px 4px rgba(54,64,147,0.18)"],
81
- lg: ["3px 3px 6px rgba(0,0,0,0.26)", "0 0 5px rgba(15,3,86,0.22)"],
82
- xl: ["1px 1px 3px rgba(0,0,0,0.29)", "2px 4px 7px rgba(73,64,125,0.35)"]
83
- };
84
- const lineHeight = {
85
- none: "1",
86
- tight: "1.25",
87
- snug: "1.375",
88
- normal: "1.5",
89
- relaxed: "1.625",
90
- loose: "2"
91
- };
92
- const letterSpacing = {
93
- tighter: "-0.05em",
94
- tight: "-0.025em",
95
- normal: "0em",
96
- wide: "0.025em",
97
- wider: "0.05em",
98
- widest: "0.1em"
99
- };
100
- const fontWeight = {
101
- thin: "100",
102
- extralight: "200",
103
- light: "300",
104
- normal: "400",
105
- medium: "500",
106
- semibold: "600",
107
- bold: "700",
108
- extrabold: "800",
109
- black: "900"
110
- };
111
- const wordSpacing = letterSpacing;
112
-
113
- const breakpoints = {
114
- "sm": "640px",
115
- "md": "768px",
116
- "lg": "1024px",
117
- "xl": "1280px",
118
- "2xl": "1536px"
119
- };
120
- const verticalBreakpoints = { ...breakpoints };
121
- const lineWidth = {
122
- DEFAULT: "1px",
123
- none: "0"
124
- };
125
- const spacing = {
126
- "DEFAULT": "1rem",
127
- "none": "0",
128
- "xs": "0.75rem",
129
- "sm": "0.875rem",
130
- "lg": "1.125rem",
131
- "xl": "1.25rem",
132
- "2xl": "1.5rem",
133
- "3xl": "1.875rem",
134
- "4xl": "2.25rem",
135
- "5xl": "3rem",
136
- "6xl": "3.75rem",
137
- "7xl": "4.5rem",
138
- "8xl": "6rem",
139
- "9xl": "8rem"
140
- };
141
- const duration = {
142
- DEFAULT: "150ms",
143
- none: "0s",
144
- 75: "75ms",
145
- 100: "100ms",
146
- 150: "150ms",
147
- 200: "200ms",
148
- 300: "300ms",
149
- 500: "500ms",
150
- 700: "700ms",
151
- 1e3: "1000ms"
152
- };
153
- const borderRadius = {
154
- "DEFAULT": "0.25rem",
155
- "none": "0",
156
- "sm": "0.125rem",
157
- "md": "0.375rem",
158
- "lg": "0.5rem",
159
- "xl": "0.75rem",
160
- "2xl": "1rem",
161
- "3xl": "1.5rem",
162
- "full": "9999px"
163
- };
164
- const boxShadow = {
165
- "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],
166
- "none": "0 0 rgba(0,0,0,0)",
167
- "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",
168
- "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],
169
- "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],
170
- "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],
171
- "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",
172
- "inner": "inset 0 2px 4px 0 rgba(0,0,0,0.05)"
173
- };
174
- const easing = {
175
- "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
176
- "linear": "linear",
177
- "in": "cubic-bezier(0.4, 0, 1, 1)",
178
- "out": "cubic-bezier(0, 0, 0.2, 1)",
179
- "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
180
- };
181
- const ringWidth = {
182
- DEFAULT: "1px",
183
- none: "0"
184
- };
185
-
186
- const blur = {
187
- "DEFAULT": "8px",
188
- "0": "0",
189
- "sm": "4px",
190
- "md": "12px",
191
- "lg": "16px",
192
- "xl": "24px",
193
- "2xl": "40px",
194
- "3xl": "64px"
195
- };
196
- const dropShadow = {
197
- "DEFAULT": ["0 1px 2px rgba(0,0,0,0.1)", "0 1px 1px rgba(0,0,0,0.06)"],
198
- "sm": "0 1px 1px rgba(0,0,0,0.05)",
199
- "md": ["0 4px 3px rgba(0,0,0,0.07)", "0 2px 2px rgba(0,0,0,0.06)"],
200
- "lg": ["0 10px 8px rgba(0,0,0,0.04)", "0 4px 3px rgba(0,0,0,0.1)"],
201
- "xl": ["0 20px 13px rgba(0,0,0,0.03)", "0 8px 5px rgba(0,0,0,0.08)"],
202
- "2xl": "0 25px 25px rgba(0,0,0,0.15)",
203
- "none": "0 0 rgba(0,0,0,0)"
204
- };
205
-
206
- const baseSize = {
207
- "xs": "20rem",
208
- "sm": "24rem",
209
- "md": "28rem",
210
- "lg": "32rem",
211
- "xl": "36rem",
212
- "2xl": "42rem",
213
- "3xl": "48rem",
214
- "4xl": "56rem",
215
- "5xl": "64rem",
216
- "6xl": "72rem",
217
- "7xl": "80rem",
218
- "prose": "65ch"
219
- };
220
- const width = {
221
- auto: "auto",
222
- ...baseSize,
223
- screen: "100vw"
224
- };
225
- const maxWidth = {
226
- none: "none",
227
- ...baseSize,
228
- screen: "100vw"
229
- };
230
- const height = {
231
- auto: "auto",
232
- ...baseSize,
233
- screen: "100vh"
234
- };
235
- const maxHeight = {
236
- none: "none",
237
- ...baseSize,
238
- screen: "100vh"
239
- };
240
- const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
241
-
242
- const preflightBase = {
243
- ...transform.transformBase,
244
- ...transform.boxShadowsBase,
245
- ...transform.ringBase
246
- };
247
-
248
- const theme = {
249
- width,
250
- height,
251
- maxWidth,
252
- maxHeight,
253
- minWidth: maxWidth,
254
- minHeight: maxHeight,
255
- inlineSize: width,
256
- blockSize: height,
257
- maxInlineSize: maxWidth,
258
- maxBlockSize: maxHeight,
259
- minInlineSize: maxWidth,
260
- minBlockSize: maxHeight,
261
- colors: colors.colors,
262
- fontFamily,
263
- fontSize,
264
- fontWeight,
265
- breakpoints,
266
- verticalBreakpoints,
267
- borderRadius,
268
- lineHeight,
269
- letterSpacing,
270
- wordSpacing,
271
- boxShadow,
272
- textIndent,
273
- textShadow,
274
- textStrokeWidth,
275
- blur,
276
- dropShadow,
277
- easing,
278
- lineWidth,
279
- spacing,
280
- duration,
281
- ringWidth,
282
- preflightBase,
283
- containers
284
- };
285
-
286
- exports.baseSize = baseSize;
287
- exports.blur = blur;
288
- exports.borderRadius = borderRadius;
289
- exports.boxShadow = boxShadow;
290
- exports.breakpoints = breakpoints;
291
- exports.containers = containers;
292
- exports.dropShadow = dropShadow;
293
- exports.duration = duration;
294
- exports.easing = easing;
295
- exports.fontFamily = fontFamily;
296
- exports.fontSize = fontSize;
297
- exports.fontWeight = fontWeight;
298
- exports.height = height;
299
- exports.letterSpacing = letterSpacing;
300
- exports.lineHeight = lineHeight;
301
- exports.lineWidth = lineWidth;
302
- exports.maxHeight = maxHeight;
303
- exports.maxWidth = maxWidth;
304
- exports.preflightBase = preflightBase;
305
- exports.ringWidth = ringWidth;
306
- exports.spacing = spacing;
307
- exports.textIndent = textIndent;
308
- exports.textShadow = textShadow;
309
- exports.textStrokeWidth = textStrokeWidth;
310
- exports.theme = theme;
311
- exports.verticalBreakpoints = verticalBreakpoints;
312
- exports.width = width;
313
- exports.wordSpacing = wordSpacing;