Commit 1764a25
authored
feat(themes): add obsidian preset — deep charcoal bg (#1a1a2e) with amber gold accent (#f59e0b) (JhaSourav07#1931)
## What does this PR do?
Adds a new "obsidian" preset theme to CommitPulse — a sophisticated,
premium
dark neutral theme inspired by the Obsidian note-taking app aesthetic
that is
extremely popular in the developer community.
## Pillar
- [x] New Theme Design
## Fixes
Closes JhaSourav07#1928
## Palette
| Property | Value | Role |
|----------|---------|-----------------------------------|
| `bg` | 1a1a2e | Deep navy-charcoal background |
| `text` | e2e8f0 | Cool off-white, readable at 11px |
| `accent` | f59e0b | Amber gold — towers, glow, labels |
## Visual Preview

## Why this palette works
- bg (#1a1a2e) is intentionally dark — the amber glow lands with depth
on charcoal
- accent (#f59e0b amber) is saturated and vivid per CONTRIBUTING.md
guidance
- text (#e2e8f0) contrast ratio against bg = ~13.5:1 (WCAG AA requires
4.5:1 ✅)
- All three values were chosen as a cohesive system — not arbitrary hex
codes
- "obsidian" is unique, memorable, and does not conflict with any
existing key
## Changes
| File | Change |
|------|--------|
| `lib/svg/themes.ts` | Added `obsidian: makeTheme('1a1a2e', 'e2e8f0',
'f59e0b')` |
| `README.md` | Added obsidian row to Theme Presets table |
| `THEMES.md` | Added 🪨 Obsidian section with live preview + hex table,
updated count to 20 |
## Theme checklist (CONTRIBUTING.md)
- [x] Tested against all 5 label/stat text sizes in the SVG
- [x] Looks correct in both GitHub Dark and Light browser modes
- [x] Has a meaningful, memorable name
- [x] Added to theme table in README.md
- [x] Added to THEMES.md with live preview badge
## Code quality checklist
- [x] npm run test passes locally
- [x] npm run lint passes locally
- [x] npm run format passes locally
- [x] My commits follow the Conventional Commits format
- [x] Zero new dependencies added
- [x] No logic changes — theme data only3 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
267 | 280 | | |
268 | 281 | | |
269 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments