@campus-admin/theme 2.0.6 → 2.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -101,15 +101,15 @@ function S(e = {}) {
101
101
  }
102
102
  };
103
103
  r("tenantDefault", e.tenantDefault, []), r("tenant", e.tenant, e.tenantDefault?.locks ?? []);
104
- let a = n.primary ?? "#1677ff";
104
+ let i = n.primary ?? "#1677ff";
105
105
  return {
106
106
  theme: {
107
107
  style: n.style ?? "nova",
108
- primary: a,
109
- headerBg: n.headerBg ?? a,
108
+ primary: i,
109
+ headerBg: n.headerBg ?? i,
110
110
  login: n.login ?? {
111
111
  type: "gradient",
112
- value: `linear-gradient(135deg, ${a}, ${i(a, "#000000", .3)})`
112
+ value: `linear-gradient(135deg, color-mix(in srgb, var(--ca-bg-page) 94%, ${i}), var(--ca-bg-page))`
113
113
  },
114
114
  logo: n.logo,
115
115
  siteName: n.siteName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campus-admin/theme",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "主题:Token、风格、主题推导与对比度守卫",
5
5
  "type": "module",
6
6
  "license": "MIT",