Skip to content

Commit 5f1715c

Browse files
committed
fix(themes): correct highcontrast text color to #ffffff for WCAG compliance
1 parent e9da96e commit 5f1715c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ URL Parameter > Theme Default > System Fallback
192192
| `light` | Clean & minimal | `ffffff` | `0969da` | `24292f` |
193193
| `gruvbox` | retro warm dark | `282828` | `fe8019` | `ebdbb2` |
194194
| `random` | Surprise theme on reload | _varies_ | _varies_ | _varies_ |
195-
| `highcontrast` | Accessibility high contrast | `0a0a0a` | `ff4500` | `888888` |
195+
| `highcontrast` | Accessibility high contrast | `0a0a0a` | `ff4500` | `ffffff` |
196196

197197
> **`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.
198198

THEMES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ https://commitpulse.vercel.app/api/badge?username=YOUR_USERNAME&theme=<slug>
2525
| nord | `#2e3440` | `#d8dee9` | `#88c0d0` |
2626
| synthwave | `#0d0221` | `#f8f8f2` | `#ff2d78` |
2727
| gruvbox | `#282828` | `#ebdbb2` | `#fe8019` |
28-
| highcontrast | `#0a0a0a` | `#888888` | `#ff4500` |
28+
| highcontrast | `#0a0a0a` | `#ffffff` | `#ff4500` |
2929

3030
---
3131

lib/svg/themes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const themes: Record<string, BadgeTheme> = {
2424
synthwave: makeTheme('0d0221', 'f8f8f2', 'ff2d78'),
2525
gruvbox: makeTheme('282828', 'ebdbb2', 'fe8019'),
2626
aurora_cyberpunk: makeTheme('090B13', 'EAF2FF', '9D5CFF'),
27-
highcontrast: makeTheme('0a0a0a', '888888', 'ff4500'),
27+
highcontrast: makeTheme('0a0a0a', 'ffffff', 'ff4500'),
2828
catppuccin_latte: makeTheme('eff1f5', '4c4f69', '1e66f5'),
2929
solarized_light: makeTheme('fdf6e3', '586e75', '268bd2'),
3030
gruvbox_light: makeTheme('fbf1c7', '3c3836', 'd65d0e'),

0 commit comments

Comments
 (0)