agy-mocha-gold-theme 0.0.0-stage → 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 baixiangguo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,97 @@
1
- # Temporary Holding Version
1
+ # Agy Mocha Gold Theme
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **百香果个人推荐的反重力(Antigravity)配色方案与字体方案**
4
+ > 左侧目录区与外框采用温润沉稳的 **摩卡深色金(`#B79C70`)** 搭配高对比深黑文字(`#111111`),右侧工作区采用护眼柔和的 **浅色金(`#F0E8D4`)**,并与 **寒蝉活宋体(`ChillHuoSong_F`)** 组成一套耐看且长时间阅读不累的日常工作环境。
5
+
6
+ ---
7
+
8
+ ## 视觉与配色方案
9
+
10
+ | 区域 / 状态 | 浅色模式(推荐) | 深色模式隔离 | 说明 |
11
+ | --- | --- | --- | --- |
12
+ | 左侧目录区与窗口外框 | `#B79C70`(摩卡深色金) | `#1D1711` | 左侧导航与项目目录区域统一底色 |
13
+ | 左侧与标题栏文字图标 | `#111111` | 跟随深色原生 | 去除半透明发灰,保证高可读性 |
14
+ | 选中 / 运行中会话底色 | `#EFE8D5`(暖白) | `#352A1F` | 与「+ 新建会话」按钮一致的圆角底色 |
15
+ | 右侧工作区背景 | `#F0E8D4`(浅色金) | `#27211A` | 聊天画布与主面板底色 |
16
+ | 凹槽底色 (`--onyx-well`) | `#E9DFC6` | `#211B15` | 次级容器与浅槽区域 |
17
+ | 卡片与边框 (`--card` / `--border`) | `#F6F0E2` / `#D4C3A0` | `#302820` / `#3E3326` | 保留干净的输入框与卡片层次,不覆写 `--onyx-frame` |
18
+
19
+ ---
20
+
21
+ ## 推荐字体:寒蝉活宋体(`ChillHuoSong_F`)
22
+
23
+ - **Powertools 字体名**:`ChillHuoSong_F`
24
+ - **推荐字重**:`400`
25
+ - **开源字体仓库**:[Warren2060/ChillMovableType](https://github.com/Warren2060/ChillMovableType)
26
+ - **开源协议**:[SIL Open Font License 1.1 (OFL-1.1)](https://scripts.sil.org/OFL)
27
+
28
+ > 为保持包体积精简并尊重字体原始仓库分发规范,本仓库不包含 `.otf` 字体二进制文件。安装 CLI 会自动检测本机字体目录是否已安装 `ChillHuoSong*`;若未检测到,请前往上述官方仓库下载并安装字体即可。
29
+
30
+ ---
31
+
32
+ ## 前置依赖与自动生效机制
33
+
34
+ 本方案基于 [Agy Powertools](https://github.com/WhiteBr1ck/agy-powertools) 提供的持久化 `custom.css` 与本地字体配置能力:
35
+
36
+ 1. **每次打开自动生效**:配置写入用户本地的 Powertools 数据目录(`~/.gemini/antigravity/plugin_data/agy-powertools/`),随 Powertools 启动自动加载,**每次打开 Antigravity 都会自动应用**。
37
+ 2. **插件更新不覆盖**:`custom.css` 与 `settings.json` 独立于插件安装目录之外,升级 Agy Powertools 不会丢失你的配色和字体。
38
+ 3. **热重载生效**:保存后约 **4 秒内自动热生效**,无需重启客户端。
39
+
40
+ ---
41
+
42
+ ## 安装与使用
43
+
44
+ ### 方式一:npx 一键安装(推荐)
45
+
46
+ 需要本机已安装 Node.js `>= 18` 与 Agy Powertools:
47
+
48
+ ```bash
49
+ npx agy-mocha-gold-theme
50
+ ```
51
+
52
+ 常用参数与子命令:
53
+
54
+ ```bash
55
+ # 仅应用配色,不修改当前字体设置
56
+ npx agy-mocha-gold-theme install --no-font
57
+
58
+ # 预览将执行的操作(不修改磁盘文件)
59
+ npx agy-mocha-gold-theme install --dry-run
60
+
61
+ # 查看当前 custom.css、settings.json 与寒蝉活宋字体检测状态
62
+ npx agy-mocha-gold-theme status
63
+
64
+ # 一键关闭自定义样式(保留 custom.css 文件,随时可再启用)
65
+ npx agy-mocha-gold-theme uninstall
66
+ ```
67
+
68
+ ### 方式二:发给 Antigravity Agent 一键配置
69
+
70
+ 复制下面这段话发给 Antigravity:
71
+
72
+ > 请帮我配置开源方案 `agy-mocha-gold-theme`(https://github.com/s17765152890-gif/agy-mocha-gold-theme ):将仓库中的 `theme/custom.css` 写入 Powertools 的 `custom.css`(Windows 为 `%USERPROFILE%\.gemini\antigravity\plugin_data\agy-powertools\custom.css`,macOS/Linux 为 `~/.gemini/antigravity/plugin_data/agy-powertools/custom.css`),并在 `settings.json` 中启用 `customCssEnabled: true`、设置 `customFont: "ChillHuoSong_F"` 与 `customFontWeight: 400`,保留我其余现有设置不变。
73
+
74
+ ### 方式三:手动配置
75
+
76
+ 1. 先安装并启用 [Agy Powertools](https://github.com/WhiteBr1ck/agy-powertools)。
77
+ 2. 从 [Warren2060/ChillMovableType](https://github.com/Warren2060/ChillMovableType) 下载并安装寒蝉活宋体(`ChillHuoSong_F`)。
78
+ 3. 将本仓库的 [`theme/custom.css`](./theme/custom.css) 复制到:
79
+ - **Windows**:`%USERPROFILE%\.gemini\antigravity\plugin_data\agy-powertools\custom.css`
80
+ - **macOS / Linux**:`~/.gemini/antigravity/plugin_data/agy-powertools/custom.css`
81
+ 4. 打开 **Powertools -> 设置 -> 常规**:
82
+ - 开启 **自定义样式 (CSS)**
83
+ - 在 **本地字体与字重** 中选择 `ChillHuoSong_F`、字重 `400`
84
+
85
+ ---
86
+
87
+ ## 已知限制说明
88
+
89
+ - **Windows 窗口右上角原生控制按钮(`− □ ×`)**:该区域由 Windows Electron 主进程的 `titleBarOverlay` 系统层直接绘制,纯前端 `custom.css` 无法改变其系统层背景色。如需统一,可在客户端外观设置中切换一次深浅色触发重绘,或按需自行调整标题栏顶部规则。
90
+
91
+ ---
92
+
93
+ ## 许可证与致谢
94
+
95
+ - 本仓库脚本与样式采用 [MIT License](./LICENSE) 开源(Author: `baixiangguo`)。
96
+ - 推荐字体 **寒蝉活宋体(`ChillHuoSong`)** 来自 [Warren2060/ChillMovableType](https://github.com/Warren2060/ChillMovableType),遵循 **SIL Open Font License 1.1**。
97
+ - 样式注入与本地字体支持依赖 [WhiteBr1ck/agy-powertools](https://github.com/WhiteBr1ck/agy-powertools)。
package/bin/cli.mjs ADDED
@@ -0,0 +1,286 @@
1
+ #!/usr/bin/env node
2
+
3
+ import fs from 'node:fs';
4
+ import os from 'node:os';
5
+ import path from 'node:path';
6
+ import { fileURLToPath } from 'node:url';
7
+
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ const __dirname = path.dirname(__filename);
10
+ const PKG_ROOT = path.resolve(__dirname, '..');
11
+
12
+ const PKG_JSON = JSON.parse(fs.readFileSync(path.join(PKG_ROOT, 'package.json'), 'utf8'));
13
+ const PRESET = JSON.parse(fs.readFileSync(path.join(PKG_ROOT, 'preset.json'), 'utf8'));
14
+ const SOURCE_CSS_PATH = path.join(PKG_ROOT, 'theme', 'custom.css');
15
+
16
+ const POWERTOOLS_REPO = 'https://github.com/WhiteBr1ck/agy-powertools';
17
+ const FONT_REPO = 'https://github.com/Warren2060/ChillMovableType';
18
+
19
+ function getPowertoolsDataDir() {
20
+ return path.join(os.homedir(), '.gemini', 'antigravity', 'plugin_data', 'agy-powertools');
21
+ }
22
+
23
+ function getFontSearchDirs() {
24
+ const home = os.homedir();
25
+ const dirs = [];
26
+ if (process.platform === 'win32') {
27
+ const localAppData = process.env.LOCALAPPDATA || path.join(home, 'AppData', 'Local');
28
+ dirs.push(path.join(localAppData, 'Microsoft', 'Windows', 'Fonts'));
29
+ dirs.push('C:\\Windows\\Fonts');
30
+ } else if (process.platform === 'darwin') {
31
+ dirs.push(path.join(home, 'Library', 'Fonts'));
32
+ dirs.push('/Library/Fonts');
33
+ } else {
34
+ dirs.push(path.join(home, '.local', 'share', 'fonts'));
35
+ dirs.push(path.join(home, '.fonts'));
36
+ dirs.push('/usr/local/share/fonts');
37
+ dirs.push('/usr/share/fonts');
38
+ }
39
+ return dirs;
40
+ }
41
+
42
+ function findMatchingFonts(dirs, maxDepth = 3) {
43
+ const matched = [];
44
+ const walk = (dir, depth) => {
45
+ if (depth > maxDepth) return;
46
+ let entries;
47
+ try {
48
+ entries = fs.readdirSync(dir, { withFileTypes: true });
49
+ } catch {
50
+ return;
51
+ }
52
+ for (const entry of entries) {
53
+ const fullPath = path.join(dir, entry.name);
54
+ if (entry.isDirectory()) {
55
+ walk(fullPath, depth + 1);
56
+ } else if (entry.isFile() && /ChillHuoSong/i.test(entry.name)) {
57
+ matched.push(fullPath);
58
+ }
59
+ }
60
+ };
61
+ for (const dir of dirs) {
62
+ if (fs.existsSync(dir)) walk(dir, 0);
63
+ }
64
+ return matched;
65
+ }
66
+
67
+ function readSettingsSafe(settingsPath) {
68
+ if (!fs.existsSync(settingsPath)) {
69
+ return { exists: false, valid: true, data: {} };
70
+ }
71
+ try {
72
+ const raw = fs.readFileSync(settingsPath, 'utf8');
73
+ const parsed = JSON.parse(raw);
74
+ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
75
+ return { exists: true, valid: false, data: {}, error: 'settings.json 不是有效 JSON 对象' };
76
+ }
77
+ return { exists: true, valid: true, data: parsed };
78
+ } catch (err) {
79
+ return { exists: true, valid: false, data: {}, error: err?.message || 'JSON 解析失败' };
80
+ }
81
+ }
82
+
83
+ function printHelp() {
84
+ console.log(`
85
+ agy-mocha-gold-theme v${PKG_JSON.version}
86
+ 百香果个人推荐的反重力(Antigravity)摩卡深金 + 浅色金双色配色与寒蝉活宋字体方案
87
+
88
+ 用法:
89
+ npx agy-mocha-gold-theme [command] [options]
90
+
91
+ 命令:
92
+ install 安装/更新 custom.css 并启用配置(默认命令)
93
+ status 查看当前 Powertools 配置与本地字体检测状态
94
+ uninstall 关闭 customCssEnabled(保留 custom.css 以便随时重新启用)
95
+
96
+ 选项:
97
+ --no-font 仅应用配色,不修改 customFont / customFontWeight
98
+ --reset-font 配合 uninstall 使用,同时清空 customFont
99
+ --dry-run 仅预览将执行的操作,不写入任何文件
100
+ -h, --help 显示帮助信息
101
+ -v, --version 显示版本号
102
+ `.trim());
103
+ }
104
+
105
+ function printFontStatus() {
106
+ const fonts = findMatchingFonts(getFontSearchDirs());
107
+ if (fonts.length > 0) {
108
+ console.log(`[字体] 已检测到寒蝉活宋字体文件 (${fonts.length} 个):`);
109
+ for (const f of fonts) console.log(` - ${f}`);
110
+ } else {
111
+ console.log('[字体] 未在系统字体目录检测到 ChillHuoSong* 字体文件。');
112
+ console.log(` 如需完美复刻效果,请前往官方开源仓库下载并安装(SIL OFL 1.1):`);
113
+ console.log(` ${FONT_REPO}`);
114
+ }
115
+ }
116
+
117
+ function cmdStatus() {
118
+ const dataDir = getPowertoolsDataDir();
119
+ const cssPath = path.join(dataDir, 'custom.css');
120
+ const settingsPath = path.join(dataDir, 'settings.json');
121
+
122
+ console.log('=== Agy Mocha Gold Theme 状态检查 ===');
123
+ console.log(`Powertools 数据目录: ${dataDir} (${fs.existsSync(dataDir) ? '存在' : '不存在'})`);
124
+
125
+ if (fs.existsSync(cssPath)) {
126
+ const stat = fs.statSync(cssPath);
127
+ console.log(`custom.css: 已存在 (${stat.size} 字节)`);
128
+ } else {
129
+ console.log('custom.css: 不存在');
130
+ }
131
+
132
+ const settings = readSettingsSafe(settingsPath);
133
+ if (!settings.exists) {
134
+ console.log('settings.json: 不存在');
135
+ } else if (!settings.valid) {
136
+ console.log(`settings.json: 解析异常 (${settings.error})`);
137
+ } else {
138
+ const d = settings.data;
139
+ console.log(`settings.json:`);
140
+ console.log(` - enabled: ${Boolean(d.enabled)}`);
141
+ console.log(` - customCssEnabled: ${Boolean(d.customCssEnabled)}`);
142
+ console.log(` - customFont: ${JSON.stringify(d.customFont ?? '')}`);
143
+ console.log(` - customFontWeight: ${JSON.stringify(d.customFontWeight ?? null)}`);
144
+ }
145
+
146
+ printFontStatus();
147
+ }
148
+
149
+ function cmdInstall(flags) {
150
+ const noFont = flags.has('--no-font');
151
+ const dryRun = flags.has('--dry-run');
152
+ const dataDir = getPowertoolsDataDir();
153
+ const cssPath = path.join(dataDir, 'custom.css');
154
+ const settingsPath = path.join(dataDir, 'settings.json');
155
+ const sourceCss = fs.readFileSync(SOURCE_CSS_PATH, 'utf8');
156
+
157
+ if (dryRun) {
158
+ console.log('[dry-run] 预览安装操作(不会写入磁盘):');
159
+ }
160
+
161
+ if (!fs.existsSync(dataDir)) {
162
+ console.log(`[提示] 未检测到 Powertools 数据目录: ${dataDir}`);
163
+ console.log(` 请确保已安装并启用 Agy Powertools: ${POWERTOOLS_REPO}`);
164
+ if (dryRun) {
165
+ console.log(`[dry-run] 将创建目录: ${dataDir}`);
166
+ } else {
167
+ fs.mkdirSync(dataDir, { recursive: true });
168
+ console.log(`[目录] 已创建: ${dataDir}`);
169
+ }
170
+ }
171
+
172
+ if (fs.existsSync(cssPath)) {
173
+ const existingCss = fs.readFileSync(cssPath, 'utf8');
174
+ if (existingCss !== sourceCss) {
175
+ const stamp = new Date().toISOString().replace(/[:.]/g, '-');
176
+ const backupPath = path.join(dataDir, `custom.css.bak.${stamp}`);
177
+ if (dryRun) {
178
+ console.log(`[dry-run] 检测到现有 custom.css 内容不同,将备份至: ${backupPath}`);
179
+ } else {
180
+ fs.writeFileSync(backupPath, existingCss, 'utf8');
181
+ console.log(`[备份] 已备份原有 custom.css -> ${backupPath}`);
182
+ }
183
+ }
184
+ }
185
+
186
+ if (dryRun) {
187
+ console.log(`[dry-run] 将写入样式文件: ${cssPath} (${Buffer.byteLength(sourceCss, 'utf8')} 字节)`);
188
+ } else {
189
+ fs.writeFileSync(cssPath, sourceCss, 'utf8');
190
+ console.log(`[样式] 已写入: ${cssPath}`);
191
+ }
192
+
193
+ const settings = readSettingsSafe(settingsPath);
194
+ if (!settings.valid) {
195
+ console.error(`[错误] 无法解析现有 settings.json (${settings.error}),为避免丢失原有配置,已中止更新 settings.json。`);
196
+ process.exitCode = 1;
197
+ return;
198
+ }
199
+
200
+ const nextSettings = {
201
+ ...settings.data,
202
+ enabled: true,
203
+ customCssEnabled: true
204
+ };
205
+ if (!noFont) {
206
+ nextSettings.customFont = PRESET.powertoolsSettings.customFont;
207
+ nextSettings.customFontWeight = PRESET.powertoolsSettings.customFontWeight;
208
+ }
209
+
210
+ if (dryRun) {
211
+ console.log(`[dry-run] 将更新 ${settingsPath}:`);
212
+ console.log(` enabled=true, customCssEnabled=true${noFont ? ' (跳过字体设置)' : `, customFont="${nextSettings.customFont}", customFontWeight=${nextSettings.customFontWeight}`}`);
213
+ } else {
214
+ fs.writeFileSync(settingsPath, `${JSON.stringify(nextSettings, null, 2)}\n`, 'utf8');
215
+ console.log(`[配置] 已更新: ${settingsPath}`);
216
+ }
217
+
218
+ printFontStatus();
219
+ console.log('\n[生效说明]');
220
+ console.log('- 配置已持久化至 Powertools 数据目录,每次启动 Antigravity 会自动加载生效,更新 Powertools 不会被覆盖。');
221
+ console.log('- 如 Antigravity 正在运行,Powertools 会在约 4 秒内自动热重载新样式(无需重启)。');
222
+ }
223
+
224
+ function cmdUninstall(flags) {
225
+ const resetFont = flags.has('--reset-font');
226
+ const dryRun = flags.has('--dry-run');
227
+ const dataDir = getPowertoolsDataDir();
228
+ const settingsPath = path.join(dataDir, 'settings.json');
229
+ const settings = readSettingsSafe(settingsPath);
230
+
231
+ if (!settings.exists) {
232
+ console.log(`[提示] 未找到 ${settingsPath},无需修改。`);
233
+ return;
234
+ }
235
+ if (!settings.valid) {
236
+ console.error(`[错误] 无法解析 ${settingsPath}: ${settings.error}`);
237
+ process.exitCode = 1;
238
+ return;
239
+ }
240
+
241
+ const nextSettings = {
242
+ ...settings.data,
243
+ customCssEnabled: false
244
+ };
245
+ if (resetFont) {
246
+ nextSettings.customFont = '';
247
+ }
248
+
249
+ if (dryRun) {
250
+ console.log(`[dry-run] 将更新 ${settingsPath}: customCssEnabled=false${resetFont ? ', customFont=""' : ''}(保留 custom.css 文件)`);
251
+ return;
252
+ }
253
+
254
+ fs.writeFileSync(settingsPath, `${JSON.stringify(nextSettings, null, 2)}\n`, 'utf8');
255
+ console.log(`[已关闭] 已在 ${settingsPath} 中将 customCssEnabled 设为 false(保留了 custom.css 以便随时重新启用)。`);
256
+ }
257
+
258
+ function main() {
259
+ const args = process.argv.slice(2);
260
+ const flags = new Set(args.filter(a => a.startsWith('-')));
261
+ const positional = args.filter(a => !a.startsWith('-'));
262
+
263
+ if (flags.has('-h') || flags.has('--help')) {
264
+ printHelp();
265
+ return;
266
+ }
267
+ if (flags.has('-v') || flags.has('--version')) {
268
+ console.log(PKG_JSON.version);
269
+ return;
270
+ }
271
+
272
+ const cmd = positional[0] || 'install';
273
+ if (cmd === 'install') {
274
+ cmdInstall(flags);
275
+ } else if (cmd === 'status') {
276
+ cmdStatus();
277
+ } else if (cmd === 'uninstall') {
278
+ cmdUninstall(flags);
279
+ } else {
280
+ console.error(`未知命令: ${cmd}`);
281
+ printHelp();
282
+ process.exitCode = 1;
283
+ }
284
+ }
285
+
286
+ main();
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "agy-mocha-gold-theme",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "百香果个人推荐的 Antigravity(反重力)摩卡深金 + 浅色金双色配色方案与寒蝉活宋字体方案(基于 Agy Powertools)",
5
+ "type": "module",
6
+ "bin": {
7
+ "agy-mocha-gold-theme": "./bin/cli.mjs"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "theme/",
12
+ "preset.json",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "keywords": [
17
+ "antigravity",
18
+ "agy",
19
+ "agy-powertools",
20
+ "theme",
21
+ "custom-css",
22
+ "mocha-gold",
23
+ "chillhuosong",
24
+ "font"
25
+ ],
26
+ "author": "baixiangguo",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/s17765152890-gif/agy-mocha-gold-theme.git"
31
+ },
32
+ "homepage": "https://github.com/s17765152890-gif/agy-mocha-gold-theme#readme",
33
+ "bugs": {
34
+ "url": "https://github.com/s17765152890-gif/agy-mocha-gold-theme/issues"
35
+ },
36
+ "engines": {
37
+ "node": ">=18.0.0"
38
+ }
39
+ }
package/preset.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "agy-mocha-gold-theme",
3
+ "displayName": "百香果推荐 · 反重力摩卡金配色与寒蝉活宋字体方案",
4
+ "version": "1.0.0",
5
+ "author": "baixiangguo",
6
+ "license": "MIT",
7
+ "requires": {
8
+ "plugin": "agy-powertools",
9
+ "pluginRepo": "https://github.com/WhiteBr1ck/agy-powertools"
10
+ },
11
+ "colors": {
12
+ "light": {
13
+ "sidebar": "#B79C70",
14
+ "sidebarText": "#111111",
15
+ "sidebarSelected": "#EFE8D5",
16
+ "workspace": "#F0E8D4",
17
+ "onyxWell": "#E9DFC6",
18
+ "card": "#F6F0E2",
19
+ "cardBorder": "#D9C9A8",
20
+ "cardEdge": "#C8B58F",
21
+ "border": "#D4C3A0"
22
+ },
23
+ "dark": {
24
+ "sidebar": "#1D1711",
25
+ "sidebarSelected": "#352A1F",
26
+ "workspace": "#27211A",
27
+ "onyxWell": "#211B15",
28
+ "card": "#302820",
29
+ "cardBorder": "#403528",
30
+ "cardEdge": "#4C3F30",
31
+ "border": "#3E3326"
32
+ }
33
+ },
34
+ "powertoolsSettings": {
35
+ "enabled": true,
36
+ "customCssEnabled": true,
37
+ "customFont": "ChillHuoSong_F",
38
+ "customFontWeight": 400
39
+ },
40
+ "font": {
41
+ "family": "ChillHuoSong_F",
42
+ "displayName": "寒蝉活宋体 (ChillHuoSong)",
43
+ "weight": 400,
44
+ "license": "SIL Open Font License 1.1 (OFL-1.1)",
45
+ "repository": "https://github.com/Warren2060/ChillMovableType"
46
+ }
47
+ }
@@ -0,0 +1,128 @@
1
+ /* 浅色模式:右侧工作区(浅色金)与基础侧栏变量
2
+ 注意:不覆写 --onyx-frame,避免底部输入框外圈变成摩卡深金 */
3
+ :root,
4
+ body,
5
+ body[data-agy-theme] {
6
+ /* 左侧目录区主色(摩卡深色金)与选中会话底色(与「+ 新建会话」一致的暖白 #EFE8D5) */
7
+ --sidebar: #B79C70 !important;
8
+ --onyx-selected: #EFE8D5 !important;
9
+
10
+ /* 右侧工作区(浅色金) */
11
+ --background: #F0E8D4 !important;
12
+ --onyx-well: #E9DFC6 !important;
13
+ --card: #F6F0E2 !important;
14
+ --card-border: #D9C9A8 !important;
15
+ --card-edge: #C8B58F !important;
16
+ --border: #D4C3A0 !important;
17
+ }
18
+
19
+ /* 浅色模式:统一整个窗口外框底座(含顶部标题栏、右侧细边、底部细边)为摩卡深色金,
20
+ 仅设背景色,不改写工作区内部的文字变量 */
21
+ :root:not(.dark),
22
+ :root:not(.dark) body,
23
+ :root:not(.dark) body[data-agy-theme],
24
+ :root:not(.dark) #root,
25
+ :root:not(.dark) #root :is(div, main):has([role="navigation"]),
26
+ :root:not(.dark) #root :is(div, main):has([data-testid="pane-titlebar-toolbar"]) {
27
+ background-color: #B79C70 !important;
28
+ }
29
+
30
+ /* 浅色模式:左侧整个目录区与顶部标题栏统一摩卡深色金,文字与图标统一为深黑 #111111 */
31
+ :root:not(.dark) [role="navigation"][aria-label="Sidebar"],
32
+ :root:not(.dark) [role="navigation"][data-agy-original-aria-label="Sidebar"],
33
+ :root:not(.dark) .bg-sidebar,
34
+ :root:not(.dark) aside:has([data-testid="sidebar-navigation-items"]),
35
+ :root:not(.dark) aside:has([role="navigation"][aria-label="Sidebar"]),
36
+ :root:not(.dark) aside:has([role="navigation"][data-agy-original-aria-label="Sidebar"]),
37
+ :root:not(.dark) :is(header, div):has([data-testid="pane-titlebar-toolbar"]):not(:has([data-testid="conversation-view"])):not(:has([data-agy-management-page])) {
38
+ background-color: #B79C70 !important;
39
+ color: #111111 !important;
40
+ --foreground: #111111 !important;
41
+ --muted-foreground: #111111 !important;
42
+ --sidebar-foreground: #111111 !important;
43
+ --secondary-foreground: #111111 !important;
44
+ --accent-foreground: #111111 !important;
45
+ --card-foreground: #111111 !important;
46
+ --border: rgba(17, 17, 17, 0.16) !important;
47
+ }
48
+
49
+ /* 浅色模式:强制左侧目录区与顶部标题栏所有文字与图标使用深黑 #111111(排除流光动效层与弹窗) */
50
+ :root:not(.dark) :is(
51
+ [role="navigation"][aria-label="Sidebar"],
52
+ [role="navigation"][data-agy-original-aria-label="Sidebar"],
53
+ .bg-sidebar,
54
+ aside:has([data-testid="sidebar-navigation-items"]),
55
+ aside:has([role="navigation"][aria-label="Sidebar"]),
56
+ aside:has([role="navigation"][data-agy-original-aria-label="Sidebar"]),
57
+ :is(header, div):has([data-testid="pane-titlebar-toolbar"]):not(:has([data-testid="conversation-view"])):not(:has([data-agy-management-page]))
58
+ ) :is(a, button, span, p, div, h1, h2, h3, label, svg):not([data-agy-powertools-root="sidebar-beam"]):not(.agy-sb-beam-layer):not(.agy-sb-beam-layer *):not([role="dialog"]):not([role="dialog"] *):not([data-radix-popper-content-wrapper]):not([data-radix-popper-content-wrapper] *) {
59
+ color: #111111 !important;
60
+ }
61
+
62
+ /* 浅色模式:去除左侧目录区与顶部标题栏半透明发灰字效(保留 opacity-0 悬停操作按钮隐藏逻辑) */
63
+ :root:not(.dark) :is(
64
+ [role="navigation"][aria-label="Sidebar"],
65
+ [role="navigation"][data-agy-original-aria-label="Sidebar"],
66
+ .bg-sidebar,
67
+ aside:has([data-testid="sidebar-navigation-items"]),
68
+ :is(header, div):has([data-testid="pane-titlebar-toolbar"]):not(:has([data-testid="conversation-view"])):not(:has([data-agy-management-page]))
69
+ ) :is([class*="opacity-4"], [class*="opacity-5"], [class*="opacity-6"], [class*="opacity-7"], [class*="opacity-8"]):not(.agy-row-actions):not(.agy-row-actions *):not([data-agy-powertools-root]):not([data-agy-powertools-root] *):not([role="dialog"]):not([role="dialog"] *) {
70
+ opacity: 1 !important;
71
+ }
72
+
73
+ /* 浅色模式:正在运行/等待确认的会话与当前选中的会话统一变为与「+ 新建会话」一致的暖白 #EFE8D5 */
74
+ :root:not(.dark) .agy-sidebar-row[data-agy-sb-running="true"],
75
+ :root:not(.dark) .agy-sidebar-row[data-agy-sb-state="waiting"],
76
+ :root:not(.dark) .agy-sidebar-row:has([data-agy-sb-native-spinner]),
77
+ :root:not(.dark) .agy-sidebar-row:has(svg[class*="lucide-bell"]),
78
+ :root:not(.dark) .agy-sidebar-row:is([aria-current="page"], [aria-selected="true"], [data-active="true"], [data-selected="true"], [data-state="active"]),
79
+ :root:not(.dark) .agy-sidebar-row:has([aria-current="page"], [aria-selected="true"], [data-active="true"], [data-selected="true"], [data-state="active"]) {
80
+ background-color: #EFE8D5 !important;
81
+ border-radius: 8px !important;
82
+ }
83
+
84
+ /* 浅色模式:顶部标题栏按钮与子容器去除浅色突兀底块,改为半透明摩卡态 */
85
+ :root:not(.dark) :is(header, div):has([data-testid="pane-titlebar-toolbar"]):not(:has([data-testid="conversation-view"])):not(:has([data-agy-management-page])) {
86
+ --accent: rgba(17, 17, 17, 0.14) !important;
87
+ --secondary: rgba(17, 17, 17, 0.12) !important;
88
+ --muted: rgba(17, 17, 17, 0.10) !important;
89
+ }
90
+
91
+ :root:not(.dark) :is(header, div):has([data-testid="pane-titlebar-toolbar"]):not(:has([data-testid="conversation-view"])):not(:has([data-agy-management-page])) > div:not([role="dialog"]):not([data-radix-popper-content-wrapper]) {
92
+ background-color: transparent !important;
93
+ }
94
+
95
+ :root:not(.dark) [data-testid="toggle-aux-sidebar"],
96
+ :root:not(.dark) [data-testid="toggle-overview-panel"],
97
+ :root:not(.dark) [data-testid="titlebar-more-actions"] {
98
+ background-color: transparent !important;
99
+ color: #111111 !important;
100
+ }
101
+
102
+ :root:not(.dark) [data-testid="toggle-aux-sidebar"][aria-pressed="true"],
103
+ :root:not(.dark) [data-testid="toggle-aux-sidebar"][data-state="on"],
104
+ :root:not(.dark) [data-testid="toggle-aux-sidebar"][data-state="open"],
105
+ :root:not(.dark) [data-testid="toggle-aux-sidebar"]:hover,
106
+ :root:not(.dark) [data-testid="toggle-overview-panel"][aria-pressed="true"],
107
+ :root:not(.dark) [data-testid="toggle-overview-panel"][data-state="on"],
108
+ :root:not(.dark) [data-testid="toggle-overview-panel"][data-state="open"],
109
+ :root:not(.dark) [data-testid="toggle-overview-panel"]:hover,
110
+ :root:not(.dark) [data-testid="titlebar-more-actions"]:hover {
111
+ background-color: rgba(17, 17, 17, 0.14) !important;
112
+ }
113
+
114
+ /* 深色模式隔离:避免浅色变量覆盖深色主题 */
115
+ :root.dark,
116
+ :root.dark body,
117
+ :root.dark body[data-agy-theme],
118
+ body.dark,
119
+ body[data-agy-theme].dark {
120
+ --sidebar: #1D1711 !important;
121
+ --onyx-selected: #352A1F !important;
122
+ --background: #27211A !important;
123
+ --onyx-well: #211B15 !important;
124
+ --card: #302820 !important;
125
+ --card-border: #403528 !important;
126
+ --card-edge: #4C3F30 !important;
127
+ --border: #3E3326 !important;
128
+ }