Skip to content

neo-brutalism theme added.#335

Merged
motirebuma merged 1 commit intomainfrom
neo-test
Apr 23, 2026
Merged

neo-brutalism theme added.#335
motirebuma merged 1 commit intomainfrom
neo-test

Conversation

@motirebuma
Copy link
Copy Markdown
Collaborator

  • neo-brutalism theme

Copilot AI review requested due to automatic review settings April 23, 2026 15:41
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
quotevote Ready Ready Preview, Comment Apr 23, 2026 3:41pm

@motirebuma motirebuma merged commit a32633e into main Apr 23, 2026
6 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 a neoBrutalism flag and toggleNeoBrutalism() persisted in localStorage.
  • Apply the neo-brutalism class 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants