Skip to content

feat: add gruvbox theme#267

Open
aidankmcalister wants to merge 1 commit intobetter-auth:mainfrom
aidankmcalister:feat/gruvbox-theme
Open

feat: add gruvbox theme#267
aidankmcalister wants to merge 1 commit intobetter-auth:mainfrom
aidankmcalister:feat/gruvbox-theme

Conversation

@aidankmcalister
Copy link
Contributor

Summary

Adds a new gruvbox theme to Better Hub with one dark variant and one light variant, based on the official Gruvbox palette.

What changed

  • Added gruvbox theme definition in apps/web/src/lib/themes/themes.tsx
    • id: "gruvbox"
    • Dark variant using classic Gruvbox dark tones (dark0, warm foreground, orange/yellow/green accents)
    • Light variant using classic Gruvbox light tones (light0, faded accent set)
    • Includes full theme token mapping (--background, --foreground, --card, --link, diff colors, alerts, contribution heatmap colors, etc.)
    • Includes syntax highlighting mappings for both dark and light variants
  • Registered gruvbox in apps/web/src/lib/themes/index.ts so it appears in the app theme picker.

Notes

  • Kept implementation simple: one theme ID with exactly two variants (dark + light).
  • Palette choices were mapped directly from Gruvbox’s original color families (dark/light, bright/faded, neutral accents).

Validation

  • Ran typecheck successfully:
    • cd apps/web && bun run typecheck
  • Ran formatting check on modified theme files:
    • oxfmt --check apps/web/src/lib/themes/themes.tsx apps/web/src/lib/themes/index.ts

@vercel
Copy link

vercel bot commented Mar 3, 2026

@aidankmcalister is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@aidankmcalister aidankmcalister changed the title feat: add gruvbox light and dark themes feat: add gruvbox theme Mar 3, 2026
@ping-maxwell
Copy link
Member

Hey I'm planning on making a theme-store, we'll put your theme on there.
Would you like me to handle this for you? I've already cloned the theme into a repo, but if you'd like to publish it under your name we can do that too!

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.

3 participants