Skip to content

Commit 2faae7a

Browse files
committed
feat(themes): add gruvbox preset with dark palette
fix: format and lint
1 parent cb877e7 commit 2faae7a

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ URL Parameter > Theme Default > System Fallback
106106
| `dracula` | Dracula Pro | `282a36` | `bd93f9` | `f8f8f2` |
107107
| `github` | GitHub green | `0d1117` | `238636` | `ffffff` |
108108
| `light` | Clean & minimal | `ffffff` | `0969da` | `24292f` |
109+
| `gruvbox` | retro warm dark | `282828` | `fe8019` | `ebdbb2` |
109110
| `random` | Surprise theme on reload | _varies_ | _varies_ | _varies_ |
110111

111112
> **`auto` uses CSS `@media (prefers-color-scheme)`** inside the SVG so the badge switches between the `light` and `dark` palettes based on the viewer's OS setting — no JavaScript required. This is ideal for GitHub profile READMEs where visitors may use either mode.

THEMES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ Usage: `/api/streak?user=yourusername&theme=github`
4444

4545
---
4646

47+
## 🟠 Gruvbox
48+
49+
![Gruvbox](assets/themes/gruvbox.png)
50+
51+
Usage: `/api/streak?user=yourusername&theme=gruvbox`
52+
53+
---
54+
4755
## 🌊 Ocean
4856

4957
![Ocean](assets/themes/ocean.png)

assets/themes/gruvbox.png

33.8 KB
Loading

lib/svg/themes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export const themes: Record<string, BadgeTheme> = {
5757
text: 'f8f8f2',
5858
accent: 'ff2d78',
5959
},
60+
gruvbox: {
61+
bg: '282828',
62+
text: 'ebdbb2',
63+
accent: 'fe8019',
64+
},
6065
};
6166

6267
// Auto-theme pairs: the SVG switches between these two palettes

0 commit comments

Comments
 (0)