@done-coding/admin-plugin-theme 0.4.2-alpha.0 → 0.4.3-alpha.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.
@@ -0,0 +1,83 @@
1
+ const o = "admin-theme-signal-teal";
2
+ function r() {
3
+ if (typeof document > "u" || document.getElementById(o)) return;
4
+ const e = document.createElement("style");
5
+ e.id = o, e.setAttribute("data-dc-theme", "signal-teal"), e.textContent = `
6
+ :root{--dc-core-font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"JetBrains Mono","Liberation Mono",monospace;}
7
+ .app-header-module-item{font-family:var(--dc-core-font-mono);letter-spacing:.02em;}
8
+ .app-sidebar .el-menu-item.is-active{position:relative;background:var(--el-color-primary-light-9);}
9
+ .app-sidebar .el-menu-item.is-active::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:58%;width:2px;border-radius:0 2px 2px 0;background:var(--dc-core-primary-color);pointer-events:none;}
10
+ `, document.head.appendChild(e);
11
+ }
12
+ function a() {
13
+ var e;
14
+ typeof document > "u" || (e = document.getElementById(o)) == null || e.remove();
15
+ }
16
+ const n = {
17
+ id: "signal-teal",
18
+ label: "青信控制台",
19
+ description: {
20
+ suitable: "工程师味的内容生产 / 运营中控台、数据看板、SaaS 工作台:要深青单色脊 + 克制浅色 premium 质感 + 等宽技术纹理(版本号 / 代号 / ID / env key),经典左栏、实心布局、密度中偏松。",
21
+ unsuitable: "需要强多色出彩 / 暖色亲和的内容前台;偏好套框悬浮或动画 shell 的炫技形态;高视觉负载诉求(本主题刻意克制,boldness 仅在青色激活轨一处)。"
22
+ },
23
+ config: {
24
+ light: {
25
+ bodyColor: "#f5f6f8",
26
+ baseColor: "#1f2329",
27
+ primaryColor: "#0c8c88",
28
+ successColor: "#1a9e70",
29
+ warningColor: "#e08a3c",
30
+ dangerColor: "#f04438",
31
+ errorColor: "#f04438",
32
+ infoColor: "#3b7dd8",
33
+ surface: "#ffffff",
34
+ borderColor: "#e6e8eb",
35
+ borderWidth: "1px",
36
+ radius: "10px",
37
+ accent: "#6c60b4",
38
+ shadow: "0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.1)",
39
+ focusRing: "0 0 0 3px rgba(12, 140, 136, 0.35)"
40
+ },
41
+ dark: {
42
+ bodyColor: "#0e1116",
43
+ baseColor: "#e6e9ef",
44
+ primaryColor: "#2bb8ae",
45
+ successColor: "#34d39e",
46
+ warningColor: "#f0a85a",
47
+ dangerColor: "#f87171",
48
+ errorColor: "#f87171",
49
+ infoColor: "#6ba8f0",
50
+ surface: "#161a20",
51
+ borderColor: "#262e38",
52
+ borderWidth: "1px",
53
+ radius: "10px",
54
+ accent: "#9b8cf0",
55
+ shadow: "0 12px 32px -16px rgba(0, 0, 0, 0.7)",
56
+ focusRing: "0 0 0 3px rgba(43, 184, 174, 0.4)"
57
+ }
58
+ },
59
+ layout: {
60
+ // 经典左栏 + 实心布局:内置默认 AppShell(不写自定义 shell)、不套框、无悬浮内缝。
61
+ sidebar: {
62
+ width: 232,
63
+ collapseWidth: 64,
64
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))"
65
+ },
66
+ header: {
67
+ height: 52,
68
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))"
69
+ },
70
+ body: { shimPadding: 20 },
71
+ gap: { size: 0 }
72
+ },
73
+ // 生命周期钩子(榨干点):激活注入青色激活轨 + 等宽纹理,切走 / 注销清理。
74
+ onActivate() {
75
+ r();
76
+ },
77
+ onDeactivate() {
78
+ a();
79
+ }
80
+ };
81
+ export {
82
+ n as default
83
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@done-coding/admin-plugin-theme",
3
- "version": "0.4.2-alpha.0",
3
+ "version": "0.4.3-alpha.0",
4
4
  "description": "内部前端库",
5
5
  "private": false,
6
6
  "main": "es/index.mjs",
@@ -50,7 +50,7 @@
50
50
  "license": "MIT",
51
51
  "sideEffects": false,
52
52
  "devDependencies": {
53
- "@done-coding/admin-core": "0.12.3-alpha.0",
53
+ "@done-coding/admin-core": "0.13.0",
54
54
  "@done-coding/cli-inject": "^0.6.2",
55
55
  "@types/node": "^18.0.0",
56
56
  "@vitejs/plugin-vue": "^5.0.4",
@@ -72,5 +72,5 @@
72
72
  "engines": {
73
73
  "node": ">=18.0.0"
74
74
  },
75
- "gitHead": "db30ad6085db603fe927389e93d3d5b46aa545ce"
75
+ "gitHead": "23488f3e77b1eb7804651c71f4b6fdf02600a91d"
76
76
  }
@@ -0,0 +1,3 @@
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const signalTeal: CoreThemePreset;
3
+ export default signalTeal;
package/types/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AppThemeColor, AppThemeConfig, CoreConfigDescription, CoreThemePresetLayout, CoreThemeLifecycleHooks, CoreThemeLifecycleContext } from '@done-coding/admin-core';
2
- export type CoreThemeStyleId = "soft" | "glass" | "gugong" | "cyber" | "contrast" | "ink" | "copilot-calm" | "sandstone-editorial" | "brutal-concrete" | "nordic-fjord" | "sunset-amber" | "velvet-noir" | "botanical-paper" | "coral-reef" | "graphite-mono" | "aurora-mesh" | "synapse-grid" | "dragon-vermilion" | "terminal-phosphor" | "quantum-ai" | "kitchen-foundry" | "studio-stage";
2
+ export type CoreThemeStyleId = "soft" | "glass" | "gugong" | "cyber" | "contrast" | "ink" | "copilot-calm" | "sandstone-editorial" | "brutal-concrete" | "nordic-fjord" | "sunset-amber" | "velvet-noir" | "botanical-paper" | "coral-reef" | "graphite-mono" | "aurora-mesh" | "synapse-grid" | "dragon-vermilion" | "terminal-phosphor" | "quantum-ai" | "kitchen-foundry" | "studio-stage" | "signal-teal";
3
3
  export type CoreThemeStyleInput = CoreThemeStyleId | (string & {});
4
4
  export interface CoreThemePreset extends CoreThemeLifecycleHooks {
5
5
  id: CoreThemeStyleInput;