@unocss/preset-mini 0.55.0 → 0.55.2
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/colors.cjs +360 -6
- package/dist/{colors-dabdd21f.d.ts → colors.d.cts} +3 -2
- package/dist/colors.d.mts +354 -0
- package/dist/colors.d.ts +353 -2
- package/dist/colors.mjs +361 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +69 -0
- package/dist/index.d.mts +69 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +9 -10
- package/dist/rules.cjs +928 -48
- package/dist/rules.d.cts +133 -0
- package/dist/rules.d.mts +133 -0
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +891 -4
- package/dist/{default-1f25a0ae.d.ts → shared/preset-mini.024bdcea.d.ts} +1 -1
- package/dist/shared/preset-mini.0a9763df.d.mts +721 -0
- package/dist/shared/preset-mini.0fac4963.mjs +320 -0
- package/dist/shared/preset-mini.5bfee53b.cjs +344 -0
- package/dist/shared/preset-mini.5f54784f.d.mts +71 -0
- package/dist/shared/preset-mini.5f54784f.d.ts +71 -0
- package/dist/shared/preset-mini.aa3a264b.d.cts +67 -0
- package/dist/shared/{preset-mini.a21c5071.cjs → preset-mini.b4ad509c.cjs} +12 -8
- package/dist/shared/preset-mini.d69a12a5.d.cts +721 -0
- package/dist/{utilities-d496540e.d.ts → shared/preset-mini.e93c20db.d.ts} +1 -1
- package/dist/shared/{preset-mini.6c1c8016.mjs → preset-mini.f1fe435e.mjs} +13 -9
- package/dist/shared/preset-mini.fc26b619.d.mts +67 -0
- package/dist/theme.cjs +308 -34
- package/dist/theme.d.cts +264 -0
- package/dist/theme.d.mts +264 -0
- package/dist/theme.d.ts +5 -5
- package/dist/theme.mjs +284 -4
- package/dist/utils.cjs +81 -10
- package/dist/utils.d.cts +83 -0
- package/dist/utils.d.mts +83 -0
- package/dist/utils.d.ts +18 -18
- package/dist/utils.mjs +81 -3
- package/dist/variants.cjs +737 -33
- package/dist/variants.d.cts +46 -0
- package/dist/variants.d.mts +46 -0
- package/dist/variants.d.ts +4 -4
- package/dist/variants.mjs +714 -4
- package/package.json +3 -3
- package/dist/shared/preset-mini.0131b915.mjs +0 -704
- package/dist/shared/preset-mini.1c66bf79.mjs +0 -361
- package/dist/shared/preset-mini.74f9d55e.mjs +0 -80
- package/dist/shared/preset-mini.811eb23d.mjs +0 -681
- package/dist/shared/preset-mini.8dd73081.mjs +0 -452
- package/dist/shared/preset-mini.9d93761b.cjs +0 -729
- package/dist/shared/preset-mini.b8d9397e.cjs +0 -471
- package/dist/shared/preset-mini.ce5169f2.cjs +0 -730
- package/dist/shared/preset-mini.d778b487.cjs +0 -85
- package/dist/shared/preset-mini.de3bd9f7.mjs +0 -284
- package/dist/shared/preset-mini.e078d7da.cjs +0 -313
- package/dist/shared/preset-mini.f3fc54d2.cjs +0 -363
- /package/dist/{types-d991ba46.d.ts → shared/preset-mini.5f54784f.d.cts} +0 -0
|
@@ -111,6 +111,7 @@ const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
|
|
|
111
111
|
const unitOnlyRE = /^(px)$/i;
|
|
112
112
|
|
|
113
113
|
const cssProps = [
|
|
114
|
+
// basic props
|
|
114
115
|
"color",
|
|
115
116
|
"border-color",
|
|
116
117
|
"background-color",
|
|
@@ -128,12 +129,14 @@ const cssProps = [
|
|
|
128
129
|
"text-shadow",
|
|
129
130
|
"transform",
|
|
130
131
|
"box-shadow",
|
|
132
|
+
// positions
|
|
131
133
|
"background-position",
|
|
132
134
|
"left",
|
|
133
135
|
"right",
|
|
134
136
|
"top",
|
|
135
137
|
"bottom",
|
|
136
138
|
"object-position",
|
|
139
|
+
// sizes
|
|
137
140
|
"max-height",
|
|
138
141
|
"min-height",
|
|
139
142
|
"max-width",
|
|
@@ -152,6 +155,7 @@ const cssProps = [
|
|
|
152
155
|
"border-spacing",
|
|
153
156
|
"letter-spacing",
|
|
154
157
|
"word-spacing",
|
|
158
|
+
// enhances
|
|
155
159
|
"stroke",
|
|
156
160
|
"filter",
|
|
157
161
|
"backdrop-filter",
|
|
@@ -335,23 +339,23 @@ function position(str) {
|
|
|
335
339
|
|
|
336
340
|
const valueHandlers = {
|
|
337
341
|
__proto__: null,
|
|
338
|
-
numberWithUnit: numberWithUnit,
|
|
339
342
|
auto: auto,
|
|
340
|
-
rem: rem,
|
|
341
|
-
px: px,
|
|
342
|
-
number: number,
|
|
343
|
-
percent: percent,
|
|
344
|
-
fraction: fraction,
|
|
345
343
|
bracket: bracket,
|
|
346
344
|
bracketOfColor: bracketOfColor,
|
|
347
345
|
bracketOfLength: bracketOfLength,
|
|
348
346
|
bracketOfPosition: bracketOfPosition,
|
|
349
347
|
cssvar: cssvar,
|
|
350
|
-
time: time,
|
|
351
348
|
degree: degree,
|
|
349
|
+
fraction: fraction,
|
|
352
350
|
global: global,
|
|
351
|
+
number: number,
|
|
352
|
+
numberWithUnit: numberWithUnit,
|
|
353
|
+
percent: percent,
|
|
354
|
+
position: position,
|
|
353
355
|
properties: properties,
|
|
354
|
-
|
|
356
|
+
px: px,
|
|
357
|
+
rem: rem,
|
|
358
|
+
time: time
|
|
355
359
|
};
|
|
356
360
|
|
|
357
361
|
const handler = createValueHandler(valueHandlers);
|
|
@@ -770,4 +774,4 @@ function parseCssSpaceColorValues(componentString) {
|
|
|
770
774
|
};
|
|
771
775
|
}
|
|
772
776
|
|
|
773
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a,
|
|
777
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a, colorableShadows as b, colorResolver as c, positionMap as d, getBracket as e, hex2rgba as f, globalKeywords as g, h, parseCssColor as i, colorOpacityToString as j, colorToString as k, directionMap as l, makeGlobalStaticRules as m, insetMap as n, cornerMap as o, parseColor$1 as p, handler as q, directionSize as r, splitShorthand as s, resolveBreakpoints as t, resolveVerticalBreakpoints as u, valueHandlers as v, getComponent as w, xyzMap as x, getComponents as y, numberWithUnitRE as z };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './preset-mini.5f54784f.mjs';
|
|
3
|
+
|
|
4
|
+
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
|
+
/**
|
|
6
|
+
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
|
|
9
|
+
* @see {@link directionMap}
|
|
10
|
+
*/
|
|
11
|
+
declare function directionSize(propertyPrefix: string): DynamicMatcher;
|
|
12
|
+
/**
|
|
13
|
+
* Split utility shorthand delimited by / or :
|
|
14
|
+
*/
|
|
15
|
+
declare function splitShorthand(body: string, type: string): string[];
|
|
16
|
+
/**
|
|
17
|
+
* Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing.
|
|
18
|
+
* See also color.tests.ts for more examples.
|
|
19
|
+
*
|
|
20
|
+
* @example Parseable strings:
|
|
21
|
+
* 'red' // From theme, if 'red' is available
|
|
22
|
+
* 'red-100' // From theme, plus scale
|
|
23
|
+
* 'red-100/20' // From theme, plus scale/opacity
|
|
24
|
+
* '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
|
|
25
|
+
*
|
|
26
|
+
* @param {string} body - Color string to be parsed.
|
|
27
|
+
* @param {Theme} theme - {@link Theme} object.
|
|
28
|
+
* @return {ParsedColorValue|undefined} {@link ParsedColorValue} object if string is parseable.
|
|
29
|
+
*/
|
|
30
|
+
declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Provide {@link DynamicMatcher} function to produce color value matched from rule.
|
|
33
|
+
*
|
|
34
|
+
* @see {@link parseColor}
|
|
35
|
+
*
|
|
36
|
+
* @example Resolving 'red' from theme:
|
|
37
|
+
* colorResolver('background-color', 'background')('', 'red')
|
|
38
|
+
* return { 'background-color': '#f12' }
|
|
39
|
+
*
|
|
40
|
+
* @example Resolving 'red-100' from theme:
|
|
41
|
+
* colorResolver('background-color', 'background')('', 'red-100')
|
|
42
|
+
* return { '--un-background-opacity': '1', 'background-color': 'rgba(254,226,226,var(--un-background-opacity))' }
|
|
43
|
+
*
|
|
44
|
+
* @example Resolving 'red-100/20' from theme:
|
|
45
|
+
* colorResolver('background-color', 'background')('', 'red-100/20')
|
|
46
|
+
* return { 'background-color': 'rgba(204,251,241,0.22)' }
|
|
47
|
+
*
|
|
48
|
+
* @example Resolving 'hex-124':
|
|
49
|
+
* colorResolver('color', 'text')('', 'hex-124')
|
|
50
|
+
* return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' }
|
|
51
|
+
*
|
|
52
|
+
* @param {string} property - Property for the css value to be created.
|
|
53
|
+
* @param {string} varName - Base name for the opacity variable.
|
|
54
|
+
* @param {function} [shouldPass] - Function to decide whether to pass the css.
|
|
55
|
+
* @return {@link DynamicMatcher} object.
|
|
56
|
+
*/
|
|
57
|
+
declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
|
|
58
|
+
declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
|
|
59
|
+
declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
|
|
60
|
+
declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>): Record<string, string> | undefined;
|
|
61
|
+
declare function resolveVerticalBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>): Record<string, string> | undefined;
|
|
62
|
+
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
63
|
+
declare function getBracket(str: string, open: string, close: string): string[] | undefined;
|
|
64
|
+
declare function getComponent(str: string, open: string, close: string, separators: string | string[]): string[] | undefined;
|
|
65
|
+
declare function getComponents(str: string, separators: string | string[], limit?: number): string[] | undefined;
|
|
66
|
+
|
|
67
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, getComponent as e, getComponents as f, getBracket as g, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
|
package/dist/theme.cjs
CHANGED
|
@@ -1,41 +1,315 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const _default = require('./shared/preset-mini.e078d7da.cjs');
|
|
7
|
-
require('./shared/preset-mini.ce5169f2.cjs');
|
|
8
|
-
require('./shared/preset-mini.a21c5071.cjs');
|
|
3
|
+
const colors = require('./colors.cjs');
|
|
4
|
+
const transform = require('./shared/preset-mini.5bfee53b.cjs');
|
|
5
|
+
require('./shared/preset-mini.b4ad509c.cjs');
|
|
9
6
|
require('@unocss/core');
|
|
10
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
|
+
// int[0, 900] -> int
|
|
111
|
+
};
|
|
112
|
+
const wordSpacing = letterSpacing;
|
|
113
|
+
|
|
114
|
+
const breakpoints = {
|
|
115
|
+
"sm": "640px",
|
|
116
|
+
"md": "768px",
|
|
117
|
+
"lg": "1024px",
|
|
118
|
+
"xl": "1280px",
|
|
119
|
+
"2xl": "1536px"
|
|
120
|
+
};
|
|
121
|
+
const verticalBreakpoints = { ...breakpoints };
|
|
122
|
+
const lineWidth = {
|
|
123
|
+
DEFAULT: "1px",
|
|
124
|
+
none: "0"
|
|
125
|
+
};
|
|
126
|
+
const spacing = {
|
|
127
|
+
"DEFAULT": "1rem",
|
|
128
|
+
"none": "0",
|
|
129
|
+
"xs": "0.75rem",
|
|
130
|
+
"sm": "0.875rem",
|
|
131
|
+
"lg": "1.125rem",
|
|
132
|
+
"xl": "1.25rem",
|
|
133
|
+
"2xl": "1.5rem",
|
|
134
|
+
"3xl": "1.875rem",
|
|
135
|
+
"4xl": "2.25rem",
|
|
136
|
+
"5xl": "3rem",
|
|
137
|
+
"6xl": "3.75rem",
|
|
138
|
+
"7xl": "4.5rem",
|
|
139
|
+
"8xl": "6rem",
|
|
140
|
+
"9xl": "8rem"
|
|
141
|
+
};
|
|
142
|
+
const duration = {
|
|
143
|
+
DEFAULT: "150ms",
|
|
144
|
+
none: "0s",
|
|
145
|
+
75: "75ms",
|
|
146
|
+
100: "100ms",
|
|
147
|
+
150: "150ms",
|
|
148
|
+
200: "200ms",
|
|
149
|
+
300: "300ms",
|
|
150
|
+
500: "500ms",
|
|
151
|
+
700: "700ms",
|
|
152
|
+
1e3: "1000ms"
|
|
153
|
+
};
|
|
154
|
+
const borderRadius = {
|
|
155
|
+
"DEFAULT": "0.25rem",
|
|
156
|
+
"none": "0",
|
|
157
|
+
"sm": "0.125rem",
|
|
158
|
+
"md": "0.375rem",
|
|
159
|
+
"lg": "0.5rem",
|
|
160
|
+
"xl": "0.75rem",
|
|
161
|
+
"2xl": "1rem",
|
|
162
|
+
"3xl": "1.5rem",
|
|
163
|
+
"full": "9999px"
|
|
164
|
+
};
|
|
165
|
+
const boxShadow = {
|
|
166
|
+
"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)"],
|
|
167
|
+
"none": "0 0 rgba(0,0,0,0)",
|
|
168
|
+
"sm": "var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",
|
|
169
|
+
"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)"],
|
|
170
|
+
"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)"],
|
|
171
|
+
"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)"],
|
|
172
|
+
"2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",
|
|
173
|
+
"inner": "inset 0 2px 4px 0 rgba(0,0,0,0.05)"
|
|
174
|
+
};
|
|
175
|
+
const easing = {
|
|
176
|
+
"DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
177
|
+
"linear": "linear",
|
|
178
|
+
"in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
179
|
+
"out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
180
|
+
"in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
181
|
+
};
|
|
182
|
+
const ringWidth = {
|
|
183
|
+
DEFAULT: "1px",
|
|
184
|
+
none: "0"
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const blur = {
|
|
188
|
+
"DEFAULT": "8px",
|
|
189
|
+
"0": "0",
|
|
190
|
+
"sm": "4px",
|
|
191
|
+
"md": "12px",
|
|
192
|
+
"lg": "16px",
|
|
193
|
+
"xl": "24px",
|
|
194
|
+
"2xl": "40px",
|
|
195
|
+
"3xl": "64px"
|
|
196
|
+
};
|
|
197
|
+
const dropShadow = {
|
|
198
|
+
"DEFAULT": ["0 1px 2px rgba(0,0,0,0.1)", "0 1px 1px rgba(0,0,0,0.06)"],
|
|
199
|
+
"sm": "0 1px 1px rgba(0,0,0,0.05)",
|
|
200
|
+
"md": ["0 4px 3px rgba(0,0,0,0.07)", "0 2px 2px rgba(0,0,0,0.06)"],
|
|
201
|
+
"lg": ["0 10px 8px rgba(0,0,0,0.04)", "0 4px 3px rgba(0,0,0,0.1)"],
|
|
202
|
+
"xl": ["0 20px 13px rgba(0,0,0,0.03)", "0 8px 5px rgba(0,0,0,0.08)"],
|
|
203
|
+
"2xl": "0 25px 25px rgba(0,0,0,0.15)",
|
|
204
|
+
"none": "0 0 rgba(0,0,0,0)"
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const baseSize = {
|
|
208
|
+
"xs": "20rem",
|
|
209
|
+
"sm": "24rem",
|
|
210
|
+
"md": "28rem",
|
|
211
|
+
"lg": "32rem",
|
|
212
|
+
"xl": "36rem",
|
|
213
|
+
"2xl": "42rem",
|
|
214
|
+
"3xl": "48rem",
|
|
215
|
+
"4xl": "56rem",
|
|
216
|
+
"5xl": "64rem",
|
|
217
|
+
"6xl": "72rem",
|
|
218
|
+
"7xl": "80rem",
|
|
219
|
+
"prose": "65ch"
|
|
220
|
+
};
|
|
221
|
+
const width = {
|
|
222
|
+
auto: "auto",
|
|
223
|
+
...baseSize,
|
|
224
|
+
screen: "100vw"
|
|
225
|
+
};
|
|
226
|
+
const maxWidth = {
|
|
227
|
+
none: "none",
|
|
228
|
+
...baseSize,
|
|
229
|
+
screen: "100vw"
|
|
230
|
+
};
|
|
231
|
+
const height = {
|
|
232
|
+
auto: "auto",
|
|
233
|
+
...baseSize,
|
|
234
|
+
screen: "100vh"
|
|
235
|
+
};
|
|
236
|
+
const maxHeight = {
|
|
237
|
+
none: "none",
|
|
238
|
+
...baseSize,
|
|
239
|
+
screen: "100vh"
|
|
240
|
+
};
|
|
241
|
+
const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
|
|
242
|
+
|
|
243
|
+
const preflightBase = {
|
|
244
|
+
...transform.transformBase,
|
|
245
|
+
...transform.boxShadowsBase,
|
|
246
|
+
...transform.ringBase
|
|
247
|
+
};
|
|
11
248
|
|
|
249
|
+
const theme = {
|
|
250
|
+
width,
|
|
251
|
+
height,
|
|
252
|
+
maxWidth,
|
|
253
|
+
maxHeight,
|
|
254
|
+
minWidth: maxWidth,
|
|
255
|
+
minHeight: maxHeight,
|
|
256
|
+
inlineSize: width,
|
|
257
|
+
blockSize: height,
|
|
258
|
+
maxInlineSize: maxWidth,
|
|
259
|
+
maxBlockSize: maxHeight,
|
|
260
|
+
minInlineSize: maxWidth,
|
|
261
|
+
minBlockSize: maxHeight,
|
|
262
|
+
colors: colors.colors,
|
|
263
|
+
fontFamily,
|
|
264
|
+
fontSize,
|
|
265
|
+
fontWeight,
|
|
266
|
+
breakpoints,
|
|
267
|
+
verticalBreakpoints,
|
|
268
|
+
borderRadius,
|
|
269
|
+
lineHeight,
|
|
270
|
+
letterSpacing,
|
|
271
|
+
wordSpacing,
|
|
272
|
+
boxShadow,
|
|
273
|
+
textIndent,
|
|
274
|
+
textShadow,
|
|
275
|
+
textStrokeWidth,
|
|
276
|
+
blur,
|
|
277
|
+
dropShadow,
|
|
278
|
+
easing,
|
|
279
|
+
lineWidth,
|
|
280
|
+
spacing,
|
|
281
|
+
duration,
|
|
282
|
+
ringWidth,
|
|
283
|
+
preflightBase,
|
|
284
|
+
containers
|
|
285
|
+
};
|
|
12
286
|
|
|
13
287
|
exports.colors = colors.colors;
|
|
14
|
-
exports.baseSize =
|
|
15
|
-
exports.blur =
|
|
16
|
-
exports.borderRadius =
|
|
17
|
-
exports.boxShadow =
|
|
18
|
-
exports.breakpoints =
|
|
19
|
-
exports.containers =
|
|
20
|
-
exports.dropShadow =
|
|
21
|
-
exports.duration =
|
|
22
|
-
exports.easing =
|
|
23
|
-
exports.fontFamily =
|
|
24
|
-
exports.fontSize =
|
|
25
|
-
exports.fontWeight =
|
|
26
|
-
exports.height =
|
|
27
|
-
exports.letterSpacing =
|
|
28
|
-
exports.lineHeight =
|
|
29
|
-
exports.lineWidth =
|
|
30
|
-
exports.maxHeight =
|
|
31
|
-
exports.maxWidth =
|
|
32
|
-
exports.preflightBase =
|
|
33
|
-
exports.ringWidth =
|
|
34
|
-
exports.spacing =
|
|
35
|
-
exports.textIndent =
|
|
36
|
-
exports.textShadow =
|
|
37
|
-
exports.textStrokeWidth =
|
|
38
|
-
exports.theme =
|
|
39
|
-
exports.verticalBreakpoints =
|
|
40
|
-
exports.width =
|
|
41
|
-
exports.wordSpacing =
|
|
288
|
+
exports.baseSize = baseSize;
|
|
289
|
+
exports.blur = blur;
|
|
290
|
+
exports.borderRadius = borderRadius;
|
|
291
|
+
exports.boxShadow = boxShadow;
|
|
292
|
+
exports.breakpoints = breakpoints;
|
|
293
|
+
exports.containers = containers;
|
|
294
|
+
exports.dropShadow = dropShadow;
|
|
295
|
+
exports.duration = duration;
|
|
296
|
+
exports.easing = easing;
|
|
297
|
+
exports.fontFamily = fontFamily;
|
|
298
|
+
exports.fontSize = fontSize;
|
|
299
|
+
exports.fontWeight = fontWeight;
|
|
300
|
+
exports.height = height;
|
|
301
|
+
exports.letterSpacing = letterSpacing;
|
|
302
|
+
exports.lineHeight = lineHeight;
|
|
303
|
+
exports.lineWidth = lineWidth;
|
|
304
|
+
exports.maxHeight = maxHeight;
|
|
305
|
+
exports.maxWidth = maxWidth;
|
|
306
|
+
exports.preflightBase = preflightBase;
|
|
307
|
+
exports.ringWidth = ringWidth;
|
|
308
|
+
exports.spacing = spacing;
|
|
309
|
+
exports.textIndent = textIndent;
|
|
310
|
+
exports.textShadow = textShadow;
|
|
311
|
+
exports.textStrokeWidth = textStrokeWidth;
|
|
312
|
+
exports.theme = theme;
|
|
313
|
+
exports.verticalBreakpoints = verticalBreakpoints;
|
|
314
|
+
exports.width = width;
|
|
315
|
+
exports.wordSpacing = wordSpacing;
|