@zl-ui-kit/theme 0.21.1 → 0.22.1
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/index.js +1 -1
- package/package.json +3 -3
- package/src/generated/theme-blue.css +1 -1
- package/src/generated/theme-dark.css +1 -1
- package/src/generated/theme-light.css +1 -1
- package/src/generated/theme-red-dark.css +1 -1
- package/src/generated/theme-red-light.css +1 -1
- package/src/generated/themes.css +5 -5
- package/src/runtime/api.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1248,7 +1248,7 @@ function buildCssVars(resolved, themeName, baseName = themeName) {
|
|
|
1248
1248
|
decls.push(`--el-bg-color-overlay: ${get("bg-3")};`);
|
|
1249
1249
|
decls.push(`--el-color-white: ${isDark ? "#141414" : "#ffffff"};`);
|
|
1250
1250
|
decls.push(`--el-color-black: ${isDark ? "#ffffff" : "#000000"};`);
|
|
1251
|
-
decls.push(`--el-mask-color: rgb(0, 0, 0, ${isDark ? "0.
|
|
1251
|
+
decls.push(`--el-mask-color: rgb(0, 0, 0, ${isDark ? "0.3" : "0.1"});`);
|
|
1252
1252
|
decls.push(`color-scheme: ${isDark ? "dark" : "light"};`);
|
|
1253
1253
|
decls.push(`--el-border-radius-base: ${get("radius-base")};`);
|
|
1254
1254
|
decls.push(`--el-border-radius-small: ${get("radius-small")};`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ZL UI 主题引擎:内置 5 套主题(light/dark/red-light/red-dark/blue),--zl-* 业务变量 + --el-* Element Plus 变量三层体系,支持运行时自定义主题(defineTheme/setTheme)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"cross-env": "^7.0.3",
|
|
42
42
|
"tsup": "^8.3.5",
|
|
43
43
|
"typescript": "^5.7.3",
|
|
44
|
-
"@jichuang/
|
|
45
|
-
"@jichuang/
|
|
44
|
+
"@jichuang/tsconfig": "1.0.0",
|
|
45
|
+
"@jichuang/eslint-config": "1.0.0"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
@@ -330,7 +330,7 @@ body[data-theme='blue'] {
|
|
|
330
330
|
--el-bg-color-overlay: #FFFFFF;
|
|
331
331
|
--el-color-white: #ffffff;
|
|
332
332
|
--el-color-black: #000000;
|
|
333
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
333
|
+
--el-mask-color: rgb(0, 0, 0, 0.1);
|
|
334
334
|
color-scheme: light;
|
|
335
335
|
--el-border-radius-base: 4px;
|
|
336
336
|
--el-border-radius-small: 2px;
|
|
@@ -330,7 +330,7 @@ body[data-theme='dark'] {
|
|
|
330
330
|
--el-bg-color-overlay: #313E56;
|
|
331
331
|
--el-color-white: #141414;
|
|
332
332
|
--el-color-black: #ffffff;
|
|
333
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
333
|
+
--el-mask-color: rgb(0, 0, 0, 0.3);
|
|
334
334
|
color-scheme: dark;
|
|
335
335
|
--el-border-radius-base: 4px;
|
|
336
336
|
--el-border-radius-small: 2px;
|
|
@@ -330,7 +330,7 @@ body {
|
|
|
330
330
|
--el-bg-color-overlay: #FFFFFF;
|
|
331
331
|
--el-color-white: #ffffff;
|
|
332
332
|
--el-color-black: #000000;
|
|
333
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
333
|
+
--el-mask-color: rgb(0, 0, 0, 0.1);
|
|
334
334
|
color-scheme: light;
|
|
335
335
|
--el-border-radius-base: 4px;
|
|
336
336
|
--el-border-radius-small: 2px;
|
|
@@ -330,7 +330,7 @@ body[data-theme='red-dark'] {
|
|
|
330
330
|
--el-bg-color-overlay: #313E56;
|
|
331
331
|
--el-color-white: #141414;
|
|
332
332
|
--el-color-black: #ffffff;
|
|
333
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
333
|
+
--el-mask-color: rgb(0, 0, 0, 0.3);
|
|
334
334
|
color-scheme: dark;
|
|
335
335
|
--el-border-radius-base: 4px;
|
|
336
336
|
--el-border-radius-small: 2px;
|
|
@@ -330,7 +330,7 @@ body[data-theme='red-light'] {
|
|
|
330
330
|
--el-bg-color-overlay: #FFFFFF;
|
|
331
331
|
--el-color-white: #ffffff;
|
|
332
332
|
--el-color-black: #000000;
|
|
333
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
333
|
+
--el-mask-color: rgb(0, 0, 0, 0.1);
|
|
334
334
|
color-scheme: light;
|
|
335
335
|
--el-border-radius-base: 4px;
|
|
336
336
|
--el-border-radius-small: 2px;
|
package/src/generated/themes.css
CHANGED
|
@@ -330,7 +330,7 @@ body[data-theme='blue'] {
|
|
|
330
330
|
--el-bg-color-overlay: #FFFFFF;
|
|
331
331
|
--el-color-white: #ffffff;
|
|
332
332
|
--el-color-black: #000000;
|
|
333
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
333
|
+
--el-mask-color: rgb(0, 0, 0, 0.1);
|
|
334
334
|
color-scheme: light;
|
|
335
335
|
--el-border-radius-base: 4px;
|
|
336
336
|
--el-border-radius-small: 2px;
|
|
@@ -695,7 +695,7 @@ body[data-theme='dark'] {
|
|
|
695
695
|
--el-bg-color-overlay: #313E56;
|
|
696
696
|
--el-color-white: #141414;
|
|
697
697
|
--el-color-black: #ffffff;
|
|
698
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
698
|
+
--el-mask-color: rgb(0, 0, 0, 0.3);
|
|
699
699
|
color-scheme: dark;
|
|
700
700
|
--el-border-radius-base: 4px;
|
|
701
701
|
--el-border-radius-small: 2px;
|
|
@@ -1047,7 +1047,7 @@ body {
|
|
|
1047
1047
|
--el-bg-color-overlay: #FFFFFF;
|
|
1048
1048
|
--el-color-white: #ffffff;
|
|
1049
1049
|
--el-color-black: #000000;
|
|
1050
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
1050
|
+
--el-mask-color: rgb(0, 0, 0, 0.1);
|
|
1051
1051
|
color-scheme: light;
|
|
1052
1052
|
--el-border-radius-base: 4px;
|
|
1053
1053
|
--el-border-radius-small: 2px;
|
|
@@ -1412,7 +1412,7 @@ body[data-theme='red-dark'] {
|
|
|
1412
1412
|
--el-bg-color-overlay: #313E56;
|
|
1413
1413
|
--el-color-white: #141414;
|
|
1414
1414
|
--el-color-black: #ffffff;
|
|
1415
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
1415
|
+
--el-mask-color: rgb(0, 0, 0, 0.3);
|
|
1416
1416
|
color-scheme: dark;
|
|
1417
1417
|
--el-border-radius-base: 4px;
|
|
1418
1418
|
--el-border-radius-small: 2px;
|
|
@@ -1764,7 +1764,7 @@ body[data-theme='red-light'] {
|
|
|
1764
1764
|
--el-bg-color-overlay: #FFFFFF;
|
|
1765
1765
|
--el-color-white: #ffffff;
|
|
1766
1766
|
--el-color-black: #000000;
|
|
1767
|
-
--el-mask-color: rgb(0, 0, 0, 0.
|
|
1767
|
+
--el-mask-color: rgb(0, 0, 0, 0.1);
|
|
1768
1768
|
color-scheme: light;
|
|
1769
1769
|
--el-border-radius-base: 4px;
|
|
1770
1770
|
--el-border-radius-small: 2px;
|
package/src/runtime/api.ts
CHANGED
|
@@ -128,7 +128,7 @@ function buildCssVars(resolved: Record<string, string>, themeName: string, baseN
|
|
|
128
128
|
decls.push(`--el-bg-color-overlay: ${get('bg-3')};`)
|
|
129
129
|
decls.push(`--el-color-white: ${isDark ? '#141414' : '#ffffff'};`)
|
|
130
130
|
decls.push(`--el-color-black: ${isDark ? '#ffffff' : '#000000'};`)
|
|
131
|
-
decls.push(`--el-mask-color: rgb(0, 0, 0, ${isDark ? '0.
|
|
131
|
+
decls.push(`--el-mask-color: rgb(0, 0, 0, ${isDark ? '0.3' : '0.1'});`)
|
|
132
132
|
decls.push(`color-scheme: ${isDark ? 'dark' : 'light'};`)
|
|
133
133
|
// EP 圆角 ← 形状 token(与内置主题产物同构):`defineTheme({ tokens: { 'radius-base': ... } })`
|
|
134
134
|
// 即可同时驱动 kit 组件与 Element Plus 控件,宿主不必再用 CSS 选择器抢优先级。
|