Commit 291b138
authored
fix(themes): synchronize github theme accent color between code and docs (JhaSourav07#3174)
## Description
Fixes JhaSourav07#2109
Synchronized the GitHub theme accent color between implementation and
documentation. The code was using `#39d353` (neon green) while
`THEMES.md` documented `#238636` (GitHub's official brand green),
creating visual inconsistency between what users read in docs and what
got generated.
**Why this matters:**
- Users reading THEMES.md expected to see `#238636`
- Generated badges showed `#39d353` instead
- This caused trust issues and confusion
**Changes made:**
- Updated `lib/svg/themes.ts` — GitHub theme accent: `#39d353` →
`#238636`
- Verified `THEMES.md` aligns with the new color
- Updated available themes count (20 → 24)
- Added unit test in `lib/svg/themes.test.ts` to prevent future
mismatches
- Added integration test in `lib/svg/generator.test.ts`
- All 150 tests passing ✅
## Pillar
- [x] 🎨 Pillar 1 — New Theme Design
- [ ] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [ ] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
GitHub theme badge now displays with `#238636` accent color (brand
green), matching the official documentation.
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME&theme=github`).
- [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will pass).
- [x] My commits follow the Conventional Commits format (`fix(themes):
...`).
- [x] I have updated `README.md` if I added a new theme or URL
parameter. (Not needed — existing theme updated)
- [x] I have started the repo.
- [x] I have made sure that I have only one commit to merge in this PR.
- [x] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (no raw elements, smooth animations, correct fonts).
- [x] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.4 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
245 | 266 | | |
246 | 267 | | |
247 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
119 | 133 | | |
120 | 134 | | |
121 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments