Merged
Conversation
Collaborator
motirebuma
commented
Apr 23, 2026
- neo-brutalism theme
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Adds an optional “neo-brutalism” visual theme to the QuoteVote frontend, controlled via ThemeContext and persisted in localStorage, with global CSS rules activated by an html.neo-brutalism class.
Changes:
- Extend
ThemeContext/types to include aneoBrutalismflag andtoggleNeoBrutalism()persisted inlocalStorage. - Apply the
neo-brutalismclass on<html>(both pre-paint via inline script and reactively via context effect). - Add a settings toggle and introduce the neo-brutalism token palette + component overrides in global CSS.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| quotevote-frontend/src/types/context.ts | Extends ThemeContextValue with neo-brutalism state + toggle. |
| quotevote-frontend/src/context/ThemeContext.tsx | Implements persistence and <html> class management for neo-brutalism. |
| quotevote-frontend/src/app/layout.tsx | Pre-paint inline script now also applies neo-brutalism class from localStorage. |
| quotevote-frontend/src/app/globals.css | Introduces the neo-brutalism palette and broad styling overrides gated by .neo-brutalism. |
| quotevote-frontend/src/app/dashboard/settings/SettingsPageClient.tsx | Adds a UI switch in Settings to toggle the neo-brutalism theme. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+148
to
+156
| const next = !neoBrutalism | ||
| setNeoBrutalism(next) | ||
| try { | ||
| localStorage.setItem('neoBrutalism', next ? 'on' : 'off') | ||
| } catch (_error) { | ||
| // ignore localStorage write errors | ||
| } | ||
| return next | ||
| }, [neoBrutalism]) |
Comment on lines
+418
to
+433
| .neo-brutalism { | ||
| --background: var(--nb-cream); | ||
| --color-background: var(--nb-cream); | ||
| } | ||
|
|
||
| .neo-brutalism body { | ||
| background-color: var(--nb-cream); | ||
| font-weight: 500; | ||
| } | ||
|
|
||
| .dark.neo-brutalism, | ||
| .neo-brutalism.dark { | ||
| --background: oklch(0.18 0.01 260); | ||
| --color-background: oklch(0.18 0.01 260); | ||
| } | ||
|
|
Comment on lines
+256
to
+270
| /* ============================================================ */ | ||
| /* NEO-BRUTALISM THEME */ | ||
| /* Multi-color OKLCH palette, bold borders, hard offset shadows */ | ||
| /* Coexists with light or dark mode */ | ||
| /* ============================================================ */ | ||
|
|
||
| .neo-brutalism { | ||
| /* ——— Brutalist metrics ——— */ | ||
| --radius: 0.25rem; | ||
| --nb-border-width: 2.5px; | ||
| --nb-border-color: oklch(0.15 0.02 260); | ||
| --nb-shadow-color: oklch(0.15 0.02 260); | ||
|
|
||
| /* Hard offset shadows (no blur) */ | ||
| --nb-shadow-xs: 2px 2px 0 0 var(--nb-shadow-color); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.