You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FixesJhaSourav07#927
This PR introduces visual parity, high contrast navigation, and SSR
hydration safety across CommitPulse:
1. ** Light Theme Preset SVGs**:
- Added custom vector details for `Catppuccin Latte` (warm coffee latte
cup with steam details).
- Added custom astronomical solar-ray SVGs for the `Solarized Light`
theme.
- Restructured the `Gruvbox Light` lantern SVG to dynamically use the
theme's background fill so that it displays perfectly in both dark and
light modes.
- Configured `Nord Light` to use the premium dynamic Nord snowflake
vector.
- Added a high-tech cyberpunk HUD neon triangle SVG for the `Aurora
Cyberpunk` theme.
2. ** Contrast & Accessibility Improvements**:
- Re-designed the "Return to Top" button (`ReturnToTop.tsx`) to feature
**solid high-contrast background coloring** (pure white in light mode /
solid black in dark mode) instead of transparent blends.
- Added theme-matching emerald green icons, borders, and premium **neon
emerald aura shadows** (`shadow-[0_4px_30px_rgba(16,185,129,0.3)]`) with
scaling transitions on hover (`hover:scale-110 active:scale-95`).
- Standardized text color variables across the customization studio and
documentation pages to properly adapt under light and dark modes (fixing
raw invisible text in light mode).
3. ** SSR Hydration Correction**:
- Resolved the React/Next.js hydration mismatch warning in `Navbar` on
load by wrapping dynamic theme toggle buttons under a client-side
`mounted` check.
---
## Pillar
- [x] 🎨 Pillar 1 — New Theme Design
- [ ] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [x] 🛠️ Other (Bug fix, refactoring, docs)
---
## Visual Preview
<!-- Drag and drop screenshots of the light theme quick preset buttons,
the high-contrast up-arrow button, and the clean console without the
Next.js hydration error. -->
---
## 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`).
- [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [x] I have updated `README.md` if I added a new theme or URL
parameter.
- [x] I have starred 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).
## Visual Preview
### 1. Return-to-Top Button Redesign
| Before (Mismatched Blue Gradient) | After (Sleek Glassmorphic & Neon
Aura) |
| --- | --- |
|
<img width="170" height="162" alt="image"
src="https://github.com/user-attachments/assets/69512f2d-9fd9-4fcf-8d70-2b4f208b6c32"
/>
|
<img width="169" height="160" alt="image"
src="https://github.com/user-attachments/assets/9985bb84-fe63-468d-8ccf-82a912e588e3"
/>
|
### 2. Light Themes
<img width="395" height="100" alt="image"
src="https://github.com/user-attachments/assets/bb08d7ba-541f-4716-b358-cacb2339ac48"
/>
<img width="600" height="420" alt="image"
src="https://github.com/user-attachments/assets/66ede947-25cc-47fa-8468-c63066334d73"
/>
<img width="600" height="420" alt="image"
src="https://github.com/user-attachments/assets/f67a3bc4-3a6b-4980-9f85-2900b6c4ff6a"
/>
<img width="600" height="420" alt="image"
src="https://github.com/user-attachments/assets/28f8a2ab-1750-419c-baa7-2d4960922248"
/>
<img width="600" height="420" alt="image"
src="https://github.com/user-attachments/assets/71dae70b-5e8f-4247-9ccd-d635bc74c95c"
/>
0 commit comments