Skip to content

Commit dca3f1c

Browse files
author
ChetanSenta
committed
feat(themes): add obsidian preset with deep charcoal bg and amber gold accent
1 parent 4fc855a commit dca3f1c

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ URL Parameter > Theme Default > System Fallback
220220
| `random` | Surprise theme on reload | _varies_ | _varies_ | _varies_ |
221221
| `highcontrast` | Accessibility high contrast | `0a0a0a` | `ff4500` | `ffffff` |
222222
| `cyber-pulse` | AMOLED true-black & cyan | `000000` | `00ffee` | `ffffff` |
223+
| `obsidian` | Deep charcoal & amber gold | `1a1a2e` | `f59e0b` | `e2e8f0` |
223224

224225
> **`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.
225226

THEMES.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🎨 CommitPulse Themes
22

3-
All 19 available themes for your CommitPulse badge. Use the `?theme=<slug>` query parameter to apply a theme.
3+
All 20 available themes for your CommitPulse badge. Use the `?theme=<slug>` query parameter to apply a theme.
44

55
```
66
https://commitpulse.vercel.app/api/streak?user=YOUR_USERNAME&theme=<slug>
@@ -30,6 +30,7 @@ https://commitpulse.vercel.app/api/streak?user=YOUR_USERNAME&theme=<slug>
3030
| solarized_light | `#fdf6e3` | `#586e75` | `#268bd2` |
3131
| gruvbox_light | `#fbf1c7` | `#3c3836` | `#d65d0e` |
3232
| nord_light | `#eceff4` | `#2e3440` | `#5e81ac` |
33+
| obsidian | `#1a1a2e` | `#e2e8f0` | `#f59e0b` |
3334
| cyber-pulse | `#000000` | `#ffffff` | `#00ffee` |
3435

3536
---
@@ -264,6 +265,18 @@ https://commitpulse.vercel.app/api/streak?user=YOUR_USERNAME&theme=<slug>
264265

265266
---
266267

268+
### 🪨 Obsidian
269+
270+
![obsidian](https://commitpulse.vercel.app/api/streak?user=jhasourav07&theme=obsidian)
271+
272+
| Parameter | Value |
273+
| --------- | ------ |
274+
| `bg` | 1a1a2e |
275+
| `text` | e2e8f0 |
276+
| `accent` | f59e0b |
277+
278+
---
279+
267280
## 🎛️ Custom Theme
268281

269282
Not finding what you want? Build your own using raw color parameters — all values are hex codes **without** the `#` prefix:

lib/svg/themes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const themes: Record<string, BadgeTheme> = {
3030
solarized_light: makeTheme('fdf6e3', '586e75', '268bd2', 'dc322f'),
3131
gruvbox_light: makeTheme('fbf1c7', '3c3836', 'd65d0e', '9d0006'),
3232
nord_light: makeTheme('eceff4', '2e3440', '5e81ac', 'bf616a'),
33+
obsidian: makeTheme('1a1a2e', 'e2e8f0', 'f59e0b'),
3334
'cyber-pulse': makeTheme('000000', 'ffffff', '00ffee', 'ff0055'),
3435
};
3536

0 commit comments

Comments
 (0)