Skip to content

Commit 2bb8008

Browse files
committed
docs: update CLAUDE.md
1 parent b2130d3 commit 2bb8008

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

CLAUDE.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BalatroBench is a static web application that displays performance leaderboards
1313
- **index.html**: Main leaderboard page with responsive table layout using Tailwind CSS
1414
- **community.html**: Community strategy leaderboard page with similar layout and functionality
1515
- **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
1717
- **data/**: Contains benchmark results organized by version, strategy, and data type
1818
- `data/benchmarks/v0.8.1/default/leaderboard.json`: Primary model leaderboard data
1919
- `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
3434
### Interactive Features
3535

3636
- **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
3738
- **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
4041
- Complete per-game statistics table
4142
- 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
4344
- **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
4546
- **Dual Display Modes**: Support for both model-based and community strategy leaderboards
4647

4748
## Development Commands
@@ -57,8 +58,8 @@ python3 -m http.server 8000
5758

5859
### Dependencies
5960

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
6263
- **Heroicons**: Icon library (included but minimal usage in current implementation)
6364

6465
### Current Models
@@ -75,6 +76,15 @@ The leaderboard includes performance data for models from multiple vendors:
7576
- HTML: 2-space indentation, 120 character line limit
7677
- JSON: 2-space indentation
7778

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
83+
- **Color Schemes**: Vendor-specific colors (OpenAI: black/gray, Google: blue, Anthropic: orange)
84+
- **Chart Integration**: Theme-aware Chart.js color palettes with HSLA color strings
85+
- **Responsive Charts**: All charts (histograms, pie charts, bar charts) adapt to light/dark themes
86+
- **Grid and Axis**: Theme-appropriate grid lines and axis colors for optimal readability
87+
7888
## Data Management
7989

8090
### Data Organization

0 commit comments

Comments
 (0)