You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ BalatroBench is a static web application that displays performance leaderboards
13
13
-**index.html**: Main leaderboard page with responsive table layout using Tailwind CSS
14
14
-**community.html**: Community strategy leaderboard page with similar layout and functionality
15
15
-**about.html**: About page with project information and metrics documentation
16
-
-**script.js**: Shared JavaScript for all pages - fetches and renders leaderboard data, with interactive expandable rows showing detailed charts and statistics
16
+
-**script.js**: Shared JavaScript for all pages - fetches and renders leaderboard data, with theme-aware Chart.js integration, interactive expandable rows, and detailed statistics visualization
17
17
-**data/**: Contains benchmark results organized by version, strategy, and data type
18
18
-`data/benchmarks/v0.8.1/default/leaderboard.json`: Primary model leaderboard data
19
19
-`data/community/v0.8.1/default/leaderboard.json`: Community strategy leaderboard data
@@ -34,14 +34,15 @@ Models are identified by `vendor/model` format and ranked by performance metrics
34
34
### Interactive Features
35
35
36
36
-**Navigation**: Top navigation bar with links between main leaderboard, community, and about pages
37
+
-**Dark Mode Support**: Automatic dark mode detection with theme-aware charts and styling
37
38
-**Expandable Rows**: Click on desktop (lg+) to expand detailed view with:
38
-
- Round distribution histogram using Chart.js
39
-
- Provider usage pie chart
39
+
- Round distribution histogram using Chart.js with theme-aware colors
40
+
- Provider usage pie chart with vendor-specific color scheme
40
41
- Complete per-game statistics table
41
42
- Total aggregated metrics (tokens, costs, time)
42
-
-**Bar Charts**: Performance visualization showing average rounds reached across models
43
+
-**Bar Charts**: Performance visualization showing average rounds reached across models with error bars
43
44
-**Footer**: Clickable footer component with project information and navigation
44
-
-**Responsive Design**: Columns hide/show based on screen size
45
+
-**Responsive Design**: Columns hide/show based on screen size using Tailwind breakpoints
45
46
-**Dual Display Modes**: Support for both model-based and community strategy leaderboards
46
47
47
48
## Development Commands
@@ -57,8 +58,8 @@ python3 -m http.server 8000
57
58
58
59
### Dependencies
59
60
60
-
-**Tailwind CSS**: Styling framework loaded from CDN
61
-
-**Chart.js**: Charting library for histograms, pie charts, and bar charts
61
+
-**Tailwind CSS**: Styling framework loaded from CDN with dark mode support
62
+
-**Chart.js**: Charting library for histograms, pie charts, and bar charts with theme-aware color schemes
62
63
-**Heroicons**: Icon library (included but minimal usage in current implementation)
63
64
64
65
### Current Models
@@ -75,6 +76,15 @@ The leaderboard includes performance data for models from multiple vendors:
75
76
- HTML: 2-space indentation, 120 character line limit
76
77
- JSON: 2-space indentation
77
78
79
+
### Theme System
80
+
81
+
The application supports automatic dark mode detection with:
82
+
-**Theme Detection**: Uses `prefers-color-scheme` media query for automatic switching
0 commit comments