theme: gruvbox palette

Replace the cyan accent and Tailwind gray ramp with gruvbox.

- primary-* now resolves through CSS variables (css/tailwind.css) because
  gruvbox uses a different blue for light (#076678) and dark (#83a598);
  a single hex cannot serve both modes.
- gray is remapped to the gruvbox neutral ramp (light0 -> dark0), so page
  background, headings, muted text and borders all come from the theme.
- body/header/mobile-nav/dropdown/search use bg-gray-50 instead of bg-white
  so the canvas picks up light0 (#fbf1c7).
- theme-color meta and the logo mark follow the palette.
- 404 button was hardcoded bg-blue-600; now bg-primary-600.
This commit is contained in:
trex Bot committed 2026-11-19 12:40:32 -06:00
1 parent eb0c0ba77b
commit e1733b2db6
10 files changed
+64 -23

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import ThemeSwitch from './ThemeSwitch'
import SearchButton from './SearchButton'
const Header = () => {
let headerClass = 'flex items-center w-full bg-white dark:bg-gray-950 justify-between py-10'
let headerClass = 'flex items-center w-full bg-gray-50 dark:bg-gray-950 justify-between py-10'
if (siteMetadata.stickyNav) {
headerClass += ' sticky top-0 z-50'
}
+1 -1
View File
@@ -67,7 +67,7 @@ const MobileNav = () => {
leaveTo="translate-x-full opacity-0"
unmount={false}
>
<Dialog.Panel className="fixed left-0 top-0 z-70 h-full w-full bg-white opacity-95 duration-300 dark:bg-gray-950 dark:opacity-[0.98]">
<Dialog.Panel className="fixed left-0 top-0 z-70 h-full w-full bg-gray-50 opacity-95 duration-300 dark:bg-gray-950 dark:opacity-[0.98]">
<nav
ref={navRef}
className="mt-8 flex h-full basis-0 flex-col items-start overflow-y-auto pl-12 pt-2 text-left"
+1 -1
View File
@@ -70,7 +70,7 @@ const ThemeSwitch = () => {
leaveFrom="transform opacity-100 scale-100"
leaveTo="transform opacity-0 scale-95"
>
<Menu.Items className="absolute right-0 z-50 mt-2 w-32 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-800">
<Menu.Items className="absolute right-0 z-50 mt-2 w-32 origin-top-right divide-y divide-gray-100 rounded-md bg-gray-50 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-800">
<RadioGroup value={theme} onChange={setTheme}>
<div className="p-1">
<RadioGroup.Option value="light">