@yeepay/yee-boss-ui 0.1.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/README.md +155 -0
- package/dist/components/PlatformConfigProvider.vue.d.ts +23 -0
- package/dist/components/form/YeeForm.vue.d.ts +14 -0
- package/dist/components/form/form-api.d.ts +14 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/types.d.ts +28 -0
- package/dist/components/grid/YeeGrid.vue.d.ts +134 -0
- package/dist/components/grid/index.d.ts +4 -0
- package/dist/components/grid/types.d.ts +42 -0
- package/dist/components/grid/use-yee-grid.d.ts +5 -0
- package/dist/components/grid/vxe-init.d.ts +1 -0
- package/dist/components/grid/yee-grid-api.d.ts +18 -0
- package/dist/components/page/YeePage.vue.d.ts +25 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/types.d.ts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +479 -0
- package/dist/style.css +1 -0
- package/dist/tailwind-preset.d.ts +198 -0
- package/dist/tailwind-preset.js +155 -0
- package/dist/theme/ant-theme.d.ts +3 -0
- package/dist/theme/context.d.ts +4 -0
- package/dist/theme/css-variables.d.ts +3 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/tokens.d.ts +4 -0
- package/dist/theme/types.d.ts +68 -0
- package/dist/theme.css +126 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +8 -0
- package/dist/tokens-Dj_CxJpe.js +235 -0
- package/package.json +77 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
type TailwindOpacity = {
|
|
2
|
+
opacityValue?: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const bossUiTailwindPreset: {
|
|
5
|
+
readonly darkMode: readonly ["class", "[data-theme=\"dark\"]"];
|
|
6
|
+
readonly theme: {
|
|
7
|
+
readonly extend: {
|
|
8
|
+
readonly borderRadius: {
|
|
9
|
+
readonly DEFAULT: "var(--yee-radius)";
|
|
10
|
+
readonly lg: "var(--yee-radius-lg)";
|
|
11
|
+
readonly sm: "var(--yee-radius-sm)";
|
|
12
|
+
};
|
|
13
|
+
readonly boxShadow: {
|
|
14
|
+
readonly DEFAULT: "var(--yee-shadow)";
|
|
15
|
+
readonly secondary: "var(--yee-shadow-secondary)";
|
|
16
|
+
};
|
|
17
|
+
readonly colors: {
|
|
18
|
+
readonly accent: {
|
|
19
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
20
|
+
readonly dark: ({ opacityValue }?: TailwindOpacity) => string;
|
|
21
|
+
readonly darker: ({ opacityValue }?: TailwindOpacity) => string;
|
|
22
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
23
|
+
readonly hover: ({ opacityValue }?: TailwindOpacity) => string;
|
|
24
|
+
readonly lighter: ({ opacityValue }?: TailwindOpacity) => string;
|
|
25
|
+
};
|
|
26
|
+
readonly background: {
|
|
27
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
28
|
+
readonly deep: ({ opacityValue }?: TailwindOpacity) => string;
|
|
29
|
+
};
|
|
30
|
+
readonly border: ({ opacityValue }?: TailwindOpacity) => string;
|
|
31
|
+
readonly card: {
|
|
32
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
33
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
34
|
+
};
|
|
35
|
+
readonly destructive: {
|
|
36
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
37
|
+
readonly background: ({ opacityValue }?: TailwindOpacity) => string;
|
|
38
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
39
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
40
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
41
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
42
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
43
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
44
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
45
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
46
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
47
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
48
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
49
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
50
|
+
};
|
|
51
|
+
readonly foreground: {
|
|
52
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
53
|
+
readonly disabled: ({ opacityValue }?: TailwindOpacity) => string;
|
|
54
|
+
};
|
|
55
|
+
readonly green: {
|
|
56
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
57
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
58
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
59
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
60
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
61
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
62
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
63
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
64
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
65
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
66
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
67
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
68
|
+
};
|
|
69
|
+
readonly header: ({ opacityValue }?: TailwindOpacity) => string;
|
|
70
|
+
readonly heavy: {
|
|
71
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
72
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
73
|
+
};
|
|
74
|
+
readonly info: {
|
|
75
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
76
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
77
|
+
};
|
|
78
|
+
readonly input: {
|
|
79
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
80
|
+
readonly background: ({ opacityValue }?: TailwindOpacity) => string;
|
|
81
|
+
readonly placeholder: ({ opacityValue }?: TailwindOpacity) => string;
|
|
82
|
+
};
|
|
83
|
+
readonly muted: {
|
|
84
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
85
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
86
|
+
};
|
|
87
|
+
readonly overlay: {
|
|
88
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
89
|
+
readonly content: ({ opacityValue }?: TailwindOpacity) => string;
|
|
90
|
+
};
|
|
91
|
+
readonly popover: {
|
|
92
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
93
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
94
|
+
};
|
|
95
|
+
readonly primary: {
|
|
96
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
97
|
+
readonly active: ({ opacityValue }?: TailwindOpacity) => string;
|
|
98
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
99
|
+
readonly hover: ({ opacityValue }?: TailwindOpacity) => string;
|
|
100
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
101
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
102
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
103
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
104
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
105
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
106
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
107
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
108
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
109
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
110
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
111
|
+
};
|
|
112
|
+
readonly red: {
|
|
113
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
114
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
115
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
116
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
117
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
118
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
119
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
120
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
121
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
122
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
123
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
124
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
125
|
+
};
|
|
126
|
+
readonly ring: ({ opacityValue }?: TailwindOpacity) => string;
|
|
127
|
+
readonly secondary: {
|
|
128
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
129
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
130
|
+
};
|
|
131
|
+
readonly sidebar: {
|
|
132
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
133
|
+
readonly deep: ({ opacityValue }?: TailwindOpacity) => string;
|
|
134
|
+
};
|
|
135
|
+
readonly success: {
|
|
136
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
137
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
138
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
139
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
140
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
141
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
142
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
143
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
144
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
145
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
146
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
147
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
148
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
149
|
+
};
|
|
150
|
+
readonly warning: {
|
|
151
|
+
readonly DEFAULT: ({ opacityValue }?: TailwindOpacity) => string;
|
|
152
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
153
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
154
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
155
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
156
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
157
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
158
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
159
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
160
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
161
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
162
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
163
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
164
|
+
};
|
|
165
|
+
readonly yellow: {
|
|
166
|
+
readonly foreground: ({ opacityValue }?: TailwindOpacity) => string;
|
|
167
|
+
readonly 50: ({ opacityValue }?: TailwindOpacity) => string;
|
|
168
|
+
readonly 100: ({ opacityValue }?: TailwindOpacity) => string;
|
|
169
|
+
readonly 200: ({ opacityValue }?: TailwindOpacity) => string;
|
|
170
|
+
readonly 300: ({ opacityValue }?: TailwindOpacity) => string;
|
|
171
|
+
readonly 400: ({ opacityValue }?: TailwindOpacity) => string;
|
|
172
|
+
readonly 500: ({ opacityValue }?: TailwindOpacity) => string;
|
|
173
|
+
readonly 600: ({ opacityValue }?: TailwindOpacity) => string;
|
|
174
|
+
readonly 700: ({ opacityValue }?: TailwindOpacity) => string;
|
|
175
|
+
readonly 800: ({ opacityValue }?: TailwindOpacity) => string;
|
|
176
|
+
readonly 900: ({ opacityValue }?: TailwindOpacity) => string;
|
|
177
|
+
readonly 950: ({ opacityValue }?: TailwindOpacity) => string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
readonly fontFamily: {
|
|
181
|
+
readonly sans: readonly ["var(--yee-font-family)"];
|
|
182
|
+
};
|
|
183
|
+
readonly fontSize: {
|
|
184
|
+
readonly base: "var(--yee-font-size)";
|
|
185
|
+
readonly lg: "var(--yee-font-size-lg)";
|
|
186
|
+
readonly root: "var(--yee-font-size-root)";
|
|
187
|
+
readonly sm: "var(--yee-font-size-sm)";
|
|
188
|
+
};
|
|
189
|
+
readonly lineHeight: {
|
|
190
|
+
readonly normal: "var(--yee-line-height)";
|
|
191
|
+
};
|
|
192
|
+
readonly zIndex: {
|
|
193
|
+
readonly popup: "var(--yee-popup-z-index)";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export default bossUiTailwindPreset;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
function c(r, n) {
|
|
2
|
+
return n === void 0 ? r : `color-mix(in srgb, ${r} calc(${n} * 100%), transparent)`;
|
|
3
|
+
}
|
|
4
|
+
function e(r) {
|
|
5
|
+
return ({ opacityValue: n } = {}) => c(`var(${r})`, n);
|
|
6
|
+
}
|
|
7
|
+
function o(r, n, u) {
|
|
8
|
+
return ({ opacityValue: s } = {}) => {
|
|
9
|
+
const i = `color-mix(in srgb, var(${r}) ${u}%, ${n})`;
|
|
10
|
+
return c(i, s);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function d(r) {
|
|
14
|
+
return {
|
|
15
|
+
50: o(r, "white", 10),
|
|
16
|
+
100: o(r, "white", 20),
|
|
17
|
+
200: o(r, "white", 40),
|
|
18
|
+
300: o(r, "white", 60),
|
|
19
|
+
400: o(r, "white", 80),
|
|
20
|
+
500: e(r),
|
|
21
|
+
600: o(r, "black", 90),
|
|
22
|
+
700: o(r, "black", 80),
|
|
23
|
+
800: o(r, "black", 70),
|
|
24
|
+
900: o(r, "black", 60),
|
|
25
|
+
950: o(r, "black", 50)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const t = d("--yee-destructive"), g = d("--yee-primary"), y = d("--yee-success"), a = d("--yee-warning"), f = {
|
|
29
|
+
darkMode: ["class", '[data-theme="dark"]'],
|
|
30
|
+
theme: {
|
|
31
|
+
extend: {
|
|
32
|
+
borderRadius: {
|
|
33
|
+
DEFAULT: "var(--yee-radius)",
|
|
34
|
+
lg: "var(--yee-radius-lg)",
|
|
35
|
+
sm: "var(--yee-radius-sm)"
|
|
36
|
+
},
|
|
37
|
+
boxShadow: {
|
|
38
|
+
DEFAULT: "var(--yee-shadow)",
|
|
39
|
+
secondary: "var(--yee-shadow-secondary)"
|
|
40
|
+
},
|
|
41
|
+
colors: {
|
|
42
|
+
accent: {
|
|
43
|
+
DEFAULT: e("--yee-accent"),
|
|
44
|
+
dark: e("--yee-accent-dark"),
|
|
45
|
+
darker: e("--yee-accent-darker"),
|
|
46
|
+
foreground: e("--yee-accent-foreground"),
|
|
47
|
+
hover: e("--yee-accent-hover"),
|
|
48
|
+
lighter: e("--yee-accent-lighter")
|
|
49
|
+
},
|
|
50
|
+
background: {
|
|
51
|
+
DEFAULT: e("--yee-background"),
|
|
52
|
+
deep: e("--yee-background-deep")
|
|
53
|
+
},
|
|
54
|
+
border: e("--yee-border"),
|
|
55
|
+
card: {
|
|
56
|
+
DEFAULT: e("--yee-card"),
|
|
57
|
+
foreground: e("--yee-card-foreground")
|
|
58
|
+
},
|
|
59
|
+
destructive: {
|
|
60
|
+
...t,
|
|
61
|
+
DEFAULT: e("--yee-destructive"),
|
|
62
|
+
background: e("--yee-destructive-background"),
|
|
63
|
+
foreground: e("--yee-destructive-foreground")
|
|
64
|
+
},
|
|
65
|
+
foreground: {
|
|
66
|
+
DEFAULT: e("--yee-foreground"),
|
|
67
|
+
disabled: e("--yee-foreground-disabled")
|
|
68
|
+
},
|
|
69
|
+
green: {
|
|
70
|
+
...y,
|
|
71
|
+
foreground: e("--yee-success-foreground")
|
|
72
|
+
},
|
|
73
|
+
header: e("--yee-header"),
|
|
74
|
+
heavy: {
|
|
75
|
+
DEFAULT: e("--yee-heavy"),
|
|
76
|
+
foreground: e("--yee-heavy-foreground")
|
|
77
|
+
},
|
|
78
|
+
info: {
|
|
79
|
+
DEFAULT: e("--yee-info"),
|
|
80
|
+
foreground: e("--yee-info-foreground")
|
|
81
|
+
},
|
|
82
|
+
input: {
|
|
83
|
+
DEFAULT: e("--yee-input"),
|
|
84
|
+
background: e("--yee-input-background"),
|
|
85
|
+
placeholder: e("--yee-input-placeholder")
|
|
86
|
+
},
|
|
87
|
+
muted: {
|
|
88
|
+
DEFAULT: e("--yee-muted"),
|
|
89
|
+
foreground: e("--yee-muted-foreground")
|
|
90
|
+
},
|
|
91
|
+
overlay: {
|
|
92
|
+
DEFAULT: e("--yee-overlay"),
|
|
93
|
+
content: e("--yee-overlay-content")
|
|
94
|
+
},
|
|
95
|
+
popover: {
|
|
96
|
+
DEFAULT: e("--yee-popover"),
|
|
97
|
+
foreground: e("--yee-popover-foreground")
|
|
98
|
+
},
|
|
99
|
+
primary: {
|
|
100
|
+
...g,
|
|
101
|
+
DEFAULT: e("--yee-primary"),
|
|
102
|
+
active: e("--yee-primary-active"),
|
|
103
|
+
foreground: e("--yee-primary-foreground"),
|
|
104
|
+
hover: e("--yee-primary-hover")
|
|
105
|
+
},
|
|
106
|
+
red: {
|
|
107
|
+
...t,
|
|
108
|
+
foreground: e("--yee-destructive-foreground")
|
|
109
|
+
},
|
|
110
|
+
ring: e("--yee-ring"),
|
|
111
|
+
secondary: {
|
|
112
|
+
DEFAULT: e("--yee-secondary"),
|
|
113
|
+
foreground: e("--yee-secondary-foreground")
|
|
114
|
+
},
|
|
115
|
+
sidebar: {
|
|
116
|
+
DEFAULT: e("--yee-sidebar"),
|
|
117
|
+
deep: e("--yee-sidebar-deep")
|
|
118
|
+
},
|
|
119
|
+
success: {
|
|
120
|
+
...y,
|
|
121
|
+
DEFAULT: e("--yee-success"),
|
|
122
|
+
foreground: e("--yee-success-foreground")
|
|
123
|
+
},
|
|
124
|
+
warning: {
|
|
125
|
+
...a,
|
|
126
|
+
DEFAULT: e("--yee-warning"),
|
|
127
|
+
foreground: e("--yee-warning-foreground")
|
|
128
|
+
},
|
|
129
|
+
yellow: {
|
|
130
|
+
...a,
|
|
131
|
+
foreground: e("--yee-warning-foreground")
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
fontFamily: {
|
|
135
|
+
sans: ["var(--yee-font-family)"]
|
|
136
|
+
},
|
|
137
|
+
fontSize: {
|
|
138
|
+
base: "var(--yee-font-size)",
|
|
139
|
+
lg: "var(--yee-font-size-lg)",
|
|
140
|
+
root: "var(--yee-font-size-root)",
|
|
141
|
+
sm: "var(--yee-font-size-sm)"
|
|
142
|
+
},
|
|
143
|
+
lineHeight: {
|
|
144
|
+
normal: "var(--yee-line-height)"
|
|
145
|
+
},
|
|
146
|
+
zIndex: {
|
|
147
|
+
popup: "var(--yee-popup-z-index)"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
export {
|
|
153
|
+
f as bossUiTailwindPreset,
|
|
154
|
+
f as default
|
|
155
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { toAntDesignTheme } from './ant-theme';
|
|
2
|
+
export { toPlatformCssVariables } from './css-variables';
|
|
3
|
+
export { darkThemeTokens, lightThemeTokens, resolvePlatformTheme, } from './tokens';
|
|
4
|
+
export type { PlatformTheme, PlatformThemeMode, PlatformThemeTokens, ResolvedPlatformTheme, } from './types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PlatformTheme, PlatformThemeTokens, ResolvedPlatformTheme } from './types';
|
|
2
|
+
export declare const lightThemeTokens: Readonly<PlatformThemeTokens>;
|
|
3
|
+
export declare const darkThemeTokens: Readonly<PlatformThemeTokens>;
|
|
4
|
+
export declare function resolvePlatformTheme(theme?: PlatformTheme): ResolvedPlatformTheme;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export type PlatformThemeMode = 'light' | 'dark';
|
|
2
|
+
export interface PlatformThemeTokens {
|
|
3
|
+
accent: string;
|
|
4
|
+
accentDark: string;
|
|
5
|
+
accentDarker: string;
|
|
6
|
+
accentForeground: string;
|
|
7
|
+
accentHover: string;
|
|
8
|
+
accentLighter: string;
|
|
9
|
+
background: string;
|
|
10
|
+
backgroundDeep: string;
|
|
11
|
+
border: string;
|
|
12
|
+
borderSecondary: string;
|
|
13
|
+
card: string;
|
|
14
|
+
cardForeground: string;
|
|
15
|
+
controlHeight: number;
|
|
16
|
+
destructive: string;
|
|
17
|
+
destructiveBackground: string;
|
|
18
|
+
destructiveForeground: string;
|
|
19
|
+
fontFamily: string;
|
|
20
|
+
fontSize: number;
|
|
21
|
+
fontSizeLG: number;
|
|
22
|
+
fontSizeRoot: number;
|
|
23
|
+
fontSizeSM: number;
|
|
24
|
+
foreground: string;
|
|
25
|
+
foregroundDisabled: string;
|
|
26
|
+
header: string;
|
|
27
|
+
heavy: string;
|
|
28
|
+
heavyForeground: string;
|
|
29
|
+
info: string;
|
|
30
|
+
infoForeground: string;
|
|
31
|
+
input: string;
|
|
32
|
+
inputBackground: string;
|
|
33
|
+
inputPlaceholder: string;
|
|
34
|
+
lineHeight: number;
|
|
35
|
+
muted: string;
|
|
36
|
+
mutedForeground: string;
|
|
37
|
+
overlay: string;
|
|
38
|
+
overlayContent: string;
|
|
39
|
+
popover: string;
|
|
40
|
+
popoverForeground: string;
|
|
41
|
+
popupZIndex: number;
|
|
42
|
+
primary: string;
|
|
43
|
+
primaryActive: string;
|
|
44
|
+
primaryForeground: string;
|
|
45
|
+
primaryHover: string;
|
|
46
|
+
radius: number;
|
|
47
|
+
radiusLG: number;
|
|
48
|
+
radiusSM: number;
|
|
49
|
+
ring: string;
|
|
50
|
+
secondary: string;
|
|
51
|
+
secondaryForeground: string;
|
|
52
|
+
shadow: string;
|
|
53
|
+
shadowSecondary: string;
|
|
54
|
+
sidebar: string;
|
|
55
|
+
sidebarDeep: string;
|
|
56
|
+
success: string;
|
|
57
|
+
successForeground: string;
|
|
58
|
+
warning: string;
|
|
59
|
+
warningForeground: string;
|
|
60
|
+
}
|
|
61
|
+
export interface PlatformTheme {
|
|
62
|
+
mode?: PlatformThemeMode;
|
|
63
|
+
tokens?: Partial<PlatformThemeTokens>;
|
|
64
|
+
}
|
|
65
|
+
export interface ResolvedPlatformTheme {
|
|
66
|
+
readonly mode: PlatformThemeMode;
|
|
67
|
+
readonly tokens: Readonly<PlatformThemeTokens>;
|
|
68
|
+
}
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
[data-theme='light'] {
|
|
3
|
+
--yee-accent: hsl(240 5% 96%);
|
|
4
|
+
--yee-accent-dark: hsl(216 14% 93%);
|
|
5
|
+
--yee-accent-darker: hsl(216 11% 91%);
|
|
6
|
+
--yee-accent-foreground: hsl(240 6% 10%);
|
|
7
|
+
--yee-accent-hover: hsl(200 10% 90%);
|
|
8
|
+
--yee-accent-lighter: hsl(240 0% 98%);
|
|
9
|
+
--yee-background: hsl(0 0% 100%);
|
|
10
|
+
--yee-background-deep: hsl(216 20.11% 95.47%);
|
|
11
|
+
--yee-border: hsl(240 5.9% 90%);
|
|
12
|
+
--yee-border-secondary: hsl(240 5% 94%);
|
|
13
|
+
--yee-card: hsl(0 0% 100%);
|
|
14
|
+
--yee-card-foreground: hsl(222.2 84% 4.9%);
|
|
15
|
+
--yee-control-height: 32px;
|
|
16
|
+
--yee-destructive: hsl(359.33 100% 65.1%);
|
|
17
|
+
--yee-destructive-background: hsl(4 100% 97%);
|
|
18
|
+
--yee-destructive-foreground: hsl(0 0% 98%);
|
|
19
|
+
--yee-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
20
|
+
--yee-font-size: 14px;
|
|
21
|
+
--yee-font-size-lg: 16px;
|
|
22
|
+
--yee-font-size-root: 16px;
|
|
23
|
+
--yee-font-size-sm: 12px;
|
|
24
|
+
--yee-foreground: hsl(210 6% 21%);
|
|
25
|
+
--yee-foreground-disabled: hsl(210 6% 21% / 35%);
|
|
26
|
+
--yee-header: hsl(0 0% 100%);
|
|
27
|
+
--yee-heavy: hsl(192 9.43% 89.61%);
|
|
28
|
+
--yee-heavy-foreground: hsl(240 6% 10%);
|
|
29
|
+
--yee-info: hsl(240 5% 96%);
|
|
30
|
+
--yee-info-foreground: hsl(220 4% 58%);
|
|
31
|
+
--yee-input: hsl(240 5.88% 90%);
|
|
32
|
+
--yee-input-background: hsl(0 0% 100%);
|
|
33
|
+
--yee-input-placeholder: hsl(217 10.6% 65%);
|
|
34
|
+
--yee-line-height: 1.5715;
|
|
35
|
+
--yee-muted: hsl(240 4.8% 95.9%);
|
|
36
|
+
--yee-muted-foreground: hsl(240 3.8% 46.1%);
|
|
37
|
+
--yee-overlay: hsl(0 0% 0% / 45%);
|
|
38
|
+
--yee-overlay-content: hsl(0 0% 95% / 45%);
|
|
39
|
+
--yee-popover: hsl(0 0% 100%);
|
|
40
|
+
--yee-popover-foreground: hsl(222.2 84% 4.9%);
|
|
41
|
+
--yee-popup-z-index: 999;
|
|
42
|
+
--yee-primary: hsl(212 100% 45%);
|
|
43
|
+
--yee-primary-active: hsl(212 100% 36%);
|
|
44
|
+
--yee-primary-foreground: hsl(0 0% 98%);
|
|
45
|
+
--yee-primary-hover: hsl(212 100% 55%);
|
|
46
|
+
--yee-radius: 8px;
|
|
47
|
+
--yee-radius-lg: 12px;
|
|
48
|
+
--yee-radius-sm: 4px;
|
|
49
|
+
--yee-ring: hsl(212 100% 45%);
|
|
50
|
+
--yee-secondary: hsl(240 5% 96%);
|
|
51
|
+
--yee-secondary-foreground: hsl(240 6% 10%);
|
|
52
|
+
--yee-shadow: 0 6px 16px 0 rgb(0 0 0 / 8%);
|
|
53
|
+
--yee-shadow-secondary: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%);
|
|
54
|
+
--yee-sidebar: hsl(0 0% 100%);
|
|
55
|
+
--yee-sidebar-deep: hsl(0 0% 100%);
|
|
56
|
+
--yee-success: hsl(144 57% 58%);
|
|
57
|
+
--yee-success-foreground: hsl(0 0% 98%);
|
|
58
|
+
--yee-warning: hsl(42 84% 61%);
|
|
59
|
+
--yee-warning-foreground: hsl(0 0% 98%);
|
|
60
|
+
|
|
61
|
+
accent-color: var(--yee-primary);
|
|
62
|
+
color-scheme: light;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
html.dark,
|
|
66
|
+
[data-theme='dark'] {
|
|
67
|
+
--yee-accent: hsl(216 5% 19%);
|
|
68
|
+
--yee-accent-dark: hsl(240 0% 22%);
|
|
69
|
+
--yee-accent-darker: hsl(240 0% 26%);
|
|
70
|
+
--yee-accent-foreground: hsl(0 0% 98%);
|
|
71
|
+
--yee-accent-hover: hsl(216 5% 24%);
|
|
72
|
+
--yee-accent-lighter: hsl(216 5% 12%);
|
|
73
|
+
--yee-background: hsl(222.34 10.43% 12.27%);
|
|
74
|
+
--yee-background-deep: hsl(220 13.06% 9%);
|
|
75
|
+
--yee-border: hsl(240 3.7% 22%);
|
|
76
|
+
--yee-border-secondary: hsl(240 3.7% 18%);
|
|
77
|
+
--yee-card: hsl(222.34 10.43% 12.27%);
|
|
78
|
+
--yee-card-foreground: hsl(210 40% 98%);
|
|
79
|
+
--yee-control-height: 32px;
|
|
80
|
+
--yee-destructive: hsl(359.21 68.47% 56.47%);
|
|
81
|
+
--yee-destructive-background: hsl(353 41% 12%);
|
|
82
|
+
--yee-destructive-foreground: hsl(0 0% 98%);
|
|
83
|
+
--yee-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
84
|
+
--yee-font-size: 14px;
|
|
85
|
+
--yee-font-size-lg: 16px;
|
|
86
|
+
--yee-font-size-root: 16px;
|
|
87
|
+
--yee-font-size-sm: 12px;
|
|
88
|
+
--yee-foreground: hsl(0 0% 95%);
|
|
89
|
+
--yee-foreground-disabled: hsl(0 0% 95% / 30%);
|
|
90
|
+
--yee-header: hsl(222.34 10.43% 12.27%);
|
|
91
|
+
--yee-heavy: hsl(216 5% 24%);
|
|
92
|
+
--yee-heavy-foreground: hsl(0 0% 98%);
|
|
93
|
+
--yee-info: hsl(180 1.54% 12.75%);
|
|
94
|
+
--yee-info-foreground: hsl(220 4% 58%);
|
|
95
|
+
--yee-input: hsl(0 0% 100% / 10%);
|
|
96
|
+
--yee-input-background: hsl(0 0% 100% / 5%);
|
|
97
|
+
--yee-input-placeholder: hsl(218 11% 65%);
|
|
98
|
+
--yee-line-height: 1.5715;
|
|
99
|
+
--yee-muted: hsl(240 3.7% 15.9%);
|
|
100
|
+
--yee-muted-foreground: hsl(240 5% 64.9%);
|
|
101
|
+
--yee-overlay: hsl(0 0% 0% / 40%);
|
|
102
|
+
--yee-overlay-content: hsl(0 0% 0% / 40%);
|
|
103
|
+
--yee-popover: hsl(0 0% 14.2%);
|
|
104
|
+
--yee-popover-foreground: hsl(210 40% 98%);
|
|
105
|
+
--yee-popup-z-index: 999;
|
|
106
|
+
--yee-primary: hsl(212 100% 45%);
|
|
107
|
+
--yee-primary-active: hsl(212 100% 65%);
|
|
108
|
+
--yee-primary-foreground: hsl(0 0% 98%);
|
|
109
|
+
--yee-primary-hover: hsl(212 100% 55%);
|
|
110
|
+
--yee-radius: 8px;
|
|
111
|
+
--yee-radius-lg: 12px;
|
|
112
|
+
--yee-radius-sm: 4px;
|
|
113
|
+
--yee-ring: hsl(212 100% 55%);
|
|
114
|
+
--yee-secondary: hsl(240 5% 17%);
|
|
115
|
+
--yee-secondary-foreground: hsl(0 0% 98%);
|
|
116
|
+
--yee-shadow: 0 6px 16px 0 rgb(0 0 0 / 32%);
|
|
117
|
+
--yee-shadow-secondary: 0 3px 6px -4px rgb(0 0 0 / 48%), 0 6px 16px 0 rgb(0 0 0 / 32%);
|
|
118
|
+
--yee-sidebar: hsl(222.34 10.43% 12.27%);
|
|
119
|
+
--yee-sidebar-deep: hsl(220 13.06% 9%);
|
|
120
|
+
--yee-success: hsl(144 57% 58%);
|
|
121
|
+
--yee-success-foreground: hsl(0 0% 98%);
|
|
122
|
+
--yee-warning: hsl(42 84% 61%);
|
|
123
|
+
--yee-warning-foreground: hsl(0 0% 98%);
|
|
124
|
+
|
|
125
|
+
color-scheme: dark;
|
|
126
|
+
}
|
package/dist/theme.d.ts
ADDED