theme: everforest palette

Replace the gruvbox palette with everforest, using the "paper" light
background (#efe6cd) rather than everforest's stock #fffbef, which read too
bright.

- gray is remapped to the everforest neutral ramp: 50-300 are the paper
  background steps, 900/950 the dark canvas (#2d353b / #232a2e).
- primary-* variables now carry everforest green (#8da101 light, #a7c080
  dark) instead of gruvbox blue.
- article prose gets explicit --tw-prose-* / --tw-prose-invert-* overrides.
  The typography plugin ships Tailwind's own grays, so without this the body
  copy, headings, rules and code blocks stayed slate on a warm background.
- inline code is hardcoded to indigo-500 by the plugin, so it needs a rule of
  its own; links keep primary-400 via the typography config.
- theme-color meta and the logo mark follow the palette.
- the 404 button and the active theme-menu chip were white-on-accent, which
  is unreadable on lime (2.9:1); they now use dark text on primary-500
  (5.0:1 light, 7.3:1 dark).
This commit is contained in:
trex Bot committed 2026-11-20 00:01:19 -06:00
1 parent abbfa1c0d6
commit c167cbba28
6 files changed
+87 -37

No files matched your search

+61 -12
View File
@@ -2,24 +2,73 @@
@tailwind components;
@tailwind utilities;
/* Gruvbox accent ramp.
Gruvbox uses a different blue for light and dark, so the primary-* utilities
/* Everforest accent ramp.
Everforest uses a different green for light and dark, so the primary-* utilities
resolve through these variables instead of fixed hexes. `.dark` must stay
after `:root` — same specificity, so source order decides. */
:root {
--primary-300: 168 196 184; /* #a8c4b8 — derived lighten of bright_blue */
--primary-400: 131 165 152; /* #83a598 — bright_blue */
--primary-500: 7 102 120; /* #076678 — faded_blue */
--primary-600: 5 74 86; /* #054a56 — derived darken of faded_blue */
--primary-700: 4 58 68; /* #043a44 — derived darken of faded_blue */
--primary-300: 182 196 106; /* #b6c46a — derived lighten of green */
--primary-400: 161 178 67; /* #a1b243 — derived */
--primary-500: 141 161 1; /* #8da101 — green */
--primary-600: 116 133 10; /* #74850a — derived darken */
--primary-700: 92 106 8; /* #5c6a08 — derived darken */
}
.dark {
--primary-300: 168 196 184; /* #a8c4b8 */
--primary-400: 168 196 184; /* #a8c4b8 — hover in dark */
--primary-500: 131 165 152; /* #83a598 — resting link in dark */
--primary-600: 7 102 120; /* #076678 — active chip in the theme menu */
--primary-700: 7 102 120; /* #076678 */
--primary-300: 195 214 164; /* #c3d6a4 — derived lighten of aqua */
--primary-400: 167 192 128; /* #a7c080 — aqua, hover in dark */
--primary-500: 167 192 128; /* #a7c080 — resting link in dark */
--primary-600: 141 161 1; /* #8da101 — active chip in the theme menu */
--primary-700: 116 133 10; /* #74850a */
}
/* Article prose. The typography plugin ships Tailwind's own grays as
--tw-prose-* defaults, so a palette swap has to override them too — otherwise
body copy, headings, rules and code blocks stay slate on a warm background. */
.prose {
--tw-prose-body: #475258;
--tw-prose-headings: #2d353b;
--tw-prose-lead: #5c6a72;
--tw-prose-links: #2d353b;
--tw-prose-bold: #2d353b;
--tw-prose-counters: #7a8471;
--tw-prose-bullets: #d3caac;
--tw-prose-hr: #e0d7ba;
--tw-prose-quotes: #2d353b;
--tw-prose-quote-borders: #e0d7ba;
--tw-prose-captions: #7a8471;
--tw-prose-kbd: #2d353b;
--tw-prose-kbd-shadows: 45 53 59;
--tw-prose-code: #8da101;
--tw-prose-pre-code: #e8dfc3;
--tw-prose-pre-bg: #2d353b;
--tw-prose-th-borders: #d3caac;
--tw-prose-td-borders: #e0d7ba;
--tw-prose-invert-body: #d3caac;
--tw-prose-invert-headings: #e8dfc3;
--tw-prose-invert-lead: #939f91;
--tw-prose-invert-links: #e8dfc3;
--tw-prose-invert-bold: #e8dfc3;
--tw-prose-invert-counters: #939f91;
--tw-prose-invert-bullets: #475258;
--tw-prose-invert-hr: #3d484d;
--tw-prose-invert-quotes: #e8dfc3;
--tw-prose-invert-quote-borders: #3d484d;
--tw-prose-invert-captions: #939f91;
--tw-prose-invert-kbd: #e8dfc3;
--tw-prose-invert-kbd-shadows: 232 223 195;
--tw-prose-invert-code: #a7c080;
--tw-prose-invert-pre-code: #d3caac;
--tw-prose-invert-pre-bg: #232a2e;
--tw-prose-invert-th-borders: #475258;
--tw-prose-invert-td-borders: #3d484d;
}
/* The plugin hardcodes indigo-500 for inline code instead of using
--tw-prose-code, so it needs an explicit override. Links keep their own
accent (primary-400) via the typography config. */
.prose :where(code):not(:where([class~='not-prose'], [class~='not-prose'] *, a *)) {
color: rgb(var(--primary-500));
}
.task-list-item::before {