claude-code-cost 0.8.1 → 0.10.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/README.md +23 -74
- package/package.json +1 -1
- package/public/app.js +85 -6
- package/public/index.html +5 -0
- package/public/style.css +69 -0
- package/public/themes.css +615 -0
- package/server.js +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/claude-code-cost)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**[Live Demo & Docs](https://nikiforovall.blog/claude-code-cost/)**
|
|
8
|
+
|
|
9
|
+
> Know what [Claude Code](https://docs.anthropic.com/en/docs/claude-code) costs you — per day, per project, per session.
|
|
10
|
+
|
|
11
|
+

|
|
8
12
|
|
|
9
13
|
## Getting Started
|
|
10
14
|
|
|
@@ -12,90 +16,35 @@
|
|
|
12
16
|
npx claude-code-cost --open
|
|
13
17
|
```
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
That's it. No hooks, no config — the dashboard reads your existing Claude Code session files.
|
|
18
|
-
|
|
19
|
-
### Overview
|
|
20
|
-
|
|
21
|
-

|
|
22
|
-

|
|
23
|
-
|
|
24
|
-
### Projects
|
|
19
|
+
That's it — no hooks, no config. The dashboard reads the JSONL session logs Claude Code already writes to `~/.claude/projects/` and aggregates them server-side. Completely read-only; nothing leaves your machine.
|
|
25
20
|
|
|
26
|
-
|
|
27
|
-

|
|
21
|
+
## Features
|
|
28
22
|
|
|
29
|
-
|
|
23
|
+
- **Top-down drill-down** — total → project → session → message; every number is one click from its breakdown
|
|
24
|
+
- **Dynamic pricing** — live model prices from [LiteLLM](https://github.com/BerriAI/litellm) with tiered pricing (200K threshold), cache token costs, and fast mode multipliers; offline fallback included
|
|
25
|
+
- **Daily cost chart** — configurable range from 1 day to 1 year
|
|
26
|
+
- **Cost by model** — see how spend splits across Opus, Sonnet, and Haiku
|
|
27
|
+
- **Cache efficiency** — cache reads vs. fresh input tokens across sessions
|
|
28
|
+
- **Session detail** — cumulative cost curve, stacked token bars, per-message table with model, tools, and running total
|
|
29
|
+
- **Accurate accounting** — same pricing logic as [ccusage](https://github.com/ryoppippi/ccusage): pre-calculated `costUSD` when present, deduplication by `messageId + requestId`
|
|
30
|
+
- **17 color themes** — Ember, Gruvbox, Catppuccin, Tokyo Night, Dracula, Nord, and more — each in light and dark, PWA installable
|
|
31
|
+
- **Hub integration** — runs standalone or as a tab in [Claude Code Hub](https://github.com/NikiforovAll/claude-code-hub) alongside Kanban, Marketplace, and Memory
|
|
30
32
|
|
|
31
|
-

|
|
33
|
+

|
|
33
34
|
|
|
34
|
-
|
|
35
|
+

|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
- **Dynamic pricing** — Fetches live model prices from [LiteLLM](https://github.com/BerriAI/litellm), supports tiered pricing (200K threshold), cache token costs, and fast mode multipliers
|
|
38
|
-
- **Daily cost chart** — Bar chart with cumulative line, configurable date range (1d / 3d / 7d / 30d / 90d / 1y)
|
|
39
|
-
- **Model distribution** — Donut chart showing cost breakdown by model
|
|
40
|
-
- **Cache efficiency** — Track how well prompt caching is working across your sessions
|
|
41
|
-
- **Project breakdown** — See which projects cost the most, sortable by cost, sessions, or activity
|
|
42
|
-
- **Session detail** — Message-level cost breakdown with cumulative cost and token stacked bar charts
|
|
43
|
-
- **Dark & light theme** — Matches the Claude Code Hub design system
|
|
44
|
-
- **Hub integration** — Works as a tab in Claude Code Hub alongside Kanban and Marketplace
|
|
45
|
-
- **Instant reload** — API responses cached in browser; Refresh button for fresh data
|
|
37
|
+

|
|
46
38
|
|
|
47
39
|
## Configuration
|
|
48
40
|
|
|
49
|
-
```bash
|
|
50
|
-
PORT=8080 npx claude-code-cost # Custom port
|
|
51
|
-
npx claude-code-cost --open # Auto-open browser
|
|
52
|
-
npx claude-code-cost --dir=~/.claude-work # Custom Claude config dir
|
|
53
41
|
```
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Global install
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
npm install -g claude-code-cost
|
|
61
|
-
claude-code-cost --open
|
|
42
|
+
--port <number> Custom port (default: 3543, falls back if busy)
|
|
43
|
+
--dir <path> Custom Claude config dir (default: ~/.claude)
|
|
44
|
+
--open Open browser on start
|
|
62
45
|
```
|
|
63
46
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Claude Code writes conversation logs to `~/.claude/projects/` as JSONL files. Each assistant response includes token counts (`input_tokens`, `output_tokens`, `cache_creation_input_tokens`, `cache_read_input_tokens`) and model info.
|
|
67
|
-
|
|
68
|
-
The dashboard:
|
|
69
|
-
1. **Reads** JSONL session files (streamed line-by-line for large files)
|
|
70
|
-
2. **Fetches** live model pricing from LiteLLM (cached 6h, offline fallback included)
|
|
71
|
-
3. **Calculates** cost per message using tiered pricing with 200K token threshold
|
|
72
|
-
4. **Aggregates** by day, project, and session — all server-side
|
|
73
|
-
5. **Renders** with Chart.js — no build step, vanilla JS
|
|
74
|
-
|
|
75
|
-
Nothing is modified — the dashboard is read-only.
|
|
76
|
-
|
|
77
|
-
### Cost Calculation
|
|
78
|
-
|
|
79
|
-
Uses the same pricing logic as [ccusage](https://github.com/ryoppippi/ccusage):
|
|
80
|
-
|
|
81
|
-
- **Auto mode** — Uses pre-calculated `costUSD` from JSONL when available, otherwise calculates from tokens
|
|
82
|
-
- **Tiered pricing** — Tokens above 200K threshold charged at higher rate (Claude 1M context models)
|
|
83
|
-
- **Fast mode** — Applies provider-specific multiplier for fast/streaming responses
|
|
84
|
-
- **Deduplication** — Skips duplicate messages by `messageId + requestId` hash
|
|
85
|
-
|
|
86
|
-
## FAQ
|
|
87
|
-
|
|
88
|
-
**Where does pricing data come from?**
|
|
89
|
-
Live from [LiteLLM's pricing dataset](https://github.com/BerriAI/litellm) (2000+ models). Cached for 6 hours. If the fetch fails, a bundled offline snapshot of Claude model prices is used.
|
|
90
|
-
|
|
91
|
-
**Does it work offline?**
|
|
92
|
-
Yes. The offline pricing fallback covers all current Claude models. PWA support included.
|
|
93
|
-
|
|
94
|
-
**Does it modify any files?**
|
|
95
|
-
No. Completely read-only — only reads JSONL files from `~/.claude/projects/`.
|
|
96
|
-
|
|
97
|
-
**Does it work with Claude Code Hub?**
|
|
98
|
-
Yes. Exposes `/hub-config` endpoint and forwards keyboard shortcuts (Ctrl+Alt+Arrow, Alt+1-9) to the hub parent frame.
|
|
47
|
+
The config dir can also be set via the `CLAUDE_CONFIG_DIR` environment variable.
|
|
99
48
|
|
|
100
49
|
## License
|
|
101
50
|
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -933,10 +933,61 @@ function destroyAllCharts() {
|
|
|
933
933
|
|
|
934
934
|
// #region THEME
|
|
935
935
|
|
|
936
|
+
const COLOR_THEMES = [
|
|
937
|
+
['ember', 'Ember'],
|
|
938
|
+
['gruvbox', 'Gruvbox'],
|
|
939
|
+
['catppuccin', 'Catppuccin'],
|
|
940
|
+
['tokyo-night', 'Tokyo Night'],
|
|
941
|
+
['solarized', 'Solarized'],
|
|
942
|
+
['dracula', 'Dracula'],
|
|
943
|
+
['nord', 'Nord'],
|
|
944
|
+
['rose-pine', 'Rosé Pine'],
|
|
945
|
+
['everforest', 'Everforest'],
|
|
946
|
+
['kanagawa', 'Kanagawa'],
|
|
947
|
+
['one-dark', 'One Dark'],
|
|
948
|
+
['night-owl', 'Night Owl'],
|
|
949
|
+
['monokai', 'Monokai Pro'],
|
|
950
|
+
['github', 'GitHub'],
|
|
951
|
+
['ayu', 'Ayu'],
|
|
952
|
+
['vitesse', 'Vitesse'],
|
|
953
|
+
['synthwave', "Synthwave '84"],
|
|
954
|
+
];
|
|
955
|
+
|
|
936
956
|
function loadTheme() {
|
|
937
957
|
if (localStorage.getItem('theme') === 'light') {
|
|
938
958
|
document.body.classList.add('light');
|
|
939
959
|
}
|
|
960
|
+
buildThemeMenu();
|
|
961
|
+
const colorTheme = localStorage.getItem('color-theme');
|
|
962
|
+
if (colorTheme) document.body.dataset.colorTheme = colorTheme;
|
|
963
|
+
syncColorThemeSelect(colorTheme || 'ember');
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
function buildThemeMenu() {
|
|
967
|
+
const menu = document.getElementById('themeMenu');
|
|
968
|
+
menu.innerHTML = COLOR_THEMES.map(
|
|
969
|
+
([id, label]) =>
|
|
970
|
+
`<button type="button" class="theme-menu-item" data-theme-id="${id}"
|
|
971
|
+
onclick="event.stopPropagation(); setColorTheme('${id}'); toggleThemeMenu()">
|
|
972
|
+
<span class="theme-swatch theme-swatch-${id}"><i class="sw-bg"></i><i class="sw-accent"></i><i class="sw-ink"></i></span>${label}
|
|
973
|
+
</button>`,
|
|
974
|
+
).join('');
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
// biome-ignore lint/correctness/noUnusedVariables: called from topbar markup
|
|
978
|
+
function toggleThemeMenu(e) {
|
|
979
|
+
e?.stopPropagation();
|
|
980
|
+
const menu = document.getElementById('themeMenu');
|
|
981
|
+
const open = menu.classList.toggle('open');
|
|
982
|
+
if (open) {
|
|
983
|
+
document.addEventListener('click', () => menu.classList.remove('open'), { once: true });
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
function syncColorThemeSelect(id) {
|
|
988
|
+
document.querySelectorAll('.theme-menu-item').forEach((el) => {
|
|
989
|
+
el.classList.toggle('on', el.dataset.themeId === (id || 'ember'));
|
|
990
|
+
});
|
|
940
991
|
}
|
|
941
992
|
|
|
942
993
|
function toggleTheme() {
|
|
@@ -946,6 +997,20 @@ function toggleTheme() {
|
|
|
946
997
|
renderCurrentView();
|
|
947
998
|
}
|
|
948
999
|
|
|
1000
|
+
// 'ember' (the :root default) has no override block — selecting it clears the attribute.
|
|
1001
|
+
function setColorTheme(id) {
|
|
1002
|
+
if (!id || id === 'ember') {
|
|
1003
|
+
delete document.body.dataset.colorTheme;
|
|
1004
|
+
localStorage.removeItem('color-theme');
|
|
1005
|
+
} else {
|
|
1006
|
+
document.body.dataset.colorTheme = id;
|
|
1007
|
+
localStorage.setItem('color-theme', id);
|
|
1008
|
+
}
|
|
1009
|
+
syncColorThemeSelect(id);
|
|
1010
|
+
lastRenderHash = {};
|
|
1011
|
+
renderCurrentView();
|
|
1012
|
+
}
|
|
1013
|
+
|
|
949
1014
|
// #endregion
|
|
950
1015
|
|
|
951
1016
|
// #region ROUTER
|
|
@@ -1315,22 +1380,36 @@ window.hubNavigate = function hubNavigate(app, url) {
|
|
|
1315
1380
|
|
|
1316
1381
|
(function initHubTheme() {
|
|
1317
1382
|
const getTheme = () => (document.body.classList.contains('light') ? 'light' : 'dark');
|
|
1383
|
+
const getColorTheme = () => document.body.dataset.colorTheme || 'ember';
|
|
1318
1384
|
const hubOrigin = () => (window.__HUB__?.url ? new URL(window.__HUB__.url).origin : null);
|
|
1385
|
+
// lastTheme/lastColorTheme are updated synchronously when applying a hub
|
|
1386
|
+
// message, so the (async) observer sees no diff and doesn't echo it back.
|
|
1319
1387
|
let lastTheme = getTheme();
|
|
1388
|
+
let lastColorTheme = getColorTheme();
|
|
1320
1389
|
window.addEventListener('message', (e) => {
|
|
1321
1390
|
if (e.source !== window.parent || e.origin !== hubOrigin()) return;
|
|
1322
1391
|
if (e.data?.type !== 'hub:theme') return;
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
1325
|
-
|
|
1392
|
+
if (typeof e.data.colorTheme === 'string' && e.data.colorTheme !== getColorTheme()) {
|
|
1393
|
+
setColorTheme(e.data.colorTheme);
|
|
1394
|
+
lastColorTheme = getColorTheme();
|
|
1395
|
+
}
|
|
1396
|
+
if (getTheme() !== e.data.theme) {
|
|
1397
|
+
window.toggleTheme();
|
|
1398
|
+
lastTheme = getTheme();
|
|
1399
|
+
}
|
|
1326
1400
|
});
|
|
1327
1401
|
new MutationObserver(() => {
|
|
1328
1402
|
const t = getTheme();
|
|
1329
|
-
|
|
1403
|
+
const ct = getColorTheme();
|
|
1404
|
+
if (t === lastTheme && ct === lastColorTheme) return;
|
|
1330
1405
|
lastTheme = t;
|
|
1406
|
+
lastColorTheme = ct;
|
|
1331
1407
|
const origin = hubOrigin();
|
|
1332
|
-
if (origin) window.parent.postMessage({ type: 'hub:theme', theme: t }, origin);
|
|
1333
|
-
}).observe(document.body, {
|
|
1408
|
+
if (origin) window.parent.postMessage({ type: 'hub:theme', theme: t, colorTheme: ct }, origin);
|
|
1409
|
+
}).observe(document.body, {
|
|
1410
|
+
attributes: true,
|
|
1411
|
+
attributeFilter: ['class', 'data-color-theme'],
|
|
1412
|
+
});
|
|
1334
1413
|
})();
|
|
1335
1414
|
|
|
1336
1415
|
// #endregion
|
package/public/index.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Playfair+Display:wght@400;500;600&display=swap" rel="stylesheet">
|
|
10
10
|
<link rel="stylesheet" href="style.css">
|
|
11
|
+
<link rel="stylesheet" href="themes.css">
|
|
11
12
|
<script defer src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
12
13
|
<link rel="manifest" href="/manifest.json">
|
|
13
14
|
<link rel="icon" type="image/svg+xml" href="/icons/icon-svg.svg">
|
|
@@ -46,6 +47,10 @@
|
|
|
46
47
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 11-2.12-9.36L23 10"/></svg>
|
|
47
48
|
Refresh
|
|
48
49
|
</button>
|
|
50
|
+
<span class="topbar-btn theme-picker" id="themePickerBtn" title="Color theme" onclick="toggleThemeMenu(event)">
|
|
51
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/></svg>
|
|
52
|
+
<div class="theme-menu" id="themeMenu"></div>
|
|
53
|
+
</span>
|
|
49
54
|
<button class="topbar-btn" id="themeBtn" title="Toggle theme" onclick="toggleTheme()">
|
|
50
55
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" id="themeIcon"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
|
|
51
56
|
</button>
|
package/public/style.css
CHANGED
|
@@ -203,6 +203,75 @@ body {
|
|
|
203
203
|
.topbar-btn.loading svg {
|
|
204
204
|
animation: spin 1s linear infinite;
|
|
205
205
|
}
|
|
206
|
+
/* theme picker: palette icon button + custom popover with per-theme swatches
|
|
207
|
+
(swatch colors are generated into themes.css) */
|
|
208
|
+
.theme-picker {
|
|
209
|
+
position: relative;
|
|
210
|
+
}
|
|
211
|
+
.theme-menu {
|
|
212
|
+
display: none;
|
|
213
|
+
position: absolute;
|
|
214
|
+
top: calc(100% + 6px);
|
|
215
|
+
right: 0;
|
|
216
|
+
z-index: 100;
|
|
217
|
+
min-width: 170px;
|
|
218
|
+
max-height: 70vh;
|
|
219
|
+
overflow-y: auto;
|
|
220
|
+
padding: 4px;
|
|
221
|
+
background: var(--bg-elevated);
|
|
222
|
+
border: 1px solid var(--border);
|
|
223
|
+
border-radius: 8px;
|
|
224
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
225
|
+
}
|
|
226
|
+
.theme-menu.open {
|
|
227
|
+
display: block;
|
|
228
|
+
}
|
|
229
|
+
.theme-menu-item {
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
gap: 8px;
|
|
233
|
+
width: 100%;
|
|
234
|
+
padding: 6px 8px;
|
|
235
|
+
border: 0;
|
|
236
|
+
border-radius: 6px;
|
|
237
|
+
background: none;
|
|
238
|
+
color: var(--text-secondary);
|
|
239
|
+
font-family: var(--mono);
|
|
240
|
+
font-size: 11px;
|
|
241
|
+
text-transform: uppercase;
|
|
242
|
+
letter-spacing: 0.03em;
|
|
243
|
+
text-align: left;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
}
|
|
246
|
+
.theme-menu-item:hover {
|
|
247
|
+
background: var(--bg-hover);
|
|
248
|
+
color: var(--text-primary);
|
|
249
|
+
}
|
|
250
|
+
.theme-menu-item.on {
|
|
251
|
+
color: var(--accent-text);
|
|
252
|
+
}
|
|
253
|
+
/* 3-dot palette preview: surface, accent, ink (colors from themes.css vars) */
|
|
254
|
+
.theme-swatch {
|
|
255
|
+
display: inline-flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: 3px;
|
|
258
|
+
flex: 0 0 auto;
|
|
259
|
+
}
|
|
260
|
+
.theme-swatch i {
|
|
261
|
+
width: 9px;
|
|
262
|
+
height: 9px;
|
|
263
|
+
border-radius: 50%;
|
|
264
|
+
border: 1px solid var(--sw-border);
|
|
265
|
+
}
|
|
266
|
+
.theme-swatch .sw-bg {
|
|
267
|
+
background: var(--sw-bg);
|
|
268
|
+
}
|
|
269
|
+
.theme-swatch .sw-accent {
|
|
270
|
+
background: var(--sw-accent);
|
|
271
|
+
}
|
|
272
|
+
.theme-swatch .sw-ink {
|
|
273
|
+
background: var(--sw-ink);
|
|
274
|
+
}
|
|
206
275
|
|
|
207
276
|
@keyframes spin {
|
|
208
277
|
from {
|
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
/* GENERATED by scripts/generate-themes.mjs — do not edit by hand.
|
|
2
|
+
Color themes override only the shared design-token variables; semantic
|
|
3
|
+
colors (success/warning/error/scope/...) stay constant across themes. */
|
|
4
|
+
|
|
5
|
+
/* picker swatches */
|
|
6
|
+
.theme-swatch-ember { --sw-bg: #16181c; --sw-accent: #e86f33; --sw-ink: #f0f1f3; --sw-border: #363840; }
|
|
7
|
+
body.light .theme-swatch-ember { --sw-bg: #efede9; --sw-accent: #e86f33; --sw-ink: #0a0a0a; --sw-border: #cfcbc4; }
|
|
8
|
+
.theme-swatch-gruvbox { --sw-bg: #282828; --sw-accent: #fe8019; --sw-ink: #ebdbb2; --sw-border: #504945; }
|
|
9
|
+
body.light .theme-swatch-gruvbox { --sw-bg: #f3eee0; --sw-accent: #d65d0e; --sw-ink: #3c3836; --sw-border: #c9bc9d; }
|
|
10
|
+
.theme-swatch-catppuccin { --sw-bg: #181825; --sw-accent: #cba6f7; --sw-ink: #cdd6f4; --sw-border: #45475a; }
|
|
11
|
+
body.light .theme-swatch-catppuccin { --sw-bg: #eff1f5; --sw-accent: #8839ef; --sw-ink: #4c4f69; --sw-border: #bcc0cc; }
|
|
12
|
+
.theme-swatch-tokyo-night { --sw-bg: #1a1b26; --sw-accent: #7aa2f7; --sw-ink: #c0caf5; --sw-border: #3b4261; }
|
|
13
|
+
body.light .theme-swatch-tokyo-night { --sw-bg: #e9eaf0; --sw-accent: #2e7de9; --sw-ink: #343b58; --sw-border: #a8aecb; }
|
|
14
|
+
.theme-swatch-solarized { --sw-bg: #073642; --sw-accent: #cb4b16; --sw-ink: #93a1a1; --sw-border: #586e75; }
|
|
15
|
+
body.light .theme-swatch-solarized { --sw-bg: #f5efdc; --sw-accent: #cb4b16; --sw-ink: #073642; --sw-border: #d3cbb7; }
|
|
16
|
+
.theme-swatch-dracula { --sw-bg: #282a36; --sw-accent: #bd93f9; --sw-ink: #f8f8f2; --sw-border: #565a75; }
|
|
17
|
+
body.light .theme-swatch-dracula { --sw-bg: #f0f0f5; --sw-accent: #7c3aed; --sw-ink: #16161e; --sw-border: #c9c9d6; }
|
|
18
|
+
.theme-swatch-nord { --sw-bg: #2e3440; --sw-accent: #88c0d0; --sw-ink: #eceff4; --sw-border: #4c566a; }
|
|
19
|
+
body.light .theme-swatch-nord { --sw-bg: #eceff4; --sw-accent: #5e81ac; --sw-ink: #2e3440; --sw-border: #c2c9d6; }
|
|
20
|
+
.theme-swatch-rose-pine { --sw-bg: #1f1d2e; --sw-accent: #c4a7e7; --sw-ink: #e0def4; --sw-border: #403d52; }
|
|
21
|
+
body.light .theme-swatch-rose-pine { --sw-bg: #faf4ed; --sw-accent: #907aa9; --sw-ink: #575279; --sw-border: #dfdad9; }
|
|
22
|
+
.theme-swatch-everforest { --sw-bg: #2d353b; --sw-accent: #a7c080; --sw-ink: #d3c6aa; --sw-border: #475258; }
|
|
23
|
+
body.light .theme-swatch-everforest { --sw-bg: #fdf6e3; --sw-accent: #6f8352; --sw-ink: #4d5960; --sw-border: #d8d3ba; }
|
|
24
|
+
.theme-swatch-kanagawa { --sw-bg: #1f1f28; --sw-accent: #7e9cd8; --sw-ink: #dcd7ba; --sw-border: #54546d; }
|
|
25
|
+
body.light .theme-swatch-kanagawa { --sw-bg: #f2ecbc; --sw-accent: #4d699b; --sw-ink: #545464; --sw-border: #c7bf94; }
|
|
26
|
+
.theme-swatch-one-dark { --sw-bg: #282c34; --sw-accent: #61afef; --sw-ink: #d7dae0; --sw-border: #4b5263; }
|
|
27
|
+
body.light .theme-swatch-one-dark { --sw-bg: #fafafa; --sw-accent: #4078f2; --sw-ink: #383a42; --sw-border: #d4d4d6; }
|
|
28
|
+
.theme-swatch-night-owl { --sw-bg: #0b2942; --sw-accent: #82aaff; --sw-ink: #d6deeb; --sw-border: #5f7e97; }
|
|
29
|
+
body.light .theme-swatch-night-owl { --sw-bg: #f6f6f6; --sw-accent: #0c969b; --sw-ink: #403f53; --sw-border: #d0d0d0; }
|
|
30
|
+
.theme-swatch-monokai { --sw-bg: #2d2a2e; --sw-accent: #ffd866; --sw-ink: #fcfcfa; --sw-border: #5b595c; }
|
|
31
|
+
body.light .theme-swatch-monokai { --sw-bg: #f1efed; --sw-accent: #c08a00; --sw-ink: #2c292d; --sw-border: #cdc8c5; }
|
|
32
|
+
.theme-swatch-github { --sw-bg: #24292e; --sw-accent: #58a6ff; --sw-ink: #e1e4e8; --sw-border: #444d56; }
|
|
33
|
+
body.light .theme-swatch-github { --sw-bg: #f6f8fa; --sw-accent: #0366d6; --sw-ink: #24292e; --sw-border: #d1d5da; }
|
|
34
|
+
.theme-swatch-ayu { --sw-bg: #10141c; --sw-accent: #e6b450; --sw-ink: #bfbdb6; --sw-border: #2d3343; }
|
|
35
|
+
body.light .theme-swatch-ayu { --sw-bg: #f8f9fa; --sw-accent: #f2ae49; --sw-ink: #3d4149; --sw-border: #d8dde2; }
|
|
36
|
+
.theme-swatch-vitesse { --sw-bg: #181818; --sw-accent: #4d9375; --sw-ink: #dbd7ca; --sw-border: #333333; }
|
|
37
|
+
body.light .theme-swatch-vitesse { --sw-bg: #f7f7f7; --sw-accent: #1c6b48; --sw-ink: #393a34; --sw-border: #d6d6d6; }
|
|
38
|
+
.theme-swatch-synthwave { --sw-bg: #262335; --sw-accent: #ff7edb; --sw-ink: #ffffff; --sw-border: #495495; }
|
|
39
|
+
body.light .theme-swatch-synthwave { --sw-bg: #efecf6; --sw-accent: #c936a6; --sw-ink: #241b2f; --sw-border: #c5bcdd; }
|
|
40
|
+
|
|
41
|
+
/* Gruvbox */
|
|
42
|
+
body[data-color-theme="gruvbox"]:not(.light) {
|
|
43
|
+
--accent: #fe8019;
|
|
44
|
+
--accent-text: #f9b27c;
|
|
45
|
+
--accent-dim: rgba(254,128,25,0.25);
|
|
46
|
+
--accent-glow: rgba(254, 128, 25, 0.55);
|
|
47
|
+
--bg-deep: #1d2021;
|
|
48
|
+
--bg-surface: #282828;
|
|
49
|
+
--bg-elevated: #32302f;
|
|
50
|
+
--bg-hover: #3c3836;
|
|
51
|
+
--border: #504945;
|
|
52
|
+
--text-primary: #ebdbb2;
|
|
53
|
+
--text-secondary: #d5c4a1;
|
|
54
|
+
--text-tertiary: #bdae93;
|
|
55
|
+
--text-muted: #928374;
|
|
56
|
+
--chart-fill: rgba(254, 128, 25, 0.32);
|
|
57
|
+
--chart-1: #fe8019;
|
|
58
|
+
}
|
|
59
|
+
body.light[data-color-theme="gruvbox"] {
|
|
60
|
+
--accent: #d65d0e;
|
|
61
|
+
--accent-text: #af3a03;
|
|
62
|
+
--accent-dim: rgba(214,93,14,0.18);
|
|
63
|
+
--accent-glow: rgba(214, 93, 14, 0.5);
|
|
64
|
+
--bg-deep: #ede7d5;
|
|
65
|
+
--bg-surface: #f3eee0;
|
|
66
|
+
--bg-elevated: #faf7ec;
|
|
67
|
+
--bg-hover: #e4dcc6;
|
|
68
|
+
--border: #c9bc9d;
|
|
69
|
+
--text-primary: #3c3836;
|
|
70
|
+
--text-secondary: #504945;
|
|
71
|
+
--text-tertiary: #665c54;
|
|
72
|
+
--text-muted: #7c6f64;
|
|
73
|
+
--chart-fill: rgba(214, 93, 14, 0.32);
|
|
74
|
+
--chart-1: #d65d0e;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Catppuccin */
|
|
78
|
+
body[data-color-theme="catppuccin"]:not(.light) {
|
|
79
|
+
--accent: #cba6f7;
|
|
80
|
+
--accent-text: #d8c2fa;
|
|
81
|
+
--accent-dim: rgba(203,166,247,0.25);
|
|
82
|
+
--accent-glow: rgba(203, 166, 247, 0.55);
|
|
83
|
+
--bg-deep: #11111b;
|
|
84
|
+
--bg-surface: #181825;
|
|
85
|
+
--bg-elevated: #1e1e2e;
|
|
86
|
+
--bg-hover: #313244;
|
|
87
|
+
--border: #45475a;
|
|
88
|
+
--text-primary: #cdd6f4;
|
|
89
|
+
--text-secondary: #bac2de;
|
|
90
|
+
--text-tertiary: #a6adc8;
|
|
91
|
+
--text-muted: #7f849c;
|
|
92
|
+
--chart-fill: rgba(203, 166, 247, 0.32);
|
|
93
|
+
--chart-1: #cba6f7;
|
|
94
|
+
}
|
|
95
|
+
body.light[data-color-theme="catppuccin"] {
|
|
96
|
+
--accent: #8839ef;
|
|
97
|
+
--accent-text: #6f2dbd;
|
|
98
|
+
--accent-dim: rgba(136,57,239,0.18);
|
|
99
|
+
--accent-glow: rgba(136, 57, 239, 0.5);
|
|
100
|
+
--bg-deep: #e6e9ef;
|
|
101
|
+
--bg-surface: #eff1f5;
|
|
102
|
+
--bg-elevated: #ffffff;
|
|
103
|
+
--bg-hover: #ccd0da;
|
|
104
|
+
--border: #bcc0cc;
|
|
105
|
+
--text-primary: #4c4f69;
|
|
106
|
+
--text-secondary: #5c5f77;
|
|
107
|
+
--text-tertiary: #6c6f85;
|
|
108
|
+
--text-muted: #8c8fa1;
|
|
109
|
+
--chart-fill: rgba(136, 57, 239, 0.32);
|
|
110
|
+
--chart-1: #8839ef;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Tokyo Night */
|
|
114
|
+
body[data-color-theme="tokyo-night"]:not(.light) {
|
|
115
|
+
--accent: #7aa2f7;
|
|
116
|
+
--accent-text: #9ab8ff;
|
|
117
|
+
--accent-dim: rgba(122,162,247,0.25);
|
|
118
|
+
--accent-glow: rgba(122, 162, 247, 0.55);
|
|
119
|
+
--bg-deep: #16161e;
|
|
120
|
+
--bg-surface: #1a1b26;
|
|
121
|
+
--bg-elevated: #1f2335;
|
|
122
|
+
--bg-hover: #292e42;
|
|
123
|
+
--border: #3b4261;
|
|
124
|
+
--text-primary: #c0caf5;
|
|
125
|
+
--text-secondary: #a9b1d6;
|
|
126
|
+
--text-tertiary: #787c99;
|
|
127
|
+
--text-muted: #565f89;
|
|
128
|
+
--chart-fill: rgba(122, 162, 247, 0.32);
|
|
129
|
+
--chart-1: #7aa2f7;
|
|
130
|
+
}
|
|
131
|
+
body.light[data-color-theme="tokyo-night"] {
|
|
132
|
+
--accent: #2e7de9;
|
|
133
|
+
--accent-text: #1659c7;
|
|
134
|
+
--accent-dim: rgba(46,125,233,0.18);
|
|
135
|
+
--accent-glow: rgba(46, 125, 233, 0.5);
|
|
136
|
+
--bg-deep: #e1e2e7;
|
|
137
|
+
--bg-surface: #e9eaf0;
|
|
138
|
+
--bg-elevated: #f7f8fc;
|
|
139
|
+
--bg-hover: #d0d5e3;
|
|
140
|
+
--border: #a8aecb;
|
|
141
|
+
--text-primary: #343b58;
|
|
142
|
+
--text-secondary: #565a6e;
|
|
143
|
+
--text-tertiary: #6c6e75;
|
|
144
|
+
--text-muted: #848cb5;
|
|
145
|
+
--chart-fill: rgba(46, 125, 233, 0.32);
|
|
146
|
+
--chart-1: #2e7de9;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Solarized */
|
|
150
|
+
body[data-color-theme="solarized"]:not(.light) {
|
|
151
|
+
--accent: #cb4b16;
|
|
152
|
+
--accent-text: #e9663a;
|
|
153
|
+
--accent-dim: rgba(203,75,22,0.25);
|
|
154
|
+
--accent-glow: rgba(203, 75, 22, 0.55);
|
|
155
|
+
--bg-deep: #002b36;
|
|
156
|
+
--bg-surface: #073642;
|
|
157
|
+
--bg-elevated: #0a4250;
|
|
158
|
+
--bg-hover: #11505f;
|
|
159
|
+
--border: #586e75;
|
|
160
|
+
--text-primary: #93a1a1;
|
|
161
|
+
--text-secondary: #839496;
|
|
162
|
+
--text-tertiary: #657b83;
|
|
163
|
+
--text-muted: #586e75;
|
|
164
|
+
--chart-fill: rgba(203, 75, 22, 0.32);
|
|
165
|
+
--chart-1: #cb4b16;
|
|
166
|
+
}
|
|
167
|
+
body.light[data-color-theme="solarized"] {
|
|
168
|
+
--accent: #cb4b16;
|
|
169
|
+
--accent-text: #b34a12;
|
|
170
|
+
--accent-dim: rgba(203,75,22,0.18);
|
|
171
|
+
--accent-glow: rgba(203, 75, 22, 0.5);
|
|
172
|
+
--bg-deep: #eee8d5;
|
|
173
|
+
--bg-surface: #f5efdc;
|
|
174
|
+
--bg-elevated: #fdf6e3;
|
|
175
|
+
--bg-hover: #e4ddc8;
|
|
176
|
+
--border: #d3cbb7;
|
|
177
|
+
--text-primary: #073642;
|
|
178
|
+
--text-secondary: #586e75;
|
|
179
|
+
--text-tertiary: #657b83;
|
|
180
|
+
--text-muted: #839496;
|
|
181
|
+
--chart-fill: rgba(203, 75, 22, 0.32);
|
|
182
|
+
--chart-1: #cb4b16;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Dracula */
|
|
186
|
+
body[data-color-theme="dracula"]:not(.light) {
|
|
187
|
+
--accent: #bd93f9;
|
|
188
|
+
--accent-text: #d6b5ff;
|
|
189
|
+
--accent-dim: rgba(189,147,249,0.25);
|
|
190
|
+
--accent-glow: rgba(189, 147, 249, 0.55);
|
|
191
|
+
--bg-deep: #21222c;
|
|
192
|
+
--bg-surface: #282a36;
|
|
193
|
+
--bg-elevated: #343746;
|
|
194
|
+
--bg-hover: #44475a;
|
|
195
|
+
--border: #565a75;
|
|
196
|
+
--text-primary: #f8f8f2;
|
|
197
|
+
--text-secondary: #d8d8d2;
|
|
198
|
+
--text-tertiary: #b0b3c5;
|
|
199
|
+
--text-muted: #6272a4;
|
|
200
|
+
--chart-fill: rgba(189, 147, 249, 0.32);
|
|
201
|
+
--chart-1: #bd93f9;
|
|
202
|
+
}
|
|
203
|
+
body.light[data-color-theme="dracula"] {
|
|
204
|
+
--accent: #7c3aed;
|
|
205
|
+
--accent-text: #5b21b6;
|
|
206
|
+
--accent-dim: rgba(124,58,237,0.18);
|
|
207
|
+
--accent-glow: rgba(124, 58, 237, 0.5);
|
|
208
|
+
--bg-deep: #e8e8ee;
|
|
209
|
+
--bg-surface: #f0f0f5;
|
|
210
|
+
--bg-elevated: #fbfbfd;
|
|
211
|
+
--bg-hover: #dfdfe8;
|
|
212
|
+
--border: #c9c9d6;
|
|
213
|
+
--text-primary: #16161e;
|
|
214
|
+
--text-secondary: #34343f;
|
|
215
|
+
--text-tertiary: #5a5a68;
|
|
216
|
+
--text-muted: #787885;
|
|
217
|
+
--chart-fill: rgba(124, 58, 237, 0.32);
|
|
218
|
+
--chart-1: #7c3aed;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Nord */
|
|
222
|
+
body[data-color-theme="nord"]:not(.light) {
|
|
223
|
+
--accent: #88c0d0;
|
|
224
|
+
--accent-text: #a8d8e8;
|
|
225
|
+
--accent-dim: rgba(136,192,208,0.25);
|
|
226
|
+
--accent-glow: rgba(136, 192, 208, 0.55);
|
|
227
|
+
--bg-deep: #272c36;
|
|
228
|
+
--bg-surface: #2e3440;
|
|
229
|
+
--bg-elevated: #3b4252;
|
|
230
|
+
--bg-hover: #434c5e;
|
|
231
|
+
--border: #4c566a;
|
|
232
|
+
--text-primary: #eceff4;
|
|
233
|
+
--text-secondary: #d8dee9;
|
|
234
|
+
--text-tertiary: #aeb6c5;
|
|
235
|
+
--text-muted: #7b88a1;
|
|
236
|
+
--chart-fill: rgba(136, 192, 208, 0.32);
|
|
237
|
+
--chart-1: #88c0d0;
|
|
238
|
+
}
|
|
239
|
+
body.light[data-color-theme="nord"] {
|
|
240
|
+
--accent: #5e81ac;
|
|
241
|
+
--accent-text: #44688f;
|
|
242
|
+
--accent-dim: rgba(94,129,172,0.18);
|
|
243
|
+
--accent-glow: rgba(94, 129, 172, 0.5);
|
|
244
|
+
--bg-deep: #e5e9f0;
|
|
245
|
+
--bg-surface: #eceff4;
|
|
246
|
+
--bg-elevated: #f8f9fb;
|
|
247
|
+
--bg-hover: #d8dee9;
|
|
248
|
+
--border: #c2c9d6;
|
|
249
|
+
--text-primary: #2e3440;
|
|
250
|
+
--text-secondary: #3b4252;
|
|
251
|
+
--text-tertiary: #4c566a;
|
|
252
|
+
--text-muted: #6b7589;
|
|
253
|
+
--chart-fill: rgba(94, 129, 172, 0.32);
|
|
254
|
+
--chart-1: #5e81ac;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Rosé Pine */
|
|
258
|
+
body[data-color-theme="rose-pine"]:not(.light) {
|
|
259
|
+
--accent: #c4a7e7;
|
|
260
|
+
--accent-text: #d9c4f2;
|
|
261
|
+
--accent-dim: rgba(196,167,231,0.25);
|
|
262
|
+
--accent-glow: rgba(196, 167, 231, 0.55);
|
|
263
|
+
--bg-deep: #191724;
|
|
264
|
+
--bg-surface: #1f1d2e;
|
|
265
|
+
--bg-elevated: #26233a;
|
|
266
|
+
--bg-hover: #34304e;
|
|
267
|
+
--border: #403d52;
|
|
268
|
+
--text-primary: #e0def4;
|
|
269
|
+
--text-secondary: #c5c2dd;
|
|
270
|
+
--text-tertiary: #908caa;
|
|
271
|
+
--text-muted: #6e6a86;
|
|
272
|
+
--chart-fill: rgba(196, 167, 231, 0.32);
|
|
273
|
+
--chart-1: #c4a7e7;
|
|
274
|
+
}
|
|
275
|
+
body.light[data-color-theme="rose-pine"] {
|
|
276
|
+
--accent: #907aa9;
|
|
277
|
+
--accent-text: #6f598c;
|
|
278
|
+
--accent-dim: rgba(144,122,169,0.18);
|
|
279
|
+
--accent-glow: rgba(144, 122, 169, 0.5);
|
|
280
|
+
--bg-deep: #f2e9e1;
|
|
281
|
+
--bg-surface: #faf4ed;
|
|
282
|
+
--bg-elevated: #fffaf3;
|
|
283
|
+
--bg-hover: #ebdfd4;
|
|
284
|
+
--border: #dfdad9;
|
|
285
|
+
--text-primary: #575279;
|
|
286
|
+
--text-secondary: #635e87;
|
|
287
|
+
--text-tertiary: #797593;
|
|
288
|
+
--text-muted: #9893a5;
|
|
289
|
+
--chart-fill: rgba(144, 122, 169, 0.32);
|
|
290
|
+
--chart-1: #907aa9;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Everforest */
|
|
294
|
+
body[data-color-theme="everforest"]:not(.light) {
|
|
295
|
+
--accent: #a7c080;
|
|
296
|
+
--accent-text: #c3d6a2;
|
|
297
|
+
--accent-dim: rgba(167,192,128,0.25);
|
|
298
|
+
--accent-glow: rgba(167, 192, 128, 0.55);
|
|
299
|
+
--bg-deep: #232a2e;
|
|
300
|
+
--bg-surface: #2d353b;
|
|
301
|
+
--bg-elevated: #343f44;
|
|
302
|
+
--bg-hover: #3d484d;
|
|
303
|
+
--border: #475258;
|
|
304
|
+
--text-primary: #d3c6aa;
|
|
305
|
+
--text-secondary: #bfb6a3;
|
|
306
|
+
--text-tertiary: #9da9a0;
|
|
307
|
+
--text-muted: #859289;
|
|
308
|
+
--chart-fill: rgba(167, 192, 128, 0.32);
|
|
309
|
+
--chart-1: #a7c080;
|
|
310
|
+
}
|
|
311
|
+
body.light[data-color-theme="everforest"] {
|
|
312
|
+
--accent: #6f8352;
|
|
313
|
+
--accent-text: #56683f;
|
|
314
|
+
--accent-dim: rgba(111,131,82,0.18);
|
|
315
|
+
--accent-glow: rgba(111, 131, 82, 0.5);
|
|
316
|
+
--bg-deep: #f4f0d9;
|
|
317
|
+
--bg-surface: #fdf6e3;
|
|
318
|
+
--bg-elevated: #fffbef;
|
|
319
|
+
--bg-hover: #efebd4;
|
|
320
|
+
--border: #d8d3ba;
|
|
321
|
+
--text-primary: #4d5960;
|
|
322
|
+
--text-secondary: #5c6a72;
|
|
323
|
+
--text-tertiary: #7a8478;
|
|
324
|
+
--text-muted: #939f91;
|
|
325
|
+
--chart-fill: rgba(111, 131, 82, 0.32);
|
|
326
|
+
--chart-1: #6f8352;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* Kanagawa */
|
|
330
|
+
body[data-color-theme="kanagawa"]:not(.light) {
|
|
331
|
+
--accent: #7e9cd8;
|
|
332
|
+
--accent-text: #9fb9ec;
|
|
333
|
+
--accent-dim: rgba(126,156,216,0.25);
|
|
334
|
+
--accent-glow: rgba(126, 156, 216, 0.55);
|
|
335
|
+
--bg-deep: #16161d;
|
|
336
|
+
--bg-surface: #1f1f28;
|
|
337
|
+
--bg-elevated: #2a2a37;
|
|
338
|
+
--bg-hover: #363646;
|
|
339
|
+
--border: #54546d;
|
|
340
|
+
--text-primary: #dcd7ba;
|
|
341
|
+
--text-secondary: #c8c093;
|
|
342
|
+
--text-tertiary: #a6a69c;
|
|
343
|
+
--text-muted: #727169;
|
|
344
|
+
--chart-fill: rgba(126, 156, 216, 0.32);
|
|
345
|
+
--chart-1: #7e9cd8;
|
|
346
|
+
}
|
|
347
|
+
body.light[data-color-theme="kanagawa"] {
|
|
348
|
+
--accent: #4d699b;
|
|
349
|
+
--accent-text: #38537f;
|
|
350
|
+
--accent-dim: rgba(77,105,155,0.18);
|
|
351
|
+
--accent-glow: rgba(77, 105, 155, 0.5);
|
|
352
|
+
--bg-deep: #e5ddb0;
|
|
353
|
+
--bg-surface: #f2ecbc;
|
|
354
|
+
--bg-elevated: #faf5d2;
|
|
355
|
+
--bg-hover: #dcd5ac;
|
|
356
|
+
--border: #c7bf94;
|
|
357
|
+
--text-primary: #545464;
|
|
358
|
+
--text-secondary: #66667a;
|
|
359
|
+
--text-tertiary: #716e61;
|
|
360
|
+
--text-muted: #8a8775;
|
|
361
|
+
--chart-fill: rgba(77, 105, 155, 0.32);
|
|
362
|
+
--chart-1: #4d699b;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* One Dark */
|
|
366
|
+
body[data-color-theme="one-dark"]:not(.light) {
|
|
367
|
+
--accent: #61afef;
|
|
368
|
+
--accent-text: #8cc7ff;
|
|
369
|
+
--accent-dim: rgba(97,175,239,0.25);
|
|
370
|
+
--accent-glow: rgba(97, 175, 239, 0.55);
|
|
371
|
+
--bg-deep: #21252b;
|
|
372
|
+
--bg-surface: #282c34;
|
|
373
|
+
--bg-elevated: #2f343e;
|
|
374
|
+
--bg-hover: #3e4452;
|
|
375
|
+
--border: #4b5263;
|
|
376
|
+
--text-primary: #d7dae0;
|
|
377
|
+
--text-secondary: #abb2bf;
|
|
378
|
+
--text-tertiary: #8b919e;
|
|
379
|
+
--text-muted: #5c6370;
|
|
380
|
+
--chart-fill: rgba(97, 175, 239, 0.32);
|
|
381
|
+
--chart-1: #61afef;
|
|
382
|
+
}
|
|
383
|
+
body.light[data-color-theme="one-dark"] {
|
|
384
|
+
--accent: #4078f2;
|
|
385
|
+
--accent-text: #2c5dd4;
|
|
386
|
+
--accent-dim: rgba(64,120,242,0.18);
|
|
387
|
+
--accent-glow: rgba(64, 120, 242, 0.5);
|
|
388
|
+
--bg-deep: #eaeaeb;
|
|
389
|
+
--bg-surface: #fafafa;
|
|
390
|
+
--bg-elevated: #ffffff;
|
|
391
|
+
--bg-hover: #e0e0e2;
|
|
392
|
+
--border: #d4d4d6;
|
|
393
|
+
--text-primary: #383a42;
|
|
394
|
+
--text-secondary: #50525a;
|
|
395
|
+
--text-tertiary: #696c77;
|
|
396
|
+
--text-muted: #a0a1a7;
|
|
397
|
+
--chart-fill: rgba(64, 120, 242, 0.32);
|
|
398
|
+
--chart-1: #4078f2;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* Night Owl */
|
|
402
|
+
body[data-color-theme="night-owl"]:not(.light) {
|
|
403
|
+
--accent: #82aaff;
|
|
404
|
+
--accent-text: #a8c4ff;
|
|
405
|
+
--accent-dim: rgba(130,170,255,0.25);
|
|
406
|
+
--accent-glow: rgba(130, 170, 255, 0.55);
|
|
407
|
+
--bg-deep: #011627;
|
|
408
|
+
--bg-surface: #0b2942;
|
|
409
|
+
--bg-elevated: #13344f;
|
|
410
|
+
--bg-hover: #1d3b53;
|
|
411
|
+
--border: #5f7e97;
|
|
412
|
+
--text-primary: #d6deeb;
|
|
413
|
+
--text-secondary: #b8c5d6;
|
|
414
|
+
--text-tertiary: #8ba3b8;
|
|
415
|
+
--text-muted: #637777;
|
|
416
|
+
--chart-fill: rgba(130, 170, 255, 0.32);
|
|
417
|
+
--chart-1: #82aaff;
|
|
418
|
+
}
|
|
419
|
+
body.light[data-color-theme="night-owl"] {
|
|
420
|
+
--accent: #0c969b;
|
|
421
|
+
--accent-text: #0a7479;
|
|
422
|
+
--accent-dim: rgba(12,150,155,0.18);
|
|
423
|
+
--accent-glow: rgba(12, 150, 155, 0.5);
|
|
424
|
+
--bg-deep: #ededed;
|
|
425
|
+
--bg-surface: #f6f6f6;
|
|
426
|
+
--bg-elevated: #fbfbfb;
|
|
427
|
+
--bg-hover: #e2e2e2;
|
|
428
|
+
--border: #d0d0d0;
|
|
429
|
+
--text-primary: #403f53;
|
|
430
|
+
--text-secondary: #545167;
|
|
431
|
+
--text-tertiary: #6f6e85;
|
|
432
|
+
--text-muted: #989fb1;
|
|
433
|
+
--chart-fill: rgba(12, 150, 155, 0.32);
|
|
434
|
+
--chart-1: #0c969b;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* Monokai Pro */
|
|
438
|
+
body[data-color-theme="monokai"]:not(.light) {
|
|
439
|
+
--accent: #ffd866;
|
|
440
|
+
--accent-text: #ffe6a0;
|
|
441
|
+
--accent-dim: rgba(255,216,102,0.25);
|
|
442
|
+
--accent-glow: rgba(255, 216, 102, 0.55);
|
|
443
|
+
--bg-deep: #221f22;
|
|
444
|
+
--bg-surface: #2d2a2e;
|
|
445
|
+
--bg-elevated: #403e41;
|
|
446
|
+
--bg-hover: #4a484b;
|
|
447
|
+
--border: #5b595c;
|
|
448
|
+
--text-primary: #fcfcfa;
|
|
449
|
+
--text-secondary: #d9d8d6;
|
|
450
|
+
--text-tertiary: #939293;
|
|
451
|
+
--text-muted: #727072;
|
|
452
|
+
--chart-fill: rgba(255, 216, 102, 0.32);
|
|
453
|
+
--chart-1: #ffd866;
|
|
454
|
+
}
|
|
455
|
+
body.light[data-color-theme="monokai"] {
|
|
456
|
+
--accent: #c08a00;
|
|
457
|
+
--accent-text: #9a6e00;
|
|
458
|
+
--accent-dim: rgba(192,138,0,0.18);
|
|
459
|
+
--accent-glow: rgba(192, 138, 0, 0.5);
|
|
460
|
+
--bg-deep: #e9e6e4;
|
|
461
|
+
--bg-surface: #f1efed;
|
|
462
|
+
--bg-elevated: #fcfbfa;
|
|
463
|
+
--bg-hover: #e0dcda;
|
|
464
|
+
--border: #cdc8c5;
|
|
465
|
+
--text-primary: #2c292d;
|
|
466
|
+
--text-secondary: #46434a;
|
|
467
|
+
--text-tertiary: #6b686d;
|
|
468
|
+
--text-muted: #8d8a8d;
|
|
469
|
+
--chart-fill: rgba(192, 138, 0, 0.32);
|
|
470
|
+
--chart-1: #c08a00;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* GitHub */
|
|
474
|
+
body[data-color-theme="github"]:not(.light) {
|
|
475
|
+
--accent: #58a6ff;
|
|
476
|
+
--accent-text: #85bdff;
|
|
477
|
+
--accent-dim: rgba(88,166,255,0.25);
|
|
478
|
+
--accent-glow: rgba(88, 166, 255, 0.55);
|
|
479
|
+
--bg-deep: #1f2428;
|
|
480
|
+
--bg-surface: #24292e;
|
|
481
|
+
--bg-elevated: #2b3138;
|
|
482
|
+
--bg-hover: #2f363d;
|
|
483
|
+
--border: #444d56;
|
|
484
|
+
--text-primary: #e1e4e8;
|
|
485
|
+
--text-secondary: #d1d5da;
|
|
486
|
+
--text-tertiary: #959da5;
|
|
487
|
+
--text-muted: #6a737d;
|
|
488
|
+
--chart-fill: rgba(88, 166, 255, 0.32);
|
|
489
|
+
--chart-1: #58a6ff;
|
|
490
|
+
}
|
|
491
|
+
body.light[data-color-theme="github"] {
|
|
492
|
+
--accent: #0366d6;
|
|
493
|
+
--accent-text: #044289;
|
|
494
|
+
--accent-dim: rgba(3,102,214,0.18);
|
|
495
|
+
--accent-glow: rgba(3, 102, 214, 0.5);
|
|
496
|
+
--bg-deep: #f0f2f4;
|
|
497
|
+
--bg-surface: #f6f8fa;
|
|
498
|
+
--bg-elevated: #ffffff;
|
|
499
|
+
--bg-hover: #e8eaed;
|
|
500
|
+
--border: #d1d5da;
|
|
501
|
+
--text-primary: #24292e;
|
|
502
|
+
--text-secondary: #444d56;
|
|
503
|
+
--text-tertiary: #586069;
|
|
504
|
+
--text-muted: #6a737d;
|
|
505
|
+
--chart-fill: rgba(3, 102, 214, 0.32);
|
|
506
|
+
--chart-1: #0366d6;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* Ayu */
|
|
510
|
+
body[data-color-theme="ayu"]:not(.light) {
|
|
511
|
+
--accent: #e6b450;
|
|
512
|
+
--accent-text: #f0cd85;
|
|
513
|
+
--accent-dim: rgba(230,180,80,0.25);
|
|
514
|
+
--accent-glow: rgba(230, 180, 80, 0.55);
|
|
515
|
+
--bg-deep: #0d1017;
|
|
516
|
+
--bg-surface: #10141c;
|
|
517
|
+
--bg-elevated: #141821;
|
|
518
|
+
--bg-hover: #1d2330;
|
|
519
|
+
--border: #2d3343;
|
|
520
|
+
--text-primary: #bfbdb6;
|
|
521
|
+
--text-secondary: #a8a6a0;
|
|
522
|
+
--text-tertiary: #8a9199;
|
|
523
|
+
--text-muted: #6c7380;
|
|
524
|
+
--chart-fill: rgba(230, 180, 80, 0.32);
|
|
525
|
+
--chart-1: #e6b450;
|
|
526
|
+
}
|
|
527
|
+
body.light[data-color-theme="ayu"] {
|
|
528
|
+
--accent: #f2ae49;
|
|
529
|
+
--accent-text: #b87514;
|
|
530
|
+
--accent-dim: rgba(242,174,73,0.18);
|
|
531
|
+
--accent-glow: rgba(242, 174, 73, 0.5);
|
|
532
|
+
--bg-deep: #eff1f3;
|
|
533
|
+
--bg-surface: #f8f9fa;
|
|
534
|
+
--bg-elevated: #fcfcfc;
|
|
535
|
+
--bg-hover: #e7eaed;
|
|
536
|
+
--border: #d8dde2;
|
|
537
|
+
--text-primary: #3d4149;
|
|
538
|
+
--text-secondary: #5c6166;
|
|
539
|
+
--text-tertiary: #787b80;
|
|
540
|
+
--text-muted: #8a9199;
|
|
541
|
+
--chart-fill: rgba(242, 174, 73, 0.32);
|
|
542
|
+
--chart-1: #f2ae49;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* Vitesse */
|
|
546
|
+
body[data-color-theme="vitesse"]:not(.light) {
|
|
547
|
+
--accent: #4d9375;
|
|
548
|
+
--accent-text: #6fb392;
|
|
549
|
+
--accent-dim: rgba(77,147,117,0.25);
|
|
550
|
+
--accent-glow: rgba(77, 147, 117, 0.55);
|
|
551
|
+
--bg-deep: #121212;
|
|
552
|
+
--bg-surface: #181818;
|
|
553
|
+
--bg-elevated: #1e1e1e;
|
|
554
|
+
--bg-hover: #262626;
|
|
555
|
+
--border: #333333;
|
|
556
|
+
--text-primary: #dbd7ca;
|
|
557
|
+
--text-secondary: #bfbaaa;
|
|
558
|
+
--text-tertiary: #8f8f85;
|
|
559
|
+
--text-muted: #758575;
|
|
560
|
+
--chart-fill: rgba(77, 147, 117, 0.32);
|
|
561
|
+
--chart-1: #4d9375;
|
|
562
|
+
}
|
|
563
|
+
body.light[data-color-theme="vitesse"] {
|
|
564
|
+
--accent: #1c6b48;
|
|
565
|
+
--accent-text: #145236;
|
|
566
|
+
--accent-dim: rgba(28,107,72,0.18);
|
|
567
|
+
--accent-glow: rgba(28, 107, 72, 0.5);
|
|
568
|
+
--bg-deep: #f0f0f0;
|
|
569
|
+
--bg-surface: #f7f7f7;
|
|
570
|
+
--bg-elevated: #ffffff;
|
|
571
|
+
--bg-hover: #e7e7e7;
|
|
572
|
+
--border: #d6d6d6;
|
|
573
|
+
--text-primary: #393a34;
|
|
574
|
+
--text-secondary: #4e4f47;
|
|
575
|
+
--text-tertiary: #6b6d63;
|
|
576
|
+
--text-muted: #a0ada0;
|
|
577
|
+
--chart-fill: rgba(28, 107, 72, 0.32);
|
|
578
|
+
--chart-1: #1c6b48;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* Synthwave '84 */
|
|
582
|
+
body[data-color-theme="synthwave"]:not(.light) {
|
|
583
|
+
--accent: #ff7edb;
|
|
584
|
+
--accent-text: #ffa9e7;
|
|
585
|
+
--accent-dim: rgba(255,126,219,0.25);
|
|
586
|
+
--accent-glow: rgba(255, 126, 219, 0.55);
|
|
587
|
+
--bg-deep: #241b2f;
|
|
588
|
+
--bg-surface: #262335;
|
|
589
|
+
--bg-elevated: #322a47;
|
|
590
|
+
--bg-hover: #3d3460;
|
|
591
|
+
--border: #495495;
|
|
592
|
+
--text-primary: #ffffff;
|
|
593
|
+
--text-secondary: #d8d6e8;
|
|
594
|
+
--text-tertiary: #b6b1d8;
|
|
595
|
+
--text-muted: #848bbd;
|
|
596
|
+
--chart-fill: rgba(255, 126, 219, 0.32);
|
|
597
|
+
--chart-1: #ff7edb;
|
|
598
|
+
}
|
|
599
|
+
body.light[data-color-theme="synthwave"] {
|
|
600
|
+
--accent: #c936a6;
|
|
601
|
+
--accent-text: #9c2381;
|
|
602
|
+
--accent-dim: rgba(201,54,166,0.18);
|
|
603
|
+
--accent-glow: rgba(201, 54, 166, 0.5);
|
|
604
|
+
--bg-deep: #e6e2f0;
|
|
605
|
+
--bg-surface: #efecf6;
|
|
606
|
+
--bg-elevated: #fbfafd;
|
|
607
|
+
--bg-hover: #ddd7ec;
|
|
608
|
+
--border: #c5bcdd;
|
|
609
|
+
--text-primary: #241b2f;
|
|
610
|
+
--text-secondary: #3d3455;
|
|
611
|
+
--text-tertiary: #5c5380;
|
|
612
|
+
--text-muted: #7d76a3;
|
|
613
|
+
--chart-fill: rgba(201, 54, 166, 0.32);
|
|
614
|
+
--chart-1: #c936a6;
|
|
615
|
+
}
|
package/server.js
CHANGED
|
@@ -19,7 +19,7 @@ function getArg(name) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const PORT = getArg('port') || process.env.PORT || 3543;
|
|
22
|
-
const claudeDirArg = getArg('dir');
|
|
22
|
+
const claudeDirArg = getArg('dir') || process.env.CLAUDE_CONFIG_DIR || process.env.CLAUDE_DIR;
|
|
23
23
|
const CLAUDE_DIR = claudeDirArg
|
|
24
24
|
? claudeDirArg.replace(/^~/, os.homedir())
|
|
25
25
|
: path.join(os.homedir(), '.claude');
|