@veltra/styles 1.2.34 → 1.3.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/normalize/normalize.css +1 -1
- package/dist/theme/component-css-vars.js +19 -13
- package/dist/theme/component-css-vars.js.map +1 -1
- package/dist/theme/helper.d.ts +3 -1
- package/dist/theme/helper.js +5 -1
- package/dist/theme/helper.js.map +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/theme/presets/dark.js +25 -23
- package/dist/theme/presets/dark.js.map +1 -1
- package/dist/theme/presets/glass.js +9 -7
- package/dist/theme/presets/glass.js.map +1 -1
- package/dist/theme/presets/hero.js +7 -5
- package/dist/theme/presets/hero.js.map +1 -1
- package/dist/theme/presets/light.js +35 -26
- package/dist/theme/presets/light.js.map +1 -1
- package/dist/theme/presets/shadcn.js +5 -3
- package/dist/theme/presets/shadcn.js.map +1 -1
- package/dist/theme/type.d.ts +10 -1
- package/dist/theme/ui-theme.js +21 -8
- package/dist/theme/ui-theme.js.map +1 -1
- package/package.json +3 -3
- package/src/normalize/normalize.scss +1 -1
- package/src/theme/__test__/ui-theme.test.ts +30 -1
- package/src/theme/component-css-vars.ts +19 -13
- package/src/theme/helper.ts +5 -0
- package/src/theme/presets/dark.ts +28 -19
- package/src/theme/presets/glass.ts +14 -5
- package/src/theme/presets/hero.ts +7 -5
- package/src/theme/presets/light.ts +38 -19
- package/src/theme/presets/shadcn.ts +11 -2
- package/src/theme/type.ts +17 -0
- package/src/theme/ui-theme.ts +28 -12
|
@@ -10,10 +10,11 @@ function themeTokenVar(basename, ...nodes) {
|
|
|
10
10
|
const T = themeTokenVar;
|
|
11
11
|
/** 亮色(及与暗色相同的尺寸类)下组件 token */
|
|
12
12
|
const componentCssVarsLight = {
|
|
13
|
-
"--u-
|
|
14
|
-
"--u-table-
|
|
13
|
+
"--u-focus-ring": `0 0 0 3px ${T("color", "primary", "a", "28")}`,
|
|
14
|
+
"--u-table-border-color": T("border", "color"),
|
|
15
|
+
"--u-table-header-bg": T("bg-color", "hover"),
|
|
15
16
|
"--u-table-header-color": T("text-color", "title"),
|
|
16
|
-
"--u-table-stripe-bg": "
|
|
17
|
+
"--u-table-stripe-bg": T("bg-color", "middle"),
|
|
17
18
|
"--u-table-stripe-color": "inherit",
|
|
18
19
|
"--u-table-hover-bg": T("bg-color", "hover"),
|
|
19
20
|
"--u-table-hover-color": "inherit",
|
|
@@ -21,10 +22,10 @@ const componentCssVarsLight = {
|
|
|
21
22
|
"--u-table-current-color": "inherit",
|
|
22
23
|
"--u-table-checked-bg": T("color", "primary", "light-9"),
|
|
23
24
|
"--u-table-checked-color": "inherit",
|
|
24
|
-
"--u-nav-color": "
|
|
25
|
-
"--u-nav-hover-bg": "
|
|
25
|
+
"--u-nav-color": T("text-color", "title"),
|
|
26
|
+
"--u-nav-hover-bg": T("text-color", "title", "a", "8"),
|
|
26
27
|
"--u-nav-hover-color": T("text-color", "title"),
|
|
27
|
-
"--u-nav-active-bg": "
|
|
28
|
+
"--u-nav-active-bg": T("color", "primary", "a", "10"),
|
|
28
29
|
"--u-nav-active-color": T("color", "primary", "dark", "1"),
|
|
29
30
|
"--u-nav-height-small": "32px",
|
|
30
31
|
"--u-nav-height-default": "36px",
|
|
@@ -87,26 +88,31 @@ const componentCssVarsLight = {
|
|
|
87
88
|
"--u-tag-info-border": T("color", "info"),
|
|
88
89
|
"--u-file-picker-hover-bg": T("color", "primary", "light", "9"),
|
|
89
90
|
"--u-card-header-bg": "rgba(0, 0, 0, 0.015)",
|
|
90
|
-
"--u-card-action-bg": "rgba(0, 0, 0, 0.015)"
|
|
91
|
+
"--u-card-action-bg": "rgba(0, 0, 0, 0.015)",
|
|
92
|
+
"--u-card-padding-small": "8px",
|
|
93
|
+
"--u-card-padding-default": "12px",
|
|
94
|
+
"--u-card-padding-large": "16px",
|
|
95
|
+
"--u-card-radius": T("radius", "large")
|
|
91
96
|
};
|
|
92
97
|
/** 暗色下组件 token(含与亮色相同的尺寸项,保证暗色 html 块自洽) */
|
|
93
98
|
const componentCssVarsDark = {
|
|
94
99
|
...componentCssVarsLight,
|
|
95
|
-
"--u-
|
|
96
|
-
"--u-table-
|
|
100
|
+
"--u-focus-ring": `0 0 0 3px ${T("color", "primary", "a", "35")}`,
|
|
101
|
+
"--u-table-border-color": T("border", "color"),
|
|
102
|
+
"--u-table-header-bg": T("bg-color", "hover"),
|
|
97
103
|
"--u-table-header-color": T("text-color", "main"),
|
|
98
|
-
"--u-table-stripe-bg": "
|
|
104
|
+
"--u-table-stripe-bg": T("bg-color", "middle"),
|
|
99
105
|
"--u-table-stripe-color": T("text-color", "main"),
|
|
100
|
-
"--u-table-hover-bg": "
|
|
106
|
+
"--u-table-hover-bg": T("text-color", "title", "a", "5"),
|
|
101
107
|
"--u-table-hover-color": T("text-color", "title"),
|
|
102
108
|
"--u-table-current-bg": T("bg-color", "hover"),
|
|
103
109
|
"--u-table-current-color": "inherit",
|
|
104
110
|
"--u-table-checked-bg": T("color", "primary", "dark", "1"),
|
|
105
111
|
"--u-table-checked-color": "inherit",
|
|
106
112
|
"--u-nav-color": T("text-color", "main"),
|
|
107
|
-
"--u-nav-hover-bg": "
|
|
113
|
+
"--u-nav-hover-bg": T("text-color", "title", "a", "8"),
|
|
108
114
|
"--u-nav-hover-color": T("text-color", "title"),
|
|
109
|
-
"--u-nav-active-bg": "
|
|
115
|
+
"--u-nav-active-bg": T("color", "primary", "a", "16"),
|
|
110
116
|
"--u-nav-active-color": T("text-color", "white"),
|
|
111
117
|
"--u-nav-bg-color": T("bg-color", "middle"),
|
|
112
118
|
"--u-radio-border": "#595959",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-css-vars.js","names":[],"sources":["../../src/theme/component-css-vars.ts"],"sourcesContent":["/**\n * 桌面组件级 `--u-*` token,与内置主题一起在 `UITheme.injectBuiltInThemes` 中注入 `html`。\n * 修改此处即可在 TS 侧统一调整组件外观,无需在各组件 `style.scss` 重复声明。\n */\n\n/** 与 SCSS `fn.use-var($basename, $nodes...)` 输出一致 */\nexport function themeTokenVar(basename: string, ...nodes: Array<string | number>): string {\n const suffix = nodes.length ? `-${nodes.map(String).join('-')}` : ''\n return `var(--u-${basename}${suffix})`\n}\n\nconst T = themeTokenVar\n\n/** 亮色(及与暗色相同的尺寸类)下组件 token */\nexport const componentCssVarsLight: Record<string, string> = {\n '--u-table-border-color': '#e9e9e9',\n '--u-table-header-bg': '#f4f5f7',\n '--u-table-header-color': T('text-color', 'title'),\n '--u-table-stripe-bg': '#f8fafc',\n '--u-table-stripe-color': 'inherit',\n '--u-table-hover-bg': T('bg-color', 'hover'),\n '--u-table-hover-color': 'inherit',\n '--u-table-current-bg': T('bg-color', 'hover'),\n '--u-table-current-color': 'inherit',\n '--u-table-checked-bg': T('color', 'primary', 'light-9'),\n '--u-table-checked-color': 'inherit',\n '--u-nav-color': '#0f172a',\n '--u-nav-hover-bg': 'rgba(148, 163, 184, 0.12)',\n '--u-nav-hover-color': T('text-color', 'title'),\n '--u-nav-active-bg': 'rgba(59, 130, 246, 0.12)',\n '--u-nav-active-color': T('color', 'primary', 'dark', '1'),\n '--u-nav-height-small': '32px',\n '--u-nav-height-default': '36px',\n '--u-nav-height-large': '40px',\n '--u-nav-bg-color': T('bg-color', 'top'),\n '--u-nav-bg-image': 'none',\n '--u-nav-rail-width': '56px',\n '--u-nav-rail-labeled-width': '72px',\n '--u-collapse-title-color': T('text-color', 'main'),\n '--u-tag-small': '20px',\n '--u-tag-default': '24px',\n '--u-tag-large': '28px',\n '--u-switch-height-small': '18px',\n '--u-switch-height-default': '20px',\n '--u-switch-height-large': '24px',\n '--u-breadcrumb-small': '20px',\n '--u-breadcrumb-default': '22px',\n '--u-breadcrumb-large': '24px',\n\n // ─── Button (default & plain states) ───\n '--u-button-default-bg': T('bg-color', 'top'),\n '--u-button-default-border': T('border', 'color'),\n '--u-button-default-color': T('text-color', 'main'),\n '--u-button-default-hover-bg': T('bg-color', 'hover'),\n '--u-button-default-hover-border': T('border', 'color'),\n '--u-button-primary-plain-bg': T('color', 'primary', 'light', '9'),\n '--u-button-primary-plain-shadow': T('color', 'primary', 'light', '5'),\n '--u-button-success-plain-bg': T('color', 'success', 'light', '9'),\n '--u-button-success-plain-shadow': T('color', 'success', 'light', '5'),\n '--u-button-warning-plain-bg': T('color', 'warning', 'light', '9'),\n '--u-button-warning-plain-shadow': T('color', 'warning', 'light', '5'),\n '--u-button-danger-plain-bg': T('color', 'danger', 'light', '9'),\n '--u-button-danger-plain-shadow': T('color', 'danger', 'light', '5'),\n '--u-button-info-plain-bg': T('color', 'info', 'light', '9'),\n '--u-button-info-plain-shadow': T('color', 'info', 'light', '5'),\n\n // ─── Tree selection ───\n '--u-tree-node-selected-bg': T('color', 'primary', 'light', '9'),\n '--u-tree-node-selected-color': T('color', 'primary'),\n\n // ─── Cascade option active ───\n '--u-cascade-node-active-bg': T('color', 'primary', 'light', '9'),\n '--u-cascade-node-active-color': T('color', 'primary'),\n\n // ─── Expression Editor Chip ───\n '--u-expression-editor-chip-bg': T('color', 'primary', 'light', '9'),\n '--u-expression-editor-chip-color': T('color', 'primary'),\n\n // ─── Paginator active buttons ───\n '--u-paginator-btn-hover-bg': T('color', 'primary', 'light', '9'),\n '--u-paginator-btn-hover-color': T('text-color', 'title'),\n '--u-paginator-btn-active-bg': T('color', 'primary', 'light', '9'),\n '--u-paginator-btn-active-color': T('color', 'primary'),\n\n // ─── Tabs List background ───\n '--u-tabs-bar-bg': T('bg-color', 'hover'),\n '--u-tabs-active-bg': T('bg-color', 'top'),\n\n // ─── Tag Component Colors ───\n '--u-tag-primary-bg': T('color', 'primary', 'light', '9'),\n '--u-tag-primary-color': T('color', 'primary'),\n '--u-tag-primary-border': T('color', 'primary'),\n '--u-tag-success-bg': T('color', 'success', 'light', '9'),\n '--u-tag-success-color': T('color', 'success'),\n '--u-tag-success-border': T('color', 'success'),\n '--u-tag-warning-bg': T('color', 'warning', 'light', '9'),\n '--u-tag-warning-color': T('color', 'warning'),\n '--u-tag-warning-border': T('color', 'warning'),\n '--u-tag-danger-bg': T('color', 'danger', 'light', '9'),\n '--u-tag-danger-color': T('color', 'danger'),\n '--u-tag-danger-border': T('color', 'danger'),\n '--u-tag-info-bg': T('color', 'info', 'light', '9'),\n '--u-tag-info-color': T('color', 'info'),\n '--u-tag-info-border': T('color', 'info'),\n\n // ─── File Picker Colors ───\n '--u-file-picker-hover-bg': T('color', 'primary', 'light', '9'),\n '--u-card-header-bg': 'rgba(0, 0, 0, 0.015)',\n '--u-card-action-bg': 'rgba(0, 0, 0, 0.015)'\n}\n\n/** 暗色下组件 token(含与亮色相同的尺寸项,保证暗色 html 块自洽) */\nexport const componentCssVarsDark: Record<string, string> = {\n ...componentCssVarsLight,\n '--u-table-border-color': '#404040',\n '--u-table-header-bg': '#2a2a2a',\n '--u-table-header-color': T('text-color', 'main'),\n '--u-table-stripe-bg': '#2a2a2a',\n '--u-table-stripe-color': T('text-color', 'main'),\n '--u-table-hover-bg': '#333333',\n '--u-table-hover-color': T('text-color', 'title'),\n '--u-table-current-bg': T('bg-color', 'hover'),\n '--u-table-current-color': 'inherit',\n '--u-table-checked-bg': T('color', 'primary', 'dark', '1'),\n '--u-table-checked-color': 'inherit',\n '--u-nav-color': T('text-color', 'main'),\n '--u-nav-hover-bg': 'rgba(148, 163, 184, 0.14)',\n '--u-nav-hover-color': T('text-color', 'title'),\n '--u-nav-active-bg': 'rgba(96, 165, 250, 0.2)',\n '--u-nav-active-color': T('text-color', 'white'),\n '--u-nav-bg-color': T('bg-color', 'middle'),\n '--u-radio-border': '#595959',\n '--u-checkbox-border': '#595959',\n\n // ─── Button (plain & text colors in dark mode) ───\n '--u-button-primary-plain-bg': T('color', 'primary', 'dark', '9'),\n '--u-button-primary-plain-shadow': T('color', 'primary', 'dark', '7'),\n '--u-button-success-plain-bg': T('color', 'success', 'dark', '9'),\n '--u-button-success-plain-shadow': T('color', 'success', 'dark', '7'),\n '--u-button-warning-plain-bg': T('color', 'warning', 'dark', '9'),\n '--u-button-warning-plain-shadow': T('color', 'warning', 'dark', '7'),\n '--u-button-danger-plain-bg': T('color', 'danger', 'dark', '9'),\n '--u-button-danger-plain-shadow': T('color', 'danger', 'dark', '7'),\n '--u-button-info-plain-bg': T('color', 'info', 'dark', '9'),\n '--u-button-info-plain-shadow': T('color', 'info', 'dark', '7'),\n\n // ─── Tree selection ───\n '--u-tree-node-selected-bg': T('color', 'primary', 'dark', '9'),\n '--u-tree-node-selected-color': T('color', 'primary'),\n\n // ─── Cascade option active ───\n '--u-cascade-node-active-bg': T('color', 'primary', 'dark', '9'),\n '--u-cascade-node-active-color': T('color', 'primary'),\n\n // ─── Expression Editor Chip ───\n '--u-expression-editor-chip-bg': T('color', 'primary', 'dark', '9'),\n '--u-expression-editor-chip-color': T('color', 'primary'),\n\n // ─── Paginator active buttons ───\n '--u-paginator-btn-hover-bg': T('color', 'primary', 'dark', '9'),\n '--u-paginator-btn-hover-color': T('color', 'primary'),\n '--u-paginator-btn-active-bg': T('color', 'primary', 'dark', '9'),\n '--u-paginator-btn-active-color': T('color', 'primary'),\n\n // ─── Tabs List background (improved dark contrast) ───\n '--u-tabs-bar-bg': T('bg-color', 'bottom'),\n '--u-tabs-active-bg': T('bg-color', 'top'),\n\n // ─── Tag Component Colors ───\n '--u-tag-primary-bg': T('color', 'primary', 'dark', '9'),\n '--u-tag-primary-color': T('color', 'primary'),\n '--u-tag-primary-border': T('color', 'primary'),\n '--u-tag-success-bg': T('color', 'success', 'dark', '9'),\n '--u-tag-success-color': T('color', 'success'),\n '--u-tag-success-border': T('color', 'success'),\n '--u-tag-warning-bg': T('color', 'warning', 'dark', '9'),\n '--u-tag-warning-color': T('color', 'warning'),\n '--u-tag-warning-border': T('color', 'warning'),\n '--u-tag-danger-bg': T('color', 'danger', 'dark', '9'),\n '--u-tag-danger-color': T('color', 'danger'),\n '--u-tag-danger-border': T('color', 'danger'),\n '--u-tag-info-bg': T('color', 'info', 'dark', '9'),\n '--u-tag-info-color': T('color', 'info'),\n '--u-tag-info-border': T('color', 'info'),\n\n // ─── File Picker Colors ───\n '--u-file-picker-hover-bg': T('color', 'primary', 'dark', '9'),\n '--u-card-header-bg': 'rgba(255, 255, 255, 0.015)',\n '--u-card-action-bg': 'rgba(255, 255, 255, 0.015)'\n}\n\nfunction recordToDeclList(record: Record<string, string>): string[] {\n return Object.entries(record).map(([k, v]) => `${k}: ${v}`)\n}\n\nexport const componentCssVarsLightDecls: string[] = recordToDeclList(componentCssVarsLight)\n\nexport const componentCssVarsDarkDecls: string[] = recordToDeclList(componentCssVarsDark)\n"],"mappings":";;;;;;AAMA,SAAgB,cAAc,UAAkB,GAAG,OAAuC;CAExF,OAAO,WAAW,WADH,MAAM,SAAS,IAAI,MAAM,IAAI,MAAM,CAAC,CAAC,KAAK,GAAG,MAAM,GAC9B;AACtC;AAEA,MAAM,IAAI;;AAGV,MAAa,wBAAgD;CAC3D,0BAA0B;CAC1B,uBAAuB;CACvB,0BAA0B,EAAE,cAAc,OAAO;CACjD,uBAAuB;CACvB,0BAA0B;CAC1B,sBAAsB,EAAE,YAAY,OAAO;CAC3C,yBAAyB;CACzB,wBAAwB,EAAE,YAAY,OAAO;CAC7C,2BAA2B;CAC3B,wBAAwB,EAAE,SAAS,WAAW,SAAS;CACvD,2BAA2B;CAC3B,iBAAiB;CACjB,oBAAoB;CACpB,uBAAuB,EAAE,cAAc,OAAO;CAC9C,qBAAqB;CACrB,wBAAwB,EAAE,SAAS,WAAW,QAAQ,GAAG;CACzD,wBAAwB;CACxB,0BAA0B;CAC1B,wBAAwB;CACxB,oBAAoB,EAAE,YAAY,KAAK;CACvC,oBAAoB;CACpB,sBAAsB;CACtB,8BAA8B;CAC9B,4BAA4B,EAAE,cAAc,MAAM;CAClD,iBAAiB;CACjB,mBAAmB;CACnB,iBAAiB;CACjB,2BAA2B;CAC3B,6BAA6B;CAC7B,2BAA2B;CAC3B,wBAAwB;CACxB,0BAA0B;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uBAAuB,EAAE,SAAS,MAAM;CAGxC,4BAA4B,EAAE,SAAS,WAAW,QAAQ,GAAG;CAC7D,sBAAsB;CACtB,sBAAsB;AACxB;AAEA,SAAS,iBAAiB,QAA0C;CAClE,OAAO,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,EAAE,IAAI,GAAG;AAC5D;AAEA,MAAa,6BAAuC,iBAAiB,qBAAqB;AAE1F,MAAa,4BAAsC,iBAAiB,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"component-css-vars.js","names":[],"sources":["../../src/theme/component-css-vars.ts"],"sourcesContent":["/**\n * 桌面组件级 `--u-*` token,与内置主题一起在 `UITheme.injectBuiltInThemes` 中注入 `html`。\n * 修改此处即可在 TS 侧统一调整组件外观,无需在各组件 `style.scss` 重复声明。\n */\n\n/** 与 SCSS `fn.use-var($basename, $nodes...)` 输出一致 */\nexport function themeTokenVar(basename: string, ...nodes: Array<string | number>): string {\n const suffix = nodes.length ? `-${nodes.map(String).join('-')}` : ''\n return `var(--u-${basename}${suffix})`\n}\n\nconst T = themeTokenVar\n\n/** 亮色(及与暗色相同的尺寸类)下组件 token */\nexport const componentCssVarsLight: Record<string, string> = {\n '--u-focus-ring': `0 0 0 3px ${T('color', 'primary', 'a', '28')}`,\n '--u-table-border-color': T('border', 'color'),\n '--u-table-header-bg': T('bg-color', 'hover'),\n '--u-table-header-color': T('text-color', 'title'),\n '--u-table-stripe-bg': T('bg-color', 'middle'),\n '--u-table-stripe-color': 'inherit',\n '--u-table-hover-bg': T('bg-color', 'hover'),\n '--u-table-hover-color': 'inherit',\n '--u-table-current-bg': T('bg-color', 'hover'),\n '--u-table-current-color': 'inherit',\n '--u-table-checked-bg': T('color', 'primary', 'light-9'),\n '--u-table-checked-color': 'inherit',\n '--u-nav-color': T('text-color', 'title'),\n '--u-nav-hover-bg': T('text-color', 'title', 'a', '8'),\n '--u-nav-hover-color': T('text-color', 'title'),\n '--u-nav-active-bg': T('color', 'primary', 'a', '10'),\n '--u-nav-active-color': T('color', 'primary', 'dark', '1'),\n '--u-nav-height-small': '32px',\n '--u-nav-height-default': '36px',\n '--u-nav-height-large': '40px',\n '--u-nav-bg-color': T('bg-color', 'top'),\n '--u-nav-bg-image': 'none',\n '--u-nav-rail-width': '56px',\n '--u-nav-rail-labeled-width': '72px',\n '--u-collapse-title-color': T('text-color', 'main'),\n '--u-tag-small': '20px',\n '--u-tag-default': '24px',\n '--u-tag-large': '28px',\n '--u-switch-height-small': '18px',\n '--u-switch-height-default': '20px',\n '--u-switch-height-large': '24px',\n '--u-breadcrumb-small': '20px',\n '--u-breadcrumb-default': '22px',\n '--u-breadcrumb-large': '24px',\n\n // ─── Button (default & plain states) ───\n '--u-button-default-bg': T('bg-color', 'top'),\n '--u-button-default-border': T('border', 'color'),\n '--u-button-default-color': T('text-color', 'main'),\n '--u-button-default-hover-bg': T('bg-color', 'hover'),\n '--u-button-default-hover-border': T('border', 'color'),\n '--u-button-primary-plain-bg': T('color', 'primary', 'light', '9'),\n '--u-button-primary-plain-shadow': T('color', 'primary', 'light', '5'),\n '--u-button-success-plain-bg': T('color', 'success', 'light', '9'),\n '--u-button-success-plain-shadow': T('color', 'success', 'light', '5'),\n '--u-button-warning-plain-bg': T('color', 'warning', 'light', '9'),\n '--u-button-warning-plain-shadow': T('color', 'warning', 'light', '5'),\n '--u-button-danger-plain-bg': T('color', 'danger', 'light', '9'),\n '--u-button-danger-plain-shadow': T('color', 'danger', 'light', '5'),\n '--u-button-info-plain-bg': T('color', 'info', 'light', '9'),\n '--u-button-info-plain-shadow': T('color', 'info', 'light', '5'),\n\n // ─── Tree selection ───\n '--u-tree-node-selected-bg': T('color', 'primary', 'light', '9'),\n '--u-tree-node-selected-color': T('color', 'primary'),\n\n // ─── Cascade option active ───\n '--u-cascade-node-active-bg': T('color', 'primary', 'light', '9'),\n '--u-cascade-node-active-color': T('color', 'primary'),\n\n // ─── Expression Editor Chip ───\n '--u-expression-editor-chip-bg': T('color', 'primary', 'light', '9'),\n '--u-expression-editor-chip-color': T('color', 'primary'),\n\n // ─── Paginator active buttons ───\n '--u-paginator-btn-hover-bg': T('color', 'primary', 'light', '9'),\n '--u-paginator-btn-hover-color': T('text-color', 'title'),\n '--u-paginator-btn-active-bg': T('color', 'primary', 'light', '9'),\n '--u-paginator-btn-active-color': T('color', 'primary'),\n\n // ─── Tabs List background ───\n '--u-tabs-bar-bg': T('bg-color', 'hover'),\n '--u-tabs-active-bg': T('bg-color', 'top'),\n\n // ─── Tag Component Colors ───\n '--u-tag-primary-bg': T('color', 'primary', 'light', '9'),\n '--u-tag-primary-color': T('color', 'primary'),\n '--u-tag-primary-border': T('color', 'primary'),\n '--u-tag-success-bg': T('color', 'success', 'light', '9'),\n '--u-tag-success-color': T('color', 'success'),\n '--u-tag-success-border': T('color', 'success'),\n '--u-tag-warning-bg': T('color', 'warning', 'light', '9'),\n '--u-tag-warning-color': T('color', 'warning'),\n '--u-tag-warning-border': T('color', 'warning'),\n '--u-tag-danger-bg': T('color', 'danger', 'light', '9'),\n '--u-tag-danger-color': T('color', 'danger'),\n '--u-tag-danger-border': T('color', 'danger'),\n '--u-tag-info-bg': T('color', 'info', 'light', '9'),\n '--u-tag-info-color': T('color', 'info'),\n '--u-tag-info-border': T('color', 'info'),\n\n // ─── File Picker Colors ───\n '--u-file-picker-hover-bg': T('color', 'primary', 'light', '9'),\n '--u-card-header-bg': 'rgba(0, 0, 0, 0.015)',\n '--u-card-action-bg': 'rgba(0, 0, 0, 0.015)',\n '--u-card-padding-small': '8px',\n '--u-card-padding-default': '12px',\n '--u-card-padding-large': '16px',\n '--u-card-radius': T('radius', 'large')\n}\n\n/** 暗色下组件 token(含与亮色相同的尺寸项,保证暗色 html 块自洽) */\nexport const componentCssVarsDark: Record<string, string> = {\n ...componentCssVarsLight,\n '--u-focus-ring': `0 0 0 3px ${T('color', 'primary', 'a', '35')}`,\n '--u-table-border-color': T('border', 'color'),\n '--u-table-header-bg': T('bg-color', 'hover'),\n '--u-table-header-color': T('text-color', 'main'),\n '--u-table-stripe-bg': T('bg-color', 'middle'),\n '--u-table-stripe-color': T('text-color', 'main'),\n '--u-table-hover-bg': T('text-color', 'title', 'a', '5'),\n '--u-table-hover-color': T('text-color', 'title'),\n '--u-table-current-bg': T('bg-color', 'hover'),\n '--u-table-current-color': 'inherit',\n '--u-table-checked-bg': T('color', 'primary', 'dark', '1'),\n '--u-table-checked-color': 'inherit',\n '--u-nav-color': T('text-color', 'main'),\n '--u-nav-hover-bg': T('text-color', 'title', 'a', '8'),\n '--u-nav-hover-color': T('text-color', 'title'),\n '--u-nav-active-bg': T('color', 'primary', 'a', '16'),\n '--u-nav-active-color': T('text-color', 'white'),\n '--u-nav-bg-color': T('bg-color', 'middle'),\n '--u-radio-border': '#595959',\n '--u-checkbox-border': '#595959',\n\n // ─── Button (plain & text colors in dark mode) ───\n '--u-button-primary-plain-bg': T('color', 'primary', 'dark', '9'),\n '--u-button-primary-plain-shadow': T('color', 'primary', 'dark', '7'),\n '--u-button-success-plain-bg': T('color', 'success', 'dark', '9'),\n '--u-button-success-plain-shadow': T('color', 'success', 'dark', '7'),\n '--u-button-warning-plain-bg': T('color', 'warning', 'dark', '9'),\n '--u-button-warning-plain-shadow': T('color', 'warning', 'dark', '7'),\n '--u-button-danger-plain-bg': T('color', 'danger', 'dark', '9'),\n '--u-button-danger-plain-shadow': T('color', 'danger', 'dark', '7'),\n '--u-button-info-plain-bg': T('color', 'info', 'dark', '9'),\n '--u-button-info-plain-shadow': T('color', 'info', 'dark', '7'),\n\n // ─── Tree selection ───\n '--u-tree-node-selected-bg': T('color', 'primary', 'dark', '9'),\n '--u-tree-node-selected-color': T('color', 'primary'),\n\n // ─── Cascade option active ───\n '--u-cascade-node-active-bg': T('color', 'primary', 'dark', '9'),\n '--u-cascade-node-active-color': T('color', 'primary'),\n\n // ─── Expression Editor Chip ───\n '--u-expression-editor-chip-bg': T('color', 'primary', 'dark', '9'),\n '--u-expression-editor-chip-color': T('color', 'primary'),\n\n // ─── Paginator active buttons ───\n '--u-paginator-btn-hover-bg': T('color', 'primary', 'dark', '9'),\n '--u-paginator-btn-hover-color': T('color', 'primary'),\n '--u-paginator-btn-active-bg': T('color', 'primary', 'dark', '9'),\n '--u-paginator-btn-active-color': T('color', 'primary'),\n\n // ─── Tabs List background (improved dark contrast) ───\n '--u-tabs-bar-bg': T('bg-color', 'bottom'),\n '--u-tabs-active-bg': T('bg-color', 'top'),\n\n // ─── Tag Component Colors ───\n '--u-tag-primary-bg': T('color', 'primary', 'dark', '9'),\n '--u-tag-primary-color': T('color', 'primary'),\n '--u-tag-primary-border': T('color', 'primary'),\n '--u-tag-success-bg': T('color', 'success', 'dark', '9'),\n '--u-tag-success-color': T('color', 'success'),\n '--u-tag-success-border': T('color', 'success'),\n '--u-tag-warning-bg': T('color', 'warning', 'dark', '9'),\n '--u-tag-warning-color': T('color', 'warning'),\n '--u-tag-warning-border': T('color', 'warning'),\n '--u-tag-danger-bg': T('color', 'danger', 'dark', '9'),\n '--u-tag-danger-color': T('color', 'danger'),\n '--u-tag-danger-border': T('color', 'danger'),\n '--u-tag-info-bg': T('color', 'info', 'dark', '9'),\n '--u-tag-info-color': T('color', 'info'),\n '--u-tag-info-border': T('color', 'info'),\n\n // ─── File Picker Colors ───\n '--u-file-picker-hover-bg': T('color', 'primary', 'dark', '9'),\n '--u-card-header-bg': 'rgba(255, 255, 255, 0.015)',\n '--u-card-action-bg': 'rgba(255, 255, 255, 0.015)'\n}\n\nfunction recordToDeclList(record: Record<string, string>): string[] {\n return Object.entries(record).map(([k, v]) => `${k}: ${v}`)\n}\n\nexport const componentCssVarsLightDecls: string[] = recordToDeclList(componentCssVarsLight)\n\nexport const componentCssVarsDarkDecls: string[] = recordToDeclList(componentCssVarsDark)\n"],"mappings":";;;;;;AAMA,SAAgB,cAAc,UAAkB,GAAG,OAAuC;CAExF,OAAO,WAAW,WADH,MAAM,SAAS,IAAI,MAAM,IAAI,MAAM,CAAC,CAA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AS,WAAW,QAAQ,GAAG;CAC7D,sBAAsB;CACtB,sBAAsB;AACxB;AAEA,SAAS,iBAAiB,QAA0C;CAClE,OAAO,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,EAAE,IAAI,GAAG;AAC5D;AAEA,MAAa,6BAAuC,iBAAiB,qBAAqB;AAE1F,MAAa,4BAAsC,iBAAiB,oBAAoB"}
|
package/dist/theme/helper.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ declare function hexWithAlpha(hex: `#${string}`, alphaPercent: number): string;
|
|
|
17
17
|
declare function mixColorWithAlpha(color: `#${string}`, ratio: number): string;
|
|
18
18
|
/** 剥离 `#RRGGBBAA` 的 alpha 通道,返回 `#RRGGBB` */
|
|
19
19
|
declare function hexRgbOnly(hex: string): `#${string}`;
|
|
20
|
+
/** 校验是否为 `#RRGGBB` 形式的 6 位 hex 颜色 */
|
|
21
|
+
declare function isHexColor(value: string): value is `#${string}`;
|
|
20
22
|
declare function defineBySize(variable: Record<'small' | 'default' | 'large', number>): Record<'small' | 'default' | 'large', number>;
|
|
21
23
|
/**
|
|
22
24
|
* 引用全局主题 CSS 变量(`--u-*` 命名空间)
|
|
@@ -24,5 +26,5 @@ declare function defineBySize(variable: Record<'small' | 'default' | 'large', nu
|
|
|
24
26
|
*/
|
|
25
27
|
declare function cssVar(prop: string): string;
|
|
26
28
|
//#endregion
|
|
27
|
-
export { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, mixColor, mixColorWithAlpha };
|
|
29
|
+
export { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, isHexColor, mixColor, mixColorWithAlpha };
|
|
28
30
|
//# sourceMappingURL=helper.d.ts.map
|
package/dist/theme/helper.js
CHANGED
|
@@ -56,6 +56,10 @@ function hexRgbOnly(hex) {
|
|
|
56
56
|
if (normalized.length === 8) return `#${normalized.slice(0, 6)}`;
|
|
57
57
|
return hex;
|
|
58
58
|
}
|
|
59
|
+
/** 校验是否为 `#RRGGBB` 形式的 6 位 hex 颜色 */
|
|
60
|
+
function isHexColor(value) {
|
|
61
|
+
return /^#[0-9a-fA-F]{6}$/.test(value);
|
|
62
|
+
}
|
|
59
63
|
function defineBySize(variable) {
|
|
60
64
|
return variable;
|
|
61
65
|
}
|
|
@@ -67,6 +71,6 @@ function cssVar(prop) {
|
|
|
67
71
|
return `var(--u-${prop})`;
|
|
68
72
|
}
|
|
69
73
|
//#endregion
|
|
70
|
-
export { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, mixColor, mixColorWithAlpha };
|
|
74
|
+
export { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, isHexColor, mixColor, mixColorWithAlpha };
|
|
71
75
|
|
|
72
76
|
//# sourceMappingURL=helper.js.map
|
package/dist/theme/helper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","names":[],"sources":["../../src/theme/helper.ts"],"sourcesContent":["import type { RGBColor } from './type'\n\n/** 实现十六进制颜色转RGB颜色,包括透明度 */\nexport function HEXToRGB(color: string): RGBColor {\n // 移除可能存在的 '#' 前缀\n let hex = color.replace(/^#/, '')\n let [r, g, b] = [0, 0, 0]\n\n if (hex.length === 3) {\n const [r10, g10, b10] = [hex[0]!, hex[1]!, hex[2]!]\n hex = `${r10}${r10}${g10}${g10}${b10}${b10}`\n }\n\n r = parseInt(hex.slice(0, 2), 16)\n g = parseInt(hex.slice(2, 4), 16)\n b = parseInt(hex.slice(4, 6), 16)\n\n return [r, g, b]\n}\n\n/**\n * 混合两个颜色,并返回混合结果的十六进制表示。\n * @param color1 - 第一个颜色,格式为`#RRGGBB`。\n * @param color2 - 第二个颜色,格式为`#RRGGBB`。\n * @param ratio - 颜色混合的比例,取值范围为0到1。\n * @returns 混合结果的十六进制表示。\n */\nexport function mixColor(color1: `#${string}`, color2: `#${string}`, ratio: number): string {\n if (ratio > 1) throw new Error('ratio的值在0-1之间')\n const color1RGB = HEXToRGB(color1)\n const color2RGB = HEXToRGB(color2)\n\n const color1Ratio = 1 - ratio\n\n return (\n '#' +\n color1RGB\n .map((n, i) => {\n const hex = Math.floor(color1Ratio * n + color2RGB[i]! * ratio).toString(16)\n return hex.length === 1 ? '0' + hex : hex\n })\n .join('')\n )\n}\n\n/** 将 `#RRGGBB` 转为指定不透明度百分比的 `rgba()`(等价于 color-mix N% + transparent) */\nexport function hexWithAlpha(hex: `#${string}`, alphaPercent: number): string {\n const [r, g, b] = HEXToRGB(hex)\n const alpha = Math.round((alphaPercent / 100) * 1000) / 1000\n return `rgba(${r}, ${g}, ${b}, ${alpha})`\n}\n\n/** 别名:`ratio` 为 0–1 时不透明度(0.08 → 8%) */\nexport function mixColorWithAlpha(color: `#${string}`, ratio: number): string {\n return hexWithAlpha(color, ratio * 100)\n}\n\n/** 剥离 `#RRGGBBAA` 的 alpha 通道,返回 `#RRGGBB` */\nexport function hexRgbOnly(hex: string): `#${string}` {\n const normalized = hex.replace(/^#/, '')\n if (normalized.length === 8) {\n return `#${normalized.slice(0, 6)}` as `#${string}`\n }\n return hex as `#${string}`\n}\n\nexport function defineBySize(\n variable: Record<'small' | 'default' | 'large', number>\n): Record<'small' | 'default' | 'large', number> {\n return variable\n}\n\n/**\n * 引用全局主题 CSS 变量(`--u-*` 命名空间)\n * @param prop - 与 Theme 结构对应的连字符路径,如 `text-color-title`、`bg-color-hover`\n */\nexport function cssVar(prop: string): string {\n return `var(--u-${prop})`\n}\n"],"mappings":";;AAGA,SAAgB,SAAS,OAAyB;CAEhD,IAAI,MAAM,MAAM,QAAQ,MAAM,EAAE;CAChC,IAAI,CAAC,GAAG,GAAG,KAAK;EAAC;EAAG;EAAG;CAAC;CAExB,IAAI,IAAI,WAAW,GAAG;EACpB,MAAM,CAAC,KAAK,KAAK,OAAO;GAAC,IAAI;GAAK,IAAI;GAAK,IAAI;EAAG;EAClD,MAAM,GAAG,MAAM,MAAM,MAAM,MAAM,MAAM;CACzC;CAEA,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE;CAChC,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE;CAChC,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE;CAEhC,OAAO;EAAC;EAAG;EAAG;CAAC;AACjB;;;;;;;;AASA,SAAgB,SAAS,QAAsB,QAAsB,OAAuB;CAC1F,IAAI,QAAQ,GAAG,MAAM,IAAI,MAAM,eAAe;CAC9C,MAAM,YAAY,SAAS,MAAM;CACjC,MAAM,YAAY,SAAS,MAAM;CAEjC,MAAM,cAAc,IAAI;CAExB,OACE,MACA,UACG,KAAK,GAAG,MAAM;EACb,MAAM,MAAM,KAAK,MAAM,cAAc,IAAI,UAAU,KAAM,KAAK,CAAC,CAAC,SAAS,EAAE;EAC3E,OAAO,IAAI,WAAW,IAAI,MAAM,MAAM;CACxC,CAAC,CAAC,CACD,KAAK,EAAE;AAEd;;AAGA,SAAgB,aAAa,KAAmB,cAA8B;CAC5E,MAAM,CAAC,GAAG,GAAG,KAAK,SAAS,GAAG;CAE9B,OAAO,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IADf,KAAK,MAAO,eAAe,MAAO,GAAI,IAAI,IACjB;AACzC;;AAGA,SAAgB,kBAAkB,OAAqB,OAAuB;CAC5E,OAAO,aAAa,OAAO,QAAQ,GAAG;AACxC;;AAGA,SAAgB,WAAW,KAA2B;CACpD,MAAM,aAAa,IAAI,QAAQ,MAAM,EAAE;CACvC,IAAI,WAAW,WAAW,GACxB,OAAO,IAAI,WAAW,MAAM,GAAG,CAAC;CAElC,OAAO;AACT;AAEA,SAAgB,aACd,UAC+C;CAC/C,OAAO;AACT;;;;;AAMA,SAAgB,OAAO,MAAsB;CAC3C,OAAO,WAAW,KAAK;AACzB"}
|
|
1
|
+
{"version":3,"file":"helper.js","names":[],"sources":["../../src/theme/helper.ts"],"sourcesContent":["import type { RGBColor } from './type'\n\n/** 实现十六进制颜色转RGB颜色,包括透明度 */\nexport function HEXToRGB(color: string): RGBColor {\n // 移除可能存在的 '#' 前缀\n let hex = color.replace(/^#/, '')\n let [r, g, b] = [0, 0, 0]\n\n if (hex.length === 3) {\n const [r10, g10, b10] = [hex[0]!, hex[1]!, hex[2]!]\n hex = `${r10}${r10}${g10}${g10}${b10}${b10}`\n }\n\n r = parseInt(hex.slice(0, 2), 16)\n g = parseInt(hex.slice(2, 4), 16)\n b = parseInt(hex.slice(4, 6), 16)\n\n return [r, g, b]\n}\n\n/**\n * 混合两个颜色,并返回混合结果的十六进制表示。\n * @param color1 - 第一个颜色,格式为`#RRGGBB`。\n * @param color2 - 第二个颜色,格式为`#RRGGBB`。\n * @param ratio - 颜色混合的比例,取值范围为0到1。\n * @returns 混合结果的十六进制表示。\n */\nexport function mixColor(color1: `#${string}`, color2: `#${string}`, ratio: number): string {\n if (ratio > 1) throw new Error('ratio的值在0-1之间')\n const color1RGB = HEXToRGB(color1)\n const color2RGB = HEXToRGB(color2)\n\n const color1Ratio = 1 - ratio\n\n return (\n '#' +\n color1RGB\n .map((n, i) => {\n const hex = Math.floor(color1Ratio * n + color2RGB[i]! * ratio).toString(16)\n return hex.length === 1 ? '0' + hex : hex\n })\n .join('')\n )\n}\n\n/** 将 `#RRGGBB` 转为指定不透明度百分比的 `rgba()`(等价于 color-mix N% + transparent) */\nexport function hexWithAlpha(hex: `#${string}`, alphaPercent: number): string {\n const [r, g, b] = HEXToRGB(hex)\n const alpha = Math.round((alphaPercent / 100) * 1000) / 1000\n return `rgba(${r}, ${g}, ${b}, ${alpha})`\n}\n\n/** 别名:`ratio` 为 0–1 时不透明度(0.08 → 8%) */\nexport function mixColorWithAlpha(color: `#${string}`, ratio: number): string {\n return hexWithAlpha(color, ratio * 100)\n}\n\n/** 剥离 `#RRGGBBAA` 的 alpha 通道,返回 `#RRGGBB` */\nexport function hexRgbOnly(hex: string): `#${string}` {\n const normalized = hex.replace(/^#/, '')\n if (normalized.length === 8) {\n return `#${normalized.slice(0, 6)}` as `#${string}`\n }\n return hex as `#${string}`\n}\n\n/** 校验是否为 `#RRGGBB` 形式的 6 位 hex 颜色 */\nexport function isHexColor(value: string): value is `#${string}` {\n return /^#[0-9a-fA-F]{6}$/.test(value)\n}\n\nexport function defineBySize(\n variable: Record<'small' | 'default' | 'large', number>\n): Record<'small' | 'default' | 'large', number> {\n return variable\n}\n\n/**\n * 引用全局主题 CSS 变量(`--u-*` 命名空间)\n * @param prop - 与 Theme 结构对应的连字符路径,如 `text-color-title`、`bg-color-hover`\n */\nexport function cssVar(prop: string): string {\n return `var(--u-${prop})`\n}\n"],"mappings":";;AAGA,SAAgB,SAAS,OAAyB;CAEhD,IAAI,MAAM,MAAM,QAAQ,MAAM,EAAE;CAChC,IAAI,CAAC,GAAG,GAAG,KAAK;EAAC;EAAG;EAAG;CAAC;CAExB,IAAI,IAAI,WAAW,GAAG;EACpB,MAAM,CAAC,KAAK,KAAK,OAAO;GAAC,IAAI;GAAK,IAAI;GAAK,IAAI;EAAG;EAClD,MAAM,GAAG,MAAM,MAAM,MAAM,MAAM,MAAM;CACzC;CAEA,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE;CAChC,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE;CAChC,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE;CAEhC,OAAO;EAAC;EAAG;EAAG;CAAC;AACjB;;;;;;;;AASA,SAAgB,SAAS,QAAsB,QAAsB,OAAuB;CAC1F,IAAI,QAAQ,GAAG,MAAM,IAAI,MAAM,eAAe;CAC9C,MAAM,YAAY,SAAS,MAAM;CACjC,MAAM,YAAY,SAAS,MAAM;CAEjC,MAAM,cAAc,IAAI;CAExB,OACE,MACA,UACG,KAAK,GAAG,MAAM;EACb,MAAM,MAAM,KAAK,MAAM,cAAc,IAAI,UAAU,KAAM,KAAK,CAAC,CAAC,SAAS,EAAE;EAC3E,OAAO,IAAI,WAAW,IAAI,MAAM,MAAM;CACxC,CAAC,CAAC,CACD,KAAK,EAAE;AAEd;;AAGA,SAAgB,aAAa,KAAmB,cAA8B;CAC5E,MAAM,CAAC,GAAG,GAAG,KAAK,SAAS,GAAG;CAE9B,OAAO,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IADf,KAAK,MAAO,eAAe,MAAO,GAAI,IAAI,IACjB;AACzC;;AAGA,SAAgB,kBAAkB,OAAqB,OAAuB;CAC5E,OAAO,aAAa,OAAO,QAAQ,GAAG;AACxC;;AAGA,SAAgB,WAAW,KAA2B;CACpD,MAAM,aAAa,IAAI,QAAQ,MAAM,EAAE;CACvC,IAAI,WAAW,WAAW,GACxB,OAAO,IAAI,WAAW,MAAM,GAAG,CAAC;CAElC,OAAO;AACT;;AAGA,SAAgB,WAAW,OAAsC;CAC/D,OAAO,oBAAoB,KAAK,KAAK;AACvC;AAEA,SAAgB,aACd,UAC+C;CAC/C,OAAO;AACT;;;;;AAMA,SAAgB,OAAO,MAAsB;CAC3C,OAAO,WAAW,KAAK;AACzB"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import { heroDarkTheme, heroLightTheme } from "./presets/hero.js";
|
|
|
6
6
|
import { shadcnDarkTheme, shadcnLightTheme } from "./presets/shadcn.js";
|
|
7
7
|
import { glassDarkTheme, glassLightTheme } from "./presets/glass.js";
|
|
8
8
|
import { currentTheme, loadTheme, setTheme } from "./load-theme.js";
|
|
9
|
-
import { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, mixColor, mixColorWithAlpha } from "./helper.js";
|
|
10
|
-
export { HEXToRGB, type RGBColor, type Theme, UITheme, cssVar, currentTheme, darkTheme, defineBySize, glassDarkTheme, glassLightTheme, heroDarkTheme, heroLightTheme, hexRgbOnly, hexWithAlpha, lightTheme, loadTheme, mixColor, mixColorWithAlpha, setTheme, shadcnDarkTheme, shadcnLightTheme };
|
|
9
|
+
import { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, isHexColor, mixColor, mixColorWithAlpha } from "./helper.js";
|
|
10
|
+
export { HEXToRGB, type RGBColor, type Theme, UITheme, cssVar, currentTheme, darkTheme, defineBySize, glassDarkTheme, glassLightTheme, heroDarkTheme, heroLightTheme, hexRgbOnly, hexWithAlpha, isHexColor, lightTheme, loadTheme, mixColor, mixColorWithAlpha, setTheme, shadcnDarkTheme, shadcnLightTheme };
|
package/dist/theme/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, mixColor, mixColorWithAlpha } from "./helper.js";
|
|
1
|
+
import { HEXToRGB, cssVar, defineBySize, hexRgbOnly, hexWithAlpha, isHexColor, mixColor, mixColorWithAlpha } from "./helper.js";
|
|
2
2
|
import { UITheme } from "./ui-theme.js";
|
|
3
3
|
import { lightTheme } from "./presets/light.js";
|
|
4
4
|
import { darkTheme } from "./presets/dark.js";
|
|
@@ -6,4 +6,4 @@ import { heroDarkTheme, heroLightTheme } from "./presets/hero.js";
|
|
|
6
6
|
import { shadcnDarkTheme, shadcnLightTheme } from "./presets/shadcn.js";
|
|
7
7
|
import { glassDarkTheme, glassLightTheme } from "./presets/glass.js";
|
|
8
8
|
import { currentTheme, loadTheme, setTheme } from "./load-theme.js";
|
|
9
|
-
export { HEXToRGB, UITheme, cssVar, currentTheme, darkTheme, defineBySize, glassDarkTheme, glassLightTheme, heroDarkTheme, heroLightTheme, hexRgbOnly, hexWithAlpha, lightTheme, loadTheme, mixColor, mixColorWithAlpha, setTheme, shadcnDarkTheme, shadcnLightTheme };
|
|
9
|
+
export { HEXToRGB, UITheme, cssVar, currentTheme, darkTheme, defineBySize, glassDarkTheme, glassLightTheme, heroDarkTheme, heroLightTheme, hexRgbOnly, hexWithAlpha, isHexColor, lightTheme, loadTheme, mixColor, mixColorWithAlpha, setTheme, shadcnDarkTheme, shadcnLightTheme };
|
|
@@ -2,20 +2,20 @@ import { lightTheme } from "./light.js";
|
|
|
2
2
|
//#region src/theme/presets/dark.ts
|
|
3
3
|
const darkTheme = lightTheme.new({
|
|
4
4
|
color: {
|
|
5
|
-
primary: "#
|
|
6
|
-
success: "#
|
|
7
|
-
warning: "#
|
|
8
|
-
danger: "#
|
|
9
|
-
info: "#
|
|
10
|
-
disabled: "#
|
|
11
|
-
default: "#
|
|
5
|
+
primary: "#3b82f6",
|
|
6
|
+
success: "#22c55e",
|
|
7
|
+
warning: "#f59e0b",
|
|
8
|
+
danger: "#ef4444",
|
|
9
|
+
info: "#06b6d4",
|
|
10
|
+
disabled: "#27272a",
|
|
11
|
+
default: "#27272a"
|
|
12
12
|
},
|
|
13
13
|
bg: {
|
|
14
14
|
color: {
|
|
15
|
-
bottom: "#
|
|
16
|
-
middle: "#
|
|
17
|
-
top: "#
|
|
18
|
-
hover: "#
|
|
15
|
+
bottom: "#0c0c0e",
|
|
16
|
+
middle: "#141417",
|
|
17
|
+
top: "#1c1c21",
|
|
18
|
+
hover: "#26262c",
|
|
19
19
|
black: "#000000"
|
|
20
20
|
},
|
|
21
21
|
filter: {
|
|
@@ -24,25 +24,27 @@ const darkTheme = lightTheme.new({
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"text-color": {
|
|
27
|
-
title: "#
|
|
28
|
-
main: "#
|
|
29
|
-
second: "#
|
|
30
|
-
placeholder: "#
|
|
31
|
-
assist: "#
|
|
32
|
-
disabled: "#
|
|
27
|
+
title: "#f4f4f5",
|
|
28
|
+
main: "#d4d4d8",
|
|
29
|
+
second: "#a1a1aa",
|
|
30
|
+
placeholder: "#71717a",
|
|
31
|
+
assist: "#52525b",
|
|
32
|
+
disabled: "#3f3f46",
|
|
33
33
|
white: "#ffffff"
|
|
34
34
|
},
|
|
35
35
|
border: {
|
|
36
|
-
color: "#
|
|
37
|
-
mutedColor: "#
|
|
36
|
+
color: "#37373f",
|
|
37
|
+
mutedColor: "#42424c"
|
|
38
38
|
},
|
|
39
39
|
shadow: {
|
|
40
|
-
color: "
|
|
40
|
+
color: "#00000066",
|
|
41
41
|
x: 0,
|
|
42
|
-
y:
|
|
43
|
-
blur:
|
|
42
|
+
y: 1,
|
|
43
|
+
blur: 3,
|
|
44
44
|
spread: 0,
|
|
45
|
-
emboss: "none"
|
|
45
|
+
emboss: "none",
|
|
46
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.4)",
|
|
47
|
+
lg: "0 8px 24px 0 rgba(0, 0, 0, 0.5), 0 2px 6px 0 rgba(0, 0, 0, 0.35)"
|
|
46
48
|
}
|
|
47
49
|
});
|
|
48
50
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dark.js","names":[],"sources":["../../../src/theme/presets/dark.ts"],"sourcesContent":["import { lightTheme } from './light'\n\nexport const darkTheme = lightTheme.new({\n color: {\n primary: '#
|
|
1
|
+
{"version":3,"file":"dark.js","names":[],"sources":["../../../src/theme/presets/dark.ts"],"sourcesContent":["import { lightTheme } from './light'\n\nexport const darkTheme = lightTheme.new({\n color: {\n primary: '#3b82f6',\n success: '#22c55e',\n warning: '#f59e0b',\n danger: '#ef4444',\n info: '#06b6d4',\n disabled: '#27272a',\n default: '#27272a'\n },\n\n bg: {\n color: {\n bottom: '#0c0c0e',\n middle: '#141417',\n top: '#1c1c21',\n hover: '#26262c',\n black: '#000000'\n },\n filter: { blur: 'none', saturate: 'none' }\n },\n\n 'text-color': {\n title: '#f4f4f5',\n main: '#d4d4d8',\n second: '#a1a1aa',\n placeholder: '#71717a',\n assist: '#52525b',\n disabled: '#3f3f46',\n white: '#ffffff'\n },\n\n border: { color: '#37373f', mutedColor: '#42424c' },\n\n shadow: {\n color: '#00000066',\n x: 0,\n y: 1,\n blur: 3,\n spread: 0,\n emboss: 'none',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.4)',\n lg: '0 8px 24px 0 rgba(0, 0, 0, 0.5), 0 2px 6px 0 rgba(0, 0, 0, 0.35)'\n }\n})\n"],"mappings":";;AAEA,MAAa,YAAY,WAAW,IAAI;CACtC,OAAO;EACL,SAAS;EACT,SAAS;EACT,SAAS;EACT,QAAQ;EACR,MAAM;EACN,UAAU;EACV,SAAS;CACX;CAEA,IAAI;EACF,OAAO;GACL,QAAQ;GACR,QAAQ;GACR,KAAK;GACL,OAAO;GACP,OAAO;EACT;EACA,QAAQ;GAAE,MAAM;GAAQ,UAAU;EAAO;CAC3C;CAEA,cAAc;EACZ,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACb,QAAQ;EACR,UAAU;EACV,OAAO;CACT;CAEA,QAAQ;EAAE,OAAO;EAAW,YAAY;CAAU;CAElD,QAAQ;EACN,OAAO;EACP,GAAG;EACH,GAAG;EACH,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,IAAI;EACJ,IAAI;CACN;AACF,CAAC"}
|
|
@@ -24,8 +24,8 @@ const glassLightTheme = lightTheme.new({
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
border: {
|
|
27
|
-
color: "rgba(
|
|
28
|
-
mutedColor: "rgba(
|
|
27
|
+
color: "rgba(15, 23, 42, 0.14)",
|
|
28
|
+
mutedColor: "rgba(15, 23, 42, 0.08)",
|
|
29
29
|
width: 1,
|
|
30
30
|
style: "solid"
|
|
31
31
|
},
|
|
@@ -39,7 +39,7 @@ const glassLightTheme = lightTheme.new({
|
|
|
39
39
|
white: "#FFFFFF"
|
|
40
40
|
},
|
|
41
41
|
shadow: {
|
|
42
|
-
color: "
|
|
42
|
+
color: "#00000014",
|
|
43
43
|
x: 0,
|
|
44
44
|
y: 4,
|
|
45
45
|
blur: 24,
|
|
@@ -66,8 +66,8 @@ const glassDarkTheme = glassLightTheme.new({
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
border: {
|
|
69
|
-
color: "rgba(255, 255, 255, 0.
|
|
70
|
-
mutedColor: "rgba(255, 255, 255, 0.
|
|
69
|
+
color: "rgba(255, 255, 255, 0.18)",
|
|
70
|
+
mutedColor: "rgba(255, 255, 255, 0.1)"
|
|
71
71
|
},
|
|
72
72
|
"text-color": {
|
|
73
73
|
title: "#F8FAFC",
|
|
@@ -79,12 +79,14 @@ const glassDarkTheme = glassLightTheme.new({
|
|
|
79
79
|
white: "#ffffff"
|
|
80
80
|
},
|
|
81
81
|
shadow: {
|
|
82
|
-
color: "
|
|
82
|
+
color: "#00000059",
|
|
83
83
|
x: 0,
|
|
84
84
|
y: 4,
|
|
85
85
|
blur: 32,
|
|
86
86
|
spread: 0,
|
|
87
|
-
emboss: "none"
|
|
87
|
+
emboss: "none",
|
|
88
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.4)",
|
|
89
|
+
lg: "0 8px 24px 0 rgba(0, 0, 0, 0.55), 0 2px 6px 0 rgba(0, 0, 0, 0.35)"
|
|
88
90
|
}
|
|
89
91
|
});
|
|
90
92
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glass.js","names":[],"sources":["../../../src/theme/presets/glass.ts"],"sourcesContent":["import { lightTheme } from './light'\n\nexport const glassLightTheme = lightTheme.new({\n color: {\n primary: '#3B82F6',\n success: '#10B981',\n warning: '#F59E0B',\n danger: '#EF4444',\n info: '#06B6D4',\n disabled: '#E5E7EB',\n default: '#F3F4F6'\n },\n bg: {\n color: {\n bottom: 'rgba(255, 255, 255, 0.45)',\n middle: 'rgba(255, 255, 255, 0.55)',\n top: 'rgba(255, 255, 255, 0.6)',\n hover: 'rgba(255, 255, 255, 0.75)',\n black: '#000000'\n },\n filter: { blur: 'blur(24px)', saturate: 'saturate(180%)' }\n },\n border: {\n color: 'rgba(
|
|
1
|
+
{"version":3,"file":"glass.js","names":[],"sources":["../../../src/theme/presets/glass.ts"],"sourcesContent":["import { lightTheme } from './light'\n\nexport const glassLightTheme = lightTheme.new({\n color: {\n primary: '#3B82F6',\n success: '#10B981',\n warning: '#F59E0B',\n danger: '#EF4444',\n info: '#06B6D4',\n disabled: '#E5E7EB',\n default: '#F3F4F6'\n },\n bg: {\n color: {\n bottom: 'rgba(255, 255, 255, 0.45)',\n middle: 'rgba(255, 255, 255, 0.55)',\n top: 'rgba(255, 255, 255, 0.6)',\n hover: 'rgba(255, 255, 255, 0.75)',\n black: '#000000'\n },\n filter: { blur: 'blur(24px)', saturate: 'saturate(180%)' }\n },\n border: {\n color: 'rgba(15, 23, 42, 0.14)',\n mutedColor: 'rgba(15, 23, 42, 0.08)',\n width: 1,\n style: 'solid'\n },\n 'text-color': {\n title: '#1E293B',\n main: '#334155',\n placeholder: '#94A3B8',\n second: '#64748B',\n assist: '#CBD5E1',\n disabled: '#94A3B8',\n white: '#FFFFFF'\n },\n shadow: { color: '#00000014', x: 0, y: 4, blur: 24, spread: 0, emboss: 'none' }\n})\n\nexport const glassDarkTheme = glassLightTheme.new({\n color: { disabled: '#374151', default: '#1E293B' },\n bg: {\n color: {\n bottom: 'rgba(15, 23, 42, 0.6)',\n middle: 'rgba(15, 23, 42, 0.7)',\n top: 'rgba(15, 23, 42, 0.75)',\n hover: 'rgba(30, 41, 59, 0.85)',\n black: '#000000'\n },\n filter: { blur: 'blur(20px)', saturate: 'saturate(200%)' }\n },\n border: { color: 'rgba(255, 255, 255, 0.18)', mutedColor: 'rgba(255, 255, 255, 0.1)' },\n 'text-color': {\n title: '#F8FAFC',\n main: '#F1F5F9',\n second: '#94A3B8',\n placeholder: '#64748B',\n assist: '#64748B',\n disabled: '#475569',\n white: '#ffffff'\n },\n shadow: {\n color: '#00000059',\n x: 0,\n y: 4,\n blur: 32,\n spread: 0,\n emboss: 'none',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.4)',\n lg: '0 8px 24px 0 rgba(0, 0, 0, 0.55), 0 2px 6px 0 rgba(0, 0, 0, 0.35)'\n }\n})\n"],"mappings":";;AAEA,MAAa,kBAAkB,WAAW,IAAI;CAC5C,OAAO;EACL,SAAS;EACT,SAAS;EACT,SAAS;EACT,QAAQ;EACR,MAAM;EACN,UAAU;EACV,SAAS;CACX;CACA,IAAI;EACF,OAAO;GACL,QAAQ;GACR,QAAQ;GACR,KAAK;GACL,OAAO;GACP,OAAO;EACT;EACA,QAAQ;GAAE,MAAM;GAAc,UAAU;EAAiB;CAC3D;CACA,QAAQ;EACN,OAAO;EACP,YAAY;EACZ,OAAO;EACP,OAAO;CACT;CACA,cAAc;EACZ,OAAO;EACP,MAAM;EACN,aAAa;EACb,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,OAAO;CACT;CACA,QAAQ;EAAE,OAAO;EAAa,GAAG;EAAG,GAAG;EAAG,MAAM;EAAI,QAAQ;EAAG,QAAQ;CAAO;AAChF,CAAC;AAED,MAAa,iBAAiB,gBAAgB,IAAI;CAChD,OAAO;EAAE,UAAU;EAAW,SAAS;CAAU;CACjD,IAAI;EACF,OAAO;GACL,QAAQ;GACR,QAAQ;GACR,KAAK;GACL,OAAO;GACP,OAAO;EACT;EACA,QAAQ;GAAE,MAAM;GAAc,UAAU;EAAiB;CAC3D;CACA,QAAQ;EAAE,OAAO;EAA6B,YAAY;CAA2B;CACrF,cAAc;EACZ,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACb,QAAQ;EACR,UAAU;EACV,OAAO;CACT;CACA,QAAQ;EACN,OAAO;EACP,GAAG;EACH,GAAG;EACH,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,IAAI;EACJ,IAAI;CACN;AACF,CAAC"}
|
|
@@ -13,7 +13,7 @@ const heroLightTheme = lightTheme.new({
|
|
|
13
13
|
border: {
|
|
14
14
|
width: 2,
|
|
15
15
|
color: "#dcdfe6",
|
|
16
|
-
mutedColor: "
|
|
16
|
+
mutedColor: "#e4e4e7"
|
|
17
17
|
},
|
|
18
18
|
"text-color": {
|
|
19
19
|
title: "#11181C",
|
|
@@ -30,7 +30,7 @@ const heroLightTheme = lightTheme.new({
|
|
|
30
30
|
large: 14
|
|
31
31
|
},
|
|
32
32
|
shadow: {
|
|
33
|
-
color: "
|
|
33
|
+
color: "#00000014",
|
|
34
34
|
x: 0,
|
|
35
35
|
y: 4,
|
|
36
36
|
blur: 14,
|
|
@@ -54,7 +54,7 @@ const heroDarkTheme = heroLightTheme.new({
|
|
|
54
54
|
} },
|
|
55
55
|
border: {
|
|
56
56
|
color: "#3f3f46",
|
|
57
|
-
mutedColor: "
|
|
57
|
+
mutedColor: "#3f3f46"
|
|
58
58
|
},
|
|
59
59
|
"text-color": {
|
|
60
60
|
title: "#ECEDEE",
|
|
@@ -66,12 +66,14 @@ const heroDarkTheme = heroLightTheme.new({
|
|
|
66
66
|
white: "#FFFFFF"
|
|
67
67
|
},
|
|
68
68
|
shadow: {
|
|
69
|
-
color: "
|
|
69
|
+
color: "#00000033",
|
|
70
70
|
x: 0,
|
|
71
71
|
y: 4,
|
|
72
72
|
blur: 14,
|
|
73
73
|
spread: 0,
|
|
74
|
-
emboss: "0 2px 4px 0 #0000000a,0 1px 2px 0 #0000000f,0 0 1px 0 #0000000f"
|
|
74
|
+
emboss: "0 2px 4px 0 #0000000a,0 1px 2px 0 #0000000f,0 0 1px 0 #0000000f",
|
|
75
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.4)",
|
|
76
|
+
lg: "0 8px 24px 0 rgba(0, 0, 0, 0.5), 0 2px 6px 0 rgba(0, 0, 0, 0.35)"
|
|
75
77
|
},
|
|
76
78
|
button: { "default-bg": "var(--u-bg-color-top)" }
|
|
77
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.js","names":[],"sources":["../../../src/theme/presets/hero.ts"],"sourcesContent":["import { lightTheme } from './light'\n\nexport const heroLightTheme = lightTheme.new({\n color: {\n primary: '#7828c8', // purple\n success: '#17c964',\n warning: '#f5a524',\n danger: '#f31260',\n info: '#006fee',\n disabled: '#f4f4f5',\n default: '#f4f4f5'\n },\n border: { width: 2, color: '#dcdfe6', mutedColor: '
|
|
1
|
+
{"version":3,"file":"hero.js","names":[],"sources":["../../../src/theme/presets/hero.ts"],"sourcesContent":["import { lightTheme } from './light'\n\nexport const heroLightTheme = lightTheme.new({\n color: {\n primary: '#7828c8', // purple\n success: '#17c964',\n warning: '#f5a524',\n danger: '#f31260',\n info: '#006fee',\n disabled: '#f4f4f5',\n default: '#f4f4f5'\n },\n border: { width: 2, color: '#dcdfe6', mutedColor: '#e4e4e7' },\n 'text-color': {\n title: '#11181C',\n main: '#11181C',\n second: '#71717A',\n placeholder: '#A1A1AA',\n assist: '#A1A1AA',\n disabled: '#A1A1AA',\n white: '#FFFFFF'\n },\n radius: { small: 8, default: 12, large: 14 },\n shadow: {\n color: '#00000014',\n x: 0,\n y: 4,\n blur: 14,\n spread: 0,\n emboss: '0 2px 4px 0 #0000000a,0 1px 2px 0 #0000000f,0 0 3px 0px #0000000f'\n },\n button: { 'default-bg': '#ebebec' }\n})\n\nexport const heroDarkTheme = heroLightTheme.new({\n color: { primary: '#9353d3', disabled: '#27272a', default: '#27272a' },\n bg: {\n color: {\n bottom: '#000000',\n middle: '#18181b',\n top: '#27272a',\n hover: '#3f3f46',\n black: '#000000'\n }\n },\n border: { color: '#3f3f46', mutedColor: '#3f3f46' },\n 'text-color': {\n title: '#ECEDEE',\n main: '#ECEDEE',\n second: '#A1A1AA',\n placeholder: '#71717A',\n assist: '#71717A',\n disabled: '#71717A',\n white: '#FFFFFF'\n },\n shadow: {\n color: '#00000033',\n x: 0,\n y: 4,\n blur: 14,\n spread: 0,\n emboss: '0 2px 4px 0 #0000000a,0 1px 2px 0 #0000000f,0 0 1px 0 #0000000f',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.4)',\n lg: '0 8px 24px 0 rgba(0, 0, 0, 0.5), 0 2px 6px 0 rgba(0, 0, 0, 0.35)'\n },\n button: { 'default-bg': 'var(--u-bg-color-top)' }\n})\n"],"mappings":";;AAEA,MAAa,iBAAiB,WAAW,IAAI;CAC3C,OAAO;EACL,SAAS;EACT,SAAS;EACT,SAAS;EACT,QAAQ;EACR,MAAM;EACN,UAAU;EACV,SAAS;CACX;CACA,QAAQ;EAAE,OAAO;EAAG,OAAO;EAAW,YAAY;CAAU;CAC5D,cAAc;EACZ,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACb,QAAQ;EACR,UAAU;EACV,OAAO;CACT;CACA,QAAQ;EAAE,OAAO;EAAG,SAAS;EAAI,OAAO;CAAG;CAC3C,QAAQ;EACN,OAAO;EACP,GAAG;EACH,GAAG;EACH,MAAM;EACN,QAAQ;EACR,QAAQ;CACV;CACA,QAAQ,EAAE,cAAc,UAAU;AACpC,CAAC;AAED,MAAa,gBAAgB,eAAe,IAAI;CAC9C,OAAO;EAAE,SAAS;EAAW,UAAU;EAAW,SAAS;CAAU;CACrE,IAAI,EACF,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,KAAK;EACL,OAAO;EACP,OAAO;CACT,EACF;CACA,QAAQ;EAAE,OAAO;EAAW,YAAY;CAAU;CAClD,cAAc;EACZ,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACb,QAAQ;EACR,UAAU;EACV,OAAO;CACT;CACA,QAAQ;EACN,OAAO;EACP,GAAG;EACH,GAAG;EACH,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,IAAI;EACJ,IAAI;CACN;CACA,QAAQ,EAAE,cAAc,wBAAwB;AAClD,CAAC"}
|
|
@@ -3,20 +3,20 @@ import { UITheme } from "../ui-theme.js";
|
|
|
3
3
|
//#region src/theme/presets/light.ts
|
|
4
4
|
const lightTheme = new UITheme({
|
|
5
5
|
color: {
|
|
6
|
-
primary: "#
|
|
7
|
-
success: "#
|
|
8
|
-
warning: "#
|
|
9
|
-
danger: "#
|
|
10
|
-
info: "#
|
|
11
|
-
disabled: "#
|
|
12
|
-
default: "#
|
|
6
|
+
primary: "#2563eb",
|
|
7
|
+
success: "#16a34a",
|
|
8
|
+
warning: "#d97706",
|
|
9
|
+
danger: "#dc2626",
|
|
10
|
+
info: "#0891b2",
|
|
11
|
+
disabled: "#f4f4f5",
|
|
12
|
+
default: "#f4f4f5"
|
|
13
13
|
},
|
|
14
14
|
bg: {
|
|
15
15
|
color: {
|
|
16
|
-
bottom: "#
|
|
16
|
+
bottom: "#f4f4f5",
|
|
17
17
|
middle: "#fafafa",
|
|
18
18
|
top: "#ffffff",
|
|
19
|
-
hover: "#
|
|
19
|
+
hover: "#f4f4f5",
|
|
20
20
|
black: "#000000"
|
|
21
21
|
},
|
|
22
22
|
filter: {
|
|
@@ -25,24 +25,24 @@ const lightTheme = new UITheme({
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
border: {
|
|
28
|
-
color: "#
|
|
29
|
-
mutedColor: "#
|
|
28
|
+
color: "#e4e4e7",
|
|
29
|
+
mutedColor: "#d4d4d8",
|
|
30
30
|
width: 1,
|
|
31
31
|
style: "solid"
|
|
32
32
|
},
|
|
33
33
|
"text-color": {
|
|
34
|
-
title: "#
|
|
35
|
-
main: "#
|
|
36
|
-
placeholder: "#
|
|
37
|
-
second: "#
|
|
38
|
-
assist: "#
|
|
39
|
-
disabled: "#
|
|
34
|
+
title: "#18181b",
|
|
35
|
+
main: "#3f3f46",
|
|
36
|
+
placeholder: "#a1a1aa",
|
|
37
|
+
second: "#71717a",
|
|
38
|
+
assist: "#d4d4d8",
|
|
39
|
+
disabled: "#a1a1aa",
|
|
40
40
|
white: "#fff"
|
|
41
41
|
},
|
|
42
42
|
radius: defineBySize({
|
|
43
|
-
small:
|
|
44
|
-
default:
|
|
45
|
-
large:
|
|
43
|
+
small: 6,
|
|
44
|
+
default: 8,
|
|
45
|
+
large: 12
|
|
46
46
|
}),
|
|
47
47
|
"form-component-height": defineBySize({
|
|
48
48
|
small: 24,
|
|
@@ -51,7 +51,7 @@ const lightTheme = new UITheme({
|
|
|
51
51
|
}),
|
|
52
52
|
"font-family": "system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif",
|
|
53
53
|
"font-size-title": defineBySize({
|
|
54
|
-
small:
|
|
54
|
+
small: 14,
|
|
55
55
|
default: 16,
|
|
56
56
|
large: 18
|
|
57
57
|
}),
|
|
@@ -66,12 +66,21 @@ const lightTheme = new UITheme({
|
|
|
66
66
|
large: 14
|
|
67
67
|
}),
|
|
68
68
|
shadow: {
|
|
69
|
-
color: "#
|
|
69
|
+
color: "#00000014",
|
|
70
70
|
x: 0,
|
|
71
|
-
y:
|
|
72
|
-
blur:
|
|
73
|
-
spread:
|
|
74
|
-
emboss: "none"
|
|
71
|
+
y: 1,
|
|
72
|
+
blur: 3,
|
|
73
|
+
spread: 0,
|
|
74
|
+
emboss: "none",
|
|
75
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
76
|
+
lg: "0 8px 24px 0 rgba(0, 0, 0, 0.12), 0 2px 6px 0 rgba(0, 0, 0, 0.06)"
|
|
77
|
+
},
|
|
78
|
+
transition: {
|
|
79
|
+
fast: "0.15s",
|
|
80
|
+
normal: "0.25s",
|
|
81
|
+
slow: "0.35s",
|
|
82
|
+
ease: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
83
|
+
easeOut: "cubic-bezier(0, 0, 0.2, 1)"
|
|
75
84
|
},
|
|
76
85
|
gap: defineBySize({
|
|
77
86
|
small: 6,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.js","names":[],"sources":["../../../src/theme/presets/light.ts"],"sourcesContent":["import { defineBySize } from '../helper'\nimport { UITheme } from '../ui-theme'\n\nexport const lightTheme: UITheme = new UITheme(\n {\n color: {\n primary: '#
|
|
1
|
+
{"version":3,"file":"light.js","names":[],"sources":["../../../src/theme/presets/light.ts"],"sourcesContent":["import { defineBySize } from '../helper'\nimport { UITheme } from '../ui-theme'\n\nexport const lightTheme: UITheme = new UITheme(\n {\n color: {\n primary: '#2563eb',\n success: '#16a34a',\n warning: '#d97706',\n danger: '#dc2626',\n info: '#0891b2',\n disabled: '#f4f4f5',\n default: '#f4f4f5'\n },\n\n bg: {\n color: {\n bottom: '#f4f4f5',\n middle: '#fafafa',\n top: '#ffffff',\n hover: '#f4f4f5',\n black: '#000000'\n },\n\n filter: { blur: 'none', saturate: 'none' }\n },\n\n // color 用于结构分隔线(保持安静);mutedColor 用于表单控件/卡片描边(需要清晰的 affordance)\n border: { color: '#e4e4e7', mutedColor: '#d4d4d8', width: 1, style: 'solid' },\n\n 'text-color': {\n title: '#18181b',\n main: '#3f3f46',\n placeholder: '#a1a1aa',\n second: '#71717a',\n assist: '#d4d4d8',\n disabled: '#a1a1aa',\n white: '#fff'\n },\n\n // 对齐 Tailwind rounded-md / rounded-lg / rounded-xl\n radius: defineBySize({ small: 6, default: 8, large: 12 }),\n\n 'form-component-height': defineBySize({ small: 24, default: 32, large: 40 }),\n\n 'font-family':\n 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif',\n\n 'font-size-title': defineBySize({ small: 14, default: 16, large: 18 }),\n\n 'font-size-main': defineBySize({ small: 12, default: 14, large: 16 }),\n\n 'font-size-assist': defineBySize({ small: 12, default: 12, large: 14 }),\n\n shadow: {\n color: '#00000014',\n x: 0,\n y: 1,\n blur: 3,\n spread: 0,\n emboss: 'none',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',\n lg: '0 8px 24px 0 rgba(0, 0, 0, 0.12), 0 2px 6px 0 rgba(0, 0, 0, 0.06)'\n },\n\n transition: {\n fast: '0.15s',\n normal: '0.25s',\n slow: '0.35s',\n ease: 'cubic-bezier(0.4, 0, 0.2, 1)',\n easeOut: 'cubic-bezier(0, 0, 0.2, 1)'\n },\n\n gap: defineBySize({ small: 6, default: 8, large: 12 }),\n\n breakpoint: { xs: 600, sm: 960, md: 1280, lg: 1920 },\n\n button: { 'default-bg': 'var(--u-bg-color-top)' }\n },\n { reactive: false }\n)\n"],"mappings":";;;AAGA,MAAa,aAAsB,IAAI,QACr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
shadow: {
|
|
39
|
-
color: "
|
|
39
|
+
color: "#0000000d",
|
|
40
40
|
x: 0,
|
|
41
41
|
y: 1,
|
|
42
42
|
blur: 2,
|
|
@@ -76,12 +76,14 @@ const shadcnDarkTheme = shadcnLightTheme.new({
|
|
|
76
76
|
white: "#ffffff"
|
|
77
77
|
},
|
|
78
78
|
shadow: {
|
|
79
|
-
color: "
|
|
79
|
+
color: "#00000066",
|
|
80
80
|
x: 0,
|
|
81
81
|
y: 1,
|
|
82
82
|
blur: 2,
|
|
83
83
|
spread: 0,
|
|
84
|
-
emboss: "none"
|
|
84
|
+
emboss: "none",
|
|
85
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.4)",
|
|
86
|
+
lg: "0 8px 24px 0 rgba(0, 0, 0, 0.5), 0 2px 6px 0 rgba(0, 0, 0, 0.35)"
|
|
85
87
|
},
|
|
86
88
|
button: {
|
|
87
89
|
"primary-text-color": "#000000",
|