@unocss/preset-mini 0.15.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/LICENSE +21 -0
- package/README.md +23 -0
- package/colors.d.ts +1 -0
- package/dist/chunks/colors.cjs +339 -0
- package/dist/chunks/colors.mjs +337 -0
- package/dist/chunks/default.cjs +226 -0
- package/dist/chunks/default.mjs +206 -0
- package/dist/chunks/default2.cjs +1077 -0
- package/dist/chunks/default2.mjs +997 -0
- package/dist/chunks/default3.cjs +128 -0
- package/dist/chunks/default3.mjs +119 -0
- package/dist/chunks/index.cjs +169 -0
- package/dist/chunks/index.mjs +153 -0
- package/dist/chunks/pseudo.cjs +106 -0
- package/dist/chunks/pseudo.mjs +101 -0
- package/dist/chunks/variants.cjs +14 -0
- package/dist/chunks/variants.mjs +12 -0
- package/dist/colors-d6b5a5b4.d.ts +5 -0
- package/dist/colors.cjs +9 -0
- package/dist/colors.d.ts +2 -0
- package/dist/colors.mjs +1 -0
- package/dist/default-c7c67d23.d.ts +5 -0
- package/dist/index.cjs +28 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.mjs +22 -0
- package/dist/rules.cjs +90 -0
- package/dist/rules.d.ts +122 -0
- package/dist/rules.mjs +4 -0
- package/dist/theme.cjs +29 -0
- package/dist/theme.d.ts +157 -0
- package/dist/theme.mjs +2 -0
- package/dist/types-7963d0b3.d.ts +24 -0
- package/dist/utils.cjs +25 -0
- package/dist/utils.d.ts +56 -0
- package/dist/utils.mjs +2 -0
- package/dist/variants.cjs +23 -0
- package/dist/variants.d.ts +22 -0
- package/dist/variants.mjs +4 -0
- package/package.json +70 -0
- package/rules.d.ts +1 -0
- package/theme.d.ts +1 -0
- package/utils.d.ts +1 -0
- package/variants.d.ts +1 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { toArray } from '@unocss/core';
|
|
2
|
+
|
|
3
|
+
const CONTROL_BYPASS_PSEUDO = "$$no-pseudo";
|
|
4
|
+
const PseudoClasses = Object.fromEntries([
|
|
5
|
+
"active",
|
|
6
|
+
"checked",
|
|
7
|
+
"default",
|
|
8
|
+
"empty",
|
|
9
|
+
"enabled",
|
|
10
|
+
"disabled",
|
|
11
|
+
"first-of-type",
|
|
12
|
+
["first", "first-child"],
|
|
13
|
+
"focus-visible",
|
|
14
|
+
"focus-within",
|
|
15
|
+
"focus",
|
|
16
|
+
"hover",
|
|
17
|
+
"indeterminate",
|
|
18
|
+
"invalid",
|
|
19
|
+
"last-of-type",
|
|
20
|
+
["last", "last-child"],
|
|
21
|
+
"link",
|
|
22
|
+
"only-child",
|
|
23
|
+
"only-of-type",
|
|
24
|
+
"optional",
|
|
25
|
+
"placeholder-shown",
|
|
26
|
+
"read-only",
|
|
27
|
+
"read-write",
|
|
28
|
+
"required",
|
|
29
|
+
"root",
|
|
30
|
+
"target",
|
|
31
|
+
"valid",
|
|
32
|
+
"visited",
|
|
33
|
+
["even-of-type", "nth-of-type(even)"],
|
|
34
|
+
["even", "nth-child(even)"],
|
|
35
|
+
["odd-of-type", "nth-of-type(odd)"],
|
|
36
|
+
["odd", "nth-child(odd)"]
|
|
37
|
+
].map(toArray));
|
|
38
|
+
const PseudoElements = [
|
|
39
|
+
"before",
|
|
40
|
+
"after",
|
|
41
|
+
"first-letter",
|
|
42
|
+
"first-line",
|
|
43
|
+
"selection"
|
|
44
|
+
];
|
|
45
|
+
const PseudoElementsRE = new RegExp(`^(${PseudoElements.join("|")})[:-]`);
|
|
46
|
+
const PseudoClassesStr = Object.keys(PseudoClasses).join("|");
|
|
47
|
+
const PseudoClassesRE = new RegExp(`^(${PseudoClassesStr})[:-]`);
|
|
48
|
+
const PseudoClassesNotRE = new RegExp(`^not-(${PseudoClassesStr})[:-]`);
|
|
49
|
+
const PseudoClassesGroupRE = new RegExp(`^group-(${PseudoClassesStr})[:-]`);
|
|
50
|
+
const PseudoClassesPeerRE = new RegExp(`^peer-(${PseudoClassesStr})[:-]`);
|
|
51
|
+
const variantPseudoElements = (input) => {
|
|
52
|
+
const match = input.match(PseudoElementsRE);
|
|
53
|
+
if (match) {
|
|
54
|
+
return {
|
|
55
|
+
matcher: input.slice(match[1].length + 1),
|
|
56
|
+
selector: (s, body) => shouldAdd(body) && `${s}::${match[1]}`
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
function shouldAdd(entires) {
|
|
61
|
+
return !entires.find((i) => i[0] === CONTROL_BYPASS_PSEUDO) || void 0;
|
|
62
|
+
}
|
|
63
|
+
const variantPseudoClasses = {
|
|
64
|
+
match: (input) => {
|
|
65
|
+
let match = input.match(PseudoClassesRE);
|
|
66
|
+
if (match) {
|
|
67
|
+
const pseudo = PseudoClasses[match[1]] || match[1];
|
|
68
|
+
return {
|
|
69
|
+
matcher: input.slice(match[1].length + 1),
|
|
70
|
+
selector: (s, body) => shouldAdd(body) && `${s}:${pseudo}`
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
match = input.match(PseudoClassesNotRE);
|
|
74
|
+
if (match) {
|
|
75
|
+
const pseudo = PseudoClasses[match[1]] || match[1];
|
|
76
|
+
return {
|
|
77
|
+
matcher: input.slice(match[1].length + 5),
|
|
78
|
+
selector: (s, body) => shouldAdd(body) && `${s}:not(:${pseudo})`
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
match = input.match(PseudoClassesGroupRE);
|
|
82
|
+
if (match) {
|
|
83
|
+
const pseudo = PseudoClasses[match[1]] || match[1];
|
|
84
|
+
return {
|
|
85
|
+
matcher: input.slice(match[1].length + 7),
|
|
86
|
+
selector: (s, body) => shouldAdd(body) && s.includes(".group:") ? s.replace(/\.group:/, `.group:${pseudo}:`) : `.group:${pseudo} ${s}`
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
match = input.match(PseudoClassesPeerRE);
|
|
90
|
+
if (match) {
|
|
91
|
+
const pseudo = PseudoClasses[match[1]] || match[1];
|
|
92
|
+
return {
|
|
93
|
+
matcher: input.slice(match[1].length + 6),
|
|
94
|
+
selector: (s, body) => shouldAdd(body) && s.includes(".peer:") ? s.replace(/\.peer:/, `.peer:${pseudo}:`) : `.peer:${pseudo} ~ ${s}`
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
multiPass: true
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export { CONTROL_BYPASS_PSEUDO as C, PseudoClasses as P, variantPseudoElements as a, variantPseudoClasses as v };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const variantMatcher = (name, selector) => {
|
|
4
|
+
const length = name.length + 1;
|
|
5
|
+
const re = new RegExp(`^${name}[:-]`);
|
|
6
|
+
return (input) => {
|
|
7
|
+
return input.match(re) ? {
|
|
8
|
+
matcher: input.slice(length),
|
|
9
|
+
selector
|
|
10
|
+
} : void 0;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.variantMatcher = variantMatcher;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const variantMatcher = (name, selector) => {
|
|
2
|
+
const length = name.length + 1;
|
|
3
|
+
const re = new RegExp(`^${name}[:-]`);
|
|
4
|
+
return (input) => {
|
|
5
|
+
return input.match(re) ? {
|
|
6
|
+
matcher: input.slice(length),
|
|
7
|
+
selector
|
|
8
|
+
} : void 0;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { variantMatcher as v };
|
package/dist/colors.cjs
ADDED
package/dist/colors.d.ts
ADDED
package/dist/colors.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as colors } from './chunks/colors.mjs';
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const _default = require('./chunks/default.cjs');
|
|
6
|
+
const _default$1 = require('./chunks/default2.cjs');
|
|
7
|
+
const _default$2 = require('./chunks/default3.cjs');
|
|
8
|
+
const colors = require('./chunks/colors.cjs');
|
|
9
|
+
require('@unocss/core');
|
|
10
|
+
require('./chunks/index.cjs');
|
|
11
|
+
require('./chunks/pseudo.cjs');
|
|
12
|
+
require('./chunks/variants.cjs');
|
|
13
|
+
|
|
14
|
+
const presetMini = (options = {}) => ({
|
|
15
|
+
name: "@unocss/preset-mini",
|
|
16
|
+
theme: _default.theme,
|
|
17
|
+
rules: _default$1.rules,
|
|
18
|
+
variants: [
|
|
19
|
+
..._default$2.variants,
|
|
20
|
+
...options.dark === "media" ? _default$2.variantColorsMedia : _default$2.variantColorsClass
|
|
21
|
+
],
|
|
22
|
+
options
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.theme = _default.theme;
|
|
26
|
+
exports.colors = colors.colors;
|
|
27
|
+
exports["default"] = presetMini;
|
|
28
|
+
exports.presetMini = presetMini;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Preset } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './types-7963d0b3';
|
|
3
|
+
export { T as Theme } from './types-7963d0b3';
|
|
4
|
+
export { t as theme } from './default-c7c67d23';
|
|
5
|
+
export { c as colors } from './colors-d6b5a5b4';
|
|
6
|
+
|
|
7
|
+
interface PresetMiniOptions {
|
|
8
|
+
/**
|
|
9
|
+
* @default 'class'
|
|
10
|
+
*/
|
|
11
|
+
dark?: 'class' | 'media';
|
|
12
|
+
}
|
|
13
|
+
declare const presetMini: (options?: PresetMiniOptions) => Preset<Theme>;
|
|
14
|
+
|
|
15
|
+
export { PresetMiniOptions, presetMini as default, presetMini };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as theme } from './chunks/default.mjs';
|
|
2
|
+
export { t as theme } from './chunks/default.mjs';
|
|
3
|
+
import { r as rules } from './chunks/default2.mjs';
|
|
4
|
+
import { v as variants, a as variantColorsMedia, b as variantColorsClass } from './chunks/default3.mjs';
|
|
5
|
+
export { c as colors } from './chunks/colors.mjs';
|
|
6
|
+
import '@unocss/core';
|
|
7
|
+
import './chunks/index.mjs';
|
|
8
|
+
import './chunks/pseudo.mjs';
|
|
9
|
+
import './chunks/variants.mjs';
|
|
10
|
+
|
|
11
|
+
const presetMini = (options = {}) => ({
|
|
12
|
+
name: "@unocss/preset-mini",
|
|
13
|
+
theme,
|
|
14
|
+
rules,
|
|
15
|
+
variants: [
|
|
16
|
+
...variants,
|
|
17
|
+
...options.dark === "media" ? variantColorsMedia : variantColorsClass
|
|
18
|
+
],
|
|
19
|
+
options
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export { presetMini as default, presetMini };
|
package/dist/rules.cjs
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const _default = require('./chunks/default2.cjs');
|
|
6
|
+
require('@unocss/core');
|
|
7
|
+
require('./chunks/index.cjs');
|
|
8
|
+
require('./chunks/pseudo.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.alignContents = _default.alignContents;
|
|
13
|
+
exports.alignItems = _default.alignItems;
|
|
14
|
+
exports.alignSelfs = _default.alignSelfs;
|
|
15
|
+
exports.appearance = _default.appearance;
|
|
16
|
+
exports.appearances = _default.appearances;
|
|
17
|
+
exports.aspectRatio = _default.aspectRatio;
|
|
18
|
+
exports.bgColors = _default.bgColors;
|
|
19
|
+
exports.borderColors = _default.borderColors;
|
|
20
|
+
exports.borderRadius = _default.borderRadius;
|
|
21
|
+
exports.borderSizes = _default.borderSizes;
|
|
22
|
+
exports.borderStyles = _default.borderStyles;
|
|
23
|
+
exports.borders = _default.borders;
|
|
24
|
+
exports.boxShadows = _default.boxShadows;
|
|
25
|
+
exports.boxSizing = _default.boxSizing;
|
|
26
|
+
exports.breaks = _default.breaks;
|
|
27
|
+
exports.colorResolver = _default.colorResolver;
|
|
28
|
+
exports.contents = _default.contents;
|
|
29
|
+
exports.cssVariables = _default.cssVariables;
|
|
30
|
+
exports.cursors = _default.cursors;
|
|
31
|
+
exports.displays = _default.displays;
|
|
32
|
+
exports.fillColors = _default.fillColors;
|
|
33
|
+
exports.flex = _default.flex;
|
|
34
|
+
exports.floats = _default.floats;
|
|
35
|
+
exports.fontSizes = _default.fontSizes;
|
|
36
|
+
exports.fontSmoothings = _default.fontSmoothings;
|
|
37
|
+
exports.fontStyles = _default.fontStyles;
|
|
38
|
+
exports.fontWeights = _default.fontWeights;
|
|
39
|
+
exports.fonts = _default.fonts;
|
|
40
|
+
exports.fontsFamilies = _default.fontsFamilies;
|
|
41
|
+
exports.gaps = _default.gaps;
|
|
42
|
+
exports.grids = _default.grids;
|
|
43
|
+
exports.insets = _default.insets;
|
|
44
|
+
exports.justifies = _default.justifies;
|
|
45
|
+
exports.justifyItems = _default.justifyItems;
|
|
46
|
+
exports.justifySelfs = _default.justifySelfs;
|
|
47
|
+
exports.leadings = _default.leadings;
|
|
48
|
+
exports.margins = _default.margins;
|
|
49
|
+
exports.opacity = _default.opacity;
|
|
50
|
+
exports.orders = _default.orders;
|
|
51
|
+
exports.outline = _default.outline;
|
|
52
|
+
exports.overflows = _default.overflows;
|
|
53
|
+
exports.paddings = _default.paddings;
|
|
54
|
+
exports.parseColorUtil = _default.parseColorUtil;
|
|
55
|
+
exports.placeContents = _default.placeContents;
|
|
56
|
+
exports.placeItems = _default.placeItems;
|
|
57
|
+
exports.placeSelfs = _default.placeSelfs;
|
|
58
|
+
exports.placeholder = _default.placeholder;
|
|
59
|
+
exports.pointerEvents = _default.pointerEvents;
|
|
60
|
+
exports.positions = _default.positions;
|
|
61
|
+
exports.questionMark = _default.questionMark;
|
|
62
|
+
exports.resizes = _default.resizes;
|
|
63
|
+
exports.ringColors = _default.ringColors;
|
|
64
|
+
exports.ringOffsetColors = _default.ringOffsetColors;
|
|
65
|
+
exports.rings = _default.rings;
|
|
66
|
+
exports.rules = _default.rules;
|
|
67
|
+
exports.sizes = _default.sizes;
|
|
68
|
+
exports.tabSizes = _default.tabSizes;
|
|
69
|
+
exports.textAligns = _default.textAligns;
|
|
70
|
+
exports.textColors = _default.textColors;
|
|
71
|
+
exports.textDecorationColors = _default.textDecorationColors;
|
|
72
|
+
exports.textDecorationLengths = _default.textDecorationLengths;
|
|
73
|
+
exports.textDecorationOffsets = _default.textDecorationOffsets;
|
|
74
|
+
exports.textDecorationStyles = _default.textDecorationStyles;
|
|
75
|
+
exports.textDecorations = _default.textDecorations;
|
|
76
|
+
exports.textIndents = _default.textIndents;
|
|
77
|
+
exports.textOverflows = _default.textOverflows;
|
|
78
|
+
exports.textShadows = _default.textShadows;
|
|
79
|
+
exports.textStrokeColors = _default.textStrokeColors;
|
|
80
|
+
exports.textStrokeWidths = _default.textStrokeWidths;
|
|
81
|
+
exports.textTransforms = _default.textTransforms;
|
|
82
|
+
exports.trackings = _default.trackings;
|
|
83
|
+
exports.transforms = _default.transforms;
|
|
84
|
+
exports.transitions = _default.transitions;
|
|
85
|
+
exports.userSelects = _default.userSelects;
|
|
86
|
+
exports.varEmpty = _default.varEmpty;
|
|
87
|
+
exports.verticalAligns = _default.verticalAligns;
|
|
88
|
+
exports.whitespaces = _default.whitespaces;
|
|
89
|
+
exports.wordSpacings = _default.wordSpacings;
|
|
90
|
+
exports.zIndexes = _default.zIndexes;
|
package/dist/rules.d.ts
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Rule, RuleContext } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './types-7963d0b3';
|
|
3
|
+
|
|
4
|
+
declare const verticalAligns: Rule[];
|
|
5
|
+
declare const textAligns: Rule[];
|
|
6
|
+
|
|
7
|
+
declare const outline: Rule[];
|
|
8
|
+
declare const appearance: Rule[];
|
|
9
|
+
declare const placeholder: Rule[];
|
|
10
|
+
|
|
11
|
+
declare const borderSizes: Rule[];
|
|
12
|
+
declare const borderRadius: Rule[];
|
|
13
|
+
declare const borderStyles: Rule[];
|
|
14
|
+
declare const borders: Rule<{}>[];
|
|
15
|
+
|
|
16
|
+
declare const parseColorUtil: (body: string, theme: Theme) => {
|
|
17
|
+
opacity: string;
|
|
18
|
+
name: string;
|
|
19
|
+
no: string;
|
|
20
|
+
color: string | undefined;
|
|
21
|
+
rgba: [number, number, number, number] | [number, number, number] | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
declare const colorResolver: (attribute: string, varName: string) => ([, body]: string[], { theme }: RuleContext<Theme>) => {
|
|
24
|
+
[x: string]: string | number;
|
|
25
|
+
} | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* @example op10 op-30 opacity-100
|
|
28
|
+
*/
|
|
29
|
+
declare const opacity: Rule[];
|
|
30
|
+
/**
|
|
31
|
+
* @example c-red color-red5 text-red-300
|
|
32
|
+
*/
|
|
33
|
+
declare const textColors: Rule[];
|
|
34
|
+
declare const textDecorationColors: Rule[];
|
|
35
|
+
declare const textStrokeColors: Rule[];
|
|
36
|
+
declare const bgColors: Rule[];
|
|
37
|
+
declare const borderColors: Rule[];
|
|
38
|
+
declare const ringColors: Rule[];
|
|
39
|
+
declare const ringOffsetColors: Rule[];
|
|
40
|
+
declare const fillColors: Rule[];
|
|
41
|
+
|
|
42
|
+
declare const rules: Rule[];
|
|
43
|
+
|
|
44
|
+
declare const flex: Rule[];
|
|
45
|
+
|
|
46
|
+
declare const gaps: Rule[];
|
|
47
|
+
|
|
48
|
+
declare const grids: Rule[];
|
|
49
|
+
|
|
50
|
+
declare const overflows: Rule[];
|
|
51
|
+
|
|
52
|
+
declare const positions: Rule[];
|
|
53
|
+
declare const justifies: Rule[];
|
|
54
|
+
declare const orders: Rule[];
|
|
55
|
+
declare const justifyItems: Rule[];
|
|
56
|
+
declare const justifySelfs: Rule[];
|
|
57
|
+
declare const alignContents: Rule[];
|
|
58
|
+
declare const alignItems: Rule[];
|
|
59
|
+
declare const alignSelfs: Rule[];
|
|
60
|
+
declare const placeContents: Rule[];
|
|
61
|
+
declare const placeItems: Rule[];
|
|
62
|
+
declare const placeSelfs: Rule[];
|
|
63
|
+
declare const insets: Rule[];
|
|
64
|
+
declare const floats: Rule[];
|
|
65
|
+
declare const zIndexes: Rule[];
|
|
66
|
+
declare const boxSizing: Rule[];
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Used for debugging, only avaliable in development mode.
|
|
70
|
+
*
|
|
71
|
+
* @example `?` / `where`
|
|
72
|
+
*/
|
|
73
|
+
declare const questionMark: Rule[];
|
|
74
|
+
|
|
75
|
+
declare const rings: Rule<Theme>[];
|
|
76
|
+
|
|
77
|
+
declare const boxShadows: Rule<Theme>[];
|
|
78
|
+
|
|
79
|
+
declare const sizes: Rule<Theme>[];
|
|
80
|
+
declare const aspectRatio: Rule[];
|
|
81
|
+
|
|
82
|
+
declare const paddings: Rule[];
|
|
83
|
+
declare const margins: Rule[];
|
|
84
|
+
|
|
85
|
+
declare const varEmpty = "var(--un-empty,/*!*/ /*!*/)";
|
|
86
|
+
declare const displays: Rule[];
|
|
87
|
+
declare const appearances: Rule[];
|
|
88
|
+
declare const cursors: Rule[];
|
|
89
|
+
declare const pointerEvents: Rule[];
|
|
90
|
+
declare const resizes: Rule[];
|
|
91
|
+
declare const userSelects: Rule[];
|
|
92
|
+
declare const whitespaces: Rule[];
|
|
93
|
+
declare const contents: Rule[];
|
|
94
|
+
declare const breaks: Rule[];
|
|
95
|
+
declare const textOverflows: Rule[];
|
|
96
|
+
declare const textTransforms: Rule[];
|
|
97
|
+
declare const textDecorations: Rule[];
|
|
98
|
+
declare const textDecorationStyles: Rule[];
|
|
99
|
+
declare const fontStyles: Rule[];
|
|
100
|
+
declare const fontSmoothings: Rule[];
|
|
101
|
+
|
|
102
|
+
declare const transforms: Rule[];
|
|
103
|
+
|
|
104
|
+
declare const transitions: Rule[];
|
|
105
|
+
|
|
106
|
+
declare const fontsFamilies: Rule<Theme>[];
|
|
107
|
+
declare const fontSizes: Rule<Theme>[];
|
|
108
|
+
declare const fontWeights: Rule[];
|
|
109
|
+
declare const leadings: Rule<Theme>[];
|
|
110
|
+
declare const trackings: Rule<Theme>[];
|
|
111
|
+
declare const wordSpacings: Rule<Theme>[];
|
|
112
|
+
declare const tabSizes: Rule<Theme>[];
|
|
113
|
+
declare const textDecorationLengths: Rule<Theme>[];
|
|
114
|
+
declare const textDecorationOffsets: Rule<Theme>[];
|
|
115
|
+
declare const textIndents: Rule<Theme>[];
|
|
116
|
+
declare const textStrokeWidths: Rule<Theme>[];
|
|
117
|
+
declare const textShadows: Rule<Theme>[];
|
|
118
|
+
declare const fonts: Rule<Theme>[];
|
|
119
|
+
|
|
120
|
+
declare const cssVariables: Rule[];
|
|
121
|
+
|
|
122
|
+
export { alignContents, alignItems, alignSelfs, appearance, appearances, aspectRatio, bgColors, borderColors, borderRadius, borderSizes, borderStyles, borders, boxShadows, boxSizing, breaks, colorResolver, contents, cssVariables, cursors, displays, fillColors, flex, floats, fontSizes, fontSmoothings, fontStyles, fontWeights, fonts, fontsFamilies, gaps, grids, insets, justifies, justifyItems, justifySelfs, leadings, margins, opacity, orders, outline, overflows, paddings, parseColorUtil, placeContents, placeItems, placeSelfs, placeholder, pointerEvents, positions, questionMark, resizes, ringColors, ringOffsetColors, rings, rules, sizes, tabSizes, textAligns, textColors, textDecorationColors, textDecorationLengths, textDecorationOffsets, textDecorationStyles, textDecorations, textIndents, textOverflows, textShadows, textStrokeColors, textStrokeWidths, textTransforms, trackings, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, wordSpacings, zIndexes };
|
package/dist/rules.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { E as alignContents, F as alignItems, G as alignSelfs, a as appearance, X as appearances, S as aspectRatio, l as bgColors, m as borderColors, c as borderRadius, b as borderSizes, d as borderStyles, e as borders, Q as boxShadows, N as boxSizing, a2 as breaks, g as colorResolver, a1 as contents, ao as cssVariables, Y as cursors, W as displays, s as fillColors, u as flex, L as floats, ac as fontSizes, a8 as fontSmoothings, a7 as fontStyles, ad as fontWeights, an as fonts, ab as fontsFamilies, w as gaps, x as grids, K as insets, A as justifies, C as justifyItems, D as justifySelfs, ae as leadings, U as margins, h as opacity, B as orders, o as outline, y as overflows, T as paddings, f as parseColorUtil, H as placeContents, I as placeItems, J as placeSelfs, p as placeholder, Z as pointerEvents, z as positions, O as questionMark, _ as resizes, n as ringColors, q as ringOffsetColors, P as rings, r as rules, R as sizes, ah as tabSizes, t as textAligns, i as textColors, j as textDecorationColors, ai as textDecorationLengths, aj as textDecorationOffsets, a6 as textDecorationStyles, a5 as textDecorations, ak as textIndents, a3 as textOverflows, am as textShadows, k as textStrokeColors, al as textStrokeWidths, a4 as textTransforms, af as trackings, a9 as transforms, aa as transitions, $ as userSelects, V as varEmpty, v as verticalAligns, a0 as whitespaces, ag as wordSpacings, M as zIndexes } from './chunks/default2.mjs';
|
|
2
|
+
import '@unocss/core';
|
|
3
|
+
import './chunks/index.mjs';
|
|
4
|
+
import './chunks/pseudo.mjs';
|
package/dist/theme.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const colors = require('./chunks/colors.cjs');
|
|
6
|
+
const _default = require('./chunks/default.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.colors = colors.colors;
|
|
11
|
+
exports.baseSize = _default.baseSize;
|
|
12
|
+
exports.blur = _default.blur;
|
|
13
|
+
exports.borderRadius = _default.borderRadius;
|
|
14
|
+
exports.boxShadow = _default.boxShadow;
|
|
15
|
+
exports.breakpoints = _default.breakpoints;
|
|
16
|
+
exports.dropShadow = _default.dropShadow;
|
|
17
|
+
exports.fontFamily = _default.fontFamily;
|
|
18
|
+
exports.fontSize = _default.fontSize;
|
|
19
|
+
exports.height = _default.height;
|
|
20
|
+
exports.letterSpacing = _default.letterSpacing;
|
|
21
|
+
exports.lineHeight = _default.lineHeight;
|
|
22
|
+
exports.maxHeight = _default.maxHeight;
|
|
23
|
+
exports.maxWidth = _default.maxWidth;
|
|
24
|
+
exports.textIndent = _default.textIndent;
|
|
25
|
+
exports.textShadow = _default.textShadow;
|
|
26
|
+
exports.textStrokeWidth = _default.textStrokeWidth;
|
|
27
|
+
exports.theme = _default.theme;
|
|
28
|
+
exports.width = _default.width;
|
|
29
|
+
exports.wordSpacing = _default.wordSpacing;
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export { c as colors } from './colors-d6b5a5b4';
|
|
2
|
+
export { t as theme } from './default-c7c67d23';
|
|
3
|
+
import { T as Theme } from './types-7963d0b3';
|
|
4
|
+
export { T as Theme } from './types-7963d0b3';
|
|
5
|
+
|
|
6
|
+
declare const blur: {
|
|
7
|
+
DEFAULT: string;
|
|
8
|
+
'0': string;
|
|
9
|
+
sm: string;
|
|
10
|
+
md: string;
|
|
11
|
+
lg: string;
|
|
12
|
+
xl: string;
|
|
13
|
+
'2xl': string;
|
|
14
|
+
'3xl': string;
|
|
15
|
+
};
|
|
16
|
+
declare const dropShadow: {
|
|
17
|
+
DEFAULT: string[];
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string[];
|
|
20
|
+
lg: string[];
|
|
21
|
+
xl: string[];
|
|
22
|
+
'2xl': string;
|
|
23
|
+
none: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
declare const fontFamily: {
|
|
27
|
+
sans: string;
|
|
28
|
+
serif: string;
|
|
29
|
+
mono: string;
|
|
30
|
+
};
|
|
31
|
+
declare const fontSize: Theme['fontSize'];
|
|
32
|
+
declare const textIndent: Theme['textIndent'];
|
|
33
|
+
declare const textStrokeWidth: Theme['textStrokeWidth'];
|
|
34
|
+
declare const textShadow: Theme['textShadow'];
|
|
35
|
+
declare const lineHeight: Theme['lineHeight'];
|
|
36
|
+
declare const letterSpacing: Theme['letterSpacing'];
|
|
37
|
+
declare const wordSpacing: Theme['wordSpacing'];
|
|
38
|
+
|
|
39
|
+
declare const breakpoints: {
|
|
40
|
+
sm: string;
|
|
41
|
+
md: string;
|
|
42
|
+
lg: string;
|
|
43
|
+
xl: string;
|
|
44
|
+
'2xl': string;
|
|
45
|
+
};
|
|
46
|
+
declare const borderRadius: {
|
|
47
|
+
DEFAULT: string;
|
|
48
|
+
none: string;
|
|
49
|
+
sm: string;
|
|
50
|
+
md: string;
|
|
51
|
+
lg: string;
|
|
52
|
+
xl: string;
|
|
53
|
+
'2xl': string;
|
|
54
|
+
'3xl': string;
|
|
55
|
+
full: string;
|
|
56
|
+
};
|
|
57
|
+
declare const boxShadow: {
|
|
58
|
+
DEFAULT: string;
|
|
59
|
+
sm: string;
|
|
60
|
+
md: string;
|
|
61
|
+
lg: string;
|
|
62
|
+
xl: string;
|
|
63
|
+
'2xl': string;
|
|
64
|
+
inner: string;
|
|
65
|
+
none: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare const baseSize: {
|
|
69
|
+
xs: string;
|
|
70
|
+
sm: string;
|
|
71
|
+
md: string;
|
|
72
|
+
lg: string;
|
|
73
|
+
xl: string;
|
|
74
|
+
'2xl': string;
|
|
75
|
+
'3xl': string;
|
|
76
|
+
'4xl': string;
|
|
77
|
+
'5xl': string;
|
|
78
|
+
'6xl': string;
|
|
79
|
+
'7xl': string;
|
|
80
|
+
min: string;
|
|
81
|
+
max: string;
|
|
82
|
+
prose: string;
|
|
83
|
+
};
|
|
84
|
+
declare const width: {
|
|
85
|
+
screen: string;
|
|
86
|
+
xs: string;
|
|
87
|
+
sm: string;
|
|
88
|
+
md: string;
|
|
89
|
+
lg: string;
|
|
90
|
+
xl: string;
|
|
91
|
+
'2xl': string;
|
|
92
|
+
'3xl': string;
|
|
93
|
+
'4xl': string;
|
|
94
|
+
'5xl': string;
|
|
95
|
+
'6xl': string;
|
|
96
|
+
'7xl': string;
|
|
97
|
+
min: string;
|
|
98
|
+
max: string;
|
|
99
|
+
prose: string;
|
|
100
|
+
auto: string;
|
|
101
|
+
};
|
|
102
|
+
declare const maxWidth: {
|
|
103
|
+
screen: string;
|
|
104
|
+
xs: string;
|
|
105
|
+
sm: string;
|
|
106
|
+
md: string;
|
|
107
|
+
lg: string;
|
|
108
|
+
xl: string;
|
|
109
|
+
'2xl': string;
|
|
110
|
+
'3xl': string;
|
|
111
|
+
'4xl': string;
|
|
112
|
+
'5xl': string;
|
|
113
|
+
'6xl': string;
|
|
114
|
+
'7xl': string;
|
|
115
|
+
min: string;
|
|
116
|
+
max: string;
|
|
117
|
+
prose: string;
|
|
118
|
+
none: string;
|
|
119
|
+
};
|
|
120
|
+
declare const height: {
|
|
121
|
+
screen: string;
|
|
122
|
+
xs: string;
|
|
123
|
+
sm: string;
|
|
124
|
+
md: string;
|
|
125
|
+
lg: string;
|
|
126
|
+
xl: string;
|
|
127
|
+
'2xl': string;
|
|
128
|
+
'3xl': string;
|
|
129
|
+
'4xl': string;
|
|
130
|
+
'5xl': string;
|
|
131
|
+
'6xl': string;
|
|
132
|
+
'7xl': string;
|
|
133
|
+
min: string;
|
|
134
|
+
max: string;
|
|
135
|
+
prose: string;
|
|
136
|
+
auto: string;
|
|
137
|
+
};
|
|
138
|
+
declare const maxHeight: {
|
|
139
|
+
screen: string;
|
|
140
|
+
xs: string;
|
|
141
|
+
sm: string;
|
|
142
|
+
md: string;
|
|
143
|
+
lg: string;
|
|
144
|
+
xl: string;
|
|
145
|
+
'2xl': string;
|
|
146
|
+
'3xl': string;
|
|
147
|
+
'4xl': string;
|
|
148
|
+
'5xl': string;
|
|
149
|
+
'6xl': string;
|
|
150
|
+
'7xl': string;
|
|
151
|
+
min: string;
|
|
152
|
+
max: string;
|
|
153
|
+
prose: string;
|
|
154
|
+
none: string;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, fontFamily, fontSize, height, letterSpacing, lineHeight, maxHeight, maxWidth, textIndent, textShadow, textStrokeWidth, width, wordSpacing };
|
package/dist/theme.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { c as colors } from './chunks/colors.mjs';
|
|
2
|
+
export { m as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, f as fontFamily, a as fontSize, p as height, h as letterSpacing, l as lineHeight, q as maxHeight, o as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, n as width, w as wordSpacing } from './chunks/default.mjs';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Theme {
|
|
2
|
+
width?: Record<string, string>;
|
|
3
|
+
height?: Record<string, string>;
|
|
4
|
+
maxWidth?: Record<string, string>;
|
|
5
|
+
maxHeight?: Record<string, string>;
|
|
6
|
+
minWidth?: Record<string, string>;
|
|
7
|
+
minHeight?: Record<string, string>;
|
|
8
|
+
borderRadius?: Record<string, string>;
|
|
9
|
+
breakpoints?: Record<string, string>;
|
|
10
|
+
colors?: Record<string, string | Record<string, string>>;
|
|
11
|
+
fontFamily?: Record<string, string>;
|
|
12
|
+
fontSize?: Record<string, [string, string]>;
|
|
13
|
+
lineHeight?: Record<string, string>;
|
|
14
|
+
letterSpacing?: Record<string, string>;
|
|
15
|
+
wordSpacing?: Record<string, string>;
|
|
16
|
+
boxShadow?: Record<string, string>;
|
|
17
|
+
textIndent?: Record<string, string>;
|
|
18
|
+
textShadow?: Record<string, string>;
|
|
19
|
+
textStrokeWidth?: Record<string, string>;
|
|
20
|
+
blur?: Record<string, string>;
|
|
21
|
+
dropShadow?: Record<string, string | string[]>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Theme as T };
|