claude-code-cost 0.6.0 → 0.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-cost",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Cost dashboard for Claude Code usage",
5
5
  "main": "server.js",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -658,8 +658,8 @@ function getChartColors() {
658
658
  const style = getComputedStyle(document.body);
659
659
  return {
660
660
  accent: style.getPropertyValue('--accent').trim() || '#e86f33',
661
- accentDim: style.getPropertyValue('--accent-dim').trim() || 'rgba(232,111,51,0.22)',
662
- text: style.getPropertyValue('--text-muted').trim() || '#7d808a',
661
+ chartFill: style.getPropertyValue('--chart-fill').trim() || 'rgba(232,111,51,0.6)',
662
+ text: style.getPropertyValue('--text-secondary').trim() || '#c2c4c9',
663
663
  border: style.getPropertyValue('--border').trim() || '#363840',
664
664
  bg: style.getPropertyValue('--bg-elevated').trim() || '#1e2025',
665
665
  chart1: style.getPropertyValue('--chart-1').trim() || '#e86f33',
@@ -722,7 +722,7 @@ function renderDailyChart(daily, canvasId = 'dailyChart', chartKey = 'daily') {
722
722
  {
723
723
  label: 'Daily Cost',
724
724
  data: daily.map((d) => d.cost),
725
- backgroundColor: c.accentDim,
725
+ backgroundColor: c.accent,
726
726
  borderColor: c.accent,
727
727
  borderWidth: 1,
728
728
  borderRadius: 3,
@@ -817,7 +817,7 @@ function renderCumulativeChart(messages) {
817
817
  label: 'Cumulative Cost',
818
818
  data: messages.map((m) => m.cumulativeCost),
819
819
  borderColor: c.accent,
820
- backgroundColor: c.accentDim,
820
+ backgroundColor: c.chartFill,
821
821
  fill: true,
822
822
  borderWidth: 2,
823
823
  pointRadius: messages.length > 50 ? 0 : 3,
package/public/style.css CHANGED
@@ -14,6 +14,7 @@
14
14
  --accent-text: #f0a070;
15
15
  --accent-dim: rgba(232, 111, 51, 0.22);
16
16
  --accent-glow: rgba(232, 111, 51, 0.55);
17
+ --chart-fill: rgba(232, 111, 51, 0.6);
17
18
  --success: #3ecf8e;
18
19
  --success-dim: rgba(62, 207, 142, 0.18);
19
20
  --warning: #f0b429;
@@ -22,12 +23,12 @@
22
23
  --error-dim: rgba(239, 68, 68, 0.18);
23
24
  --mono: 'IBM Plex Mono', monospace;
24
25
  --serif: 'Playfair Display', serif;
25
- --chart-1: #d4723a;
26
- --chart-2: #5b9bd5;
27
- --chart-3: #4dab82;
28
- --chart-4: #d4a03a;
29
- --chart-5: #a87edb;
30
- --chart-6: #d4697a;
26
+ --chart-1: #e86f33;
27
+ --chart-2: #4a9eda;
28
+ --chart-3: #3ecf8e;
29
+ --chart-4: #f0b429;
30
+ --chart-5: #b784f5;
31
+ --chart-6: #fb7185;
31
32
  }
32
33
 
33
34
  /* #endregion */
@@ -46,9 +47,9 @@ body {
46
47
  background: var(--bg-deep);
47
48
  color: var(--text-primary);
48
49
  line-height: 1.5;
49
- height: calc(100vh / 1.2);
50
+ height: calc(100vh / 1.1);
50
51
  display: flex;
51
- zoom: 1.2;
52
+ zoom: 1.1;
52
53
  flex-direction: column;
53
54
  overflow: hidden;
54
55
  -webkit-font-smoothing: antialiased;
@@ -224,7 +225,7 @@ body {
224
225
  }
225
226
 
226
227
  .dashboard-content {
227
- max-width: 1200px;
228
+ max-width: 1400px;
228
229
  margin: 0 auto;
229
230
  }
230
231
 
@@ -790,18 +791,19 @@ body.light {
790
791
  --accent-text: #b85a20;
791
792
  --accent-dim: rgba(232, 111, 51, 0.18);
792
793
  --accent-glow: rgba(232, 111, 51, 0.5);
794
+ --chart-fill: rgba(232, 111, 51, 0.5);
793
795
  --success: #1a8a5a;
794
796
  --success-dim: rgba(26, 138, 90, 0.15);
795
797
  --warning: #b07d0a;
796
798
  --warning-dim: rgba(176, 125, 10, 0.15);
797
799
  --error: #c53030;
798
800
  --error-dim: rgba(197, 48, 48, 0.15);
799
- --chart-1: #d4723a;
800
- --chart-2: #5b9bd5;
801
- --chart-3: #4dab82;
802
- --chart-4: #d4a03a;
803
- --chart-5: #a87edb;
804
- --chart-6: #d4697a;
801
+ --chart-1: #e86f33;
802
+ --chart-2: #4a9eda;
803
+ --chart-3: #3ecf8e;
804
+ --chart-4: #f0b429;
805
+ --chart-5: #b784f5;
806
+ --chart-6: #fb7185;
805
807
  }
806
808
 
807
809
  /* #endregion */