Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/light-body-bg-decoupled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ada-ui": patch
---

Decoupled the light-mode body background from --100 so themes that lift it for
text contrast no longer wash the page out to near-white, and held jupiter-2's
body at its cream hue
5 changes: 4 additions & 1 deletion scss/_ada.theme-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
--bg-body: var(--color950);
--fg-body: var(--color100);

--bg-body-light: var(--color100);
// Hardcoded pale, NOT var(--color100): themes lift --100 to clear AAA for ink
// on solid buttons (teal 0.98, jupiter-2 0.947), and riding on it washed the
// page out to near-white. This is the ladder pale, so ramp themes are unchanged.
--bg-body-light: oklch(0.91 0.05 var(--hue));
// Light-mode ink, per tone — headings, .input and .command.outline re-resolve
// it. L 0.30 (as --reading-light) clears AAA on the pale body. Chroma capped:
// darker saturated hues leave sRGB, and Chromium's gamut mapping turns
Expand Down
4 changes: 4 additions & 0 deletions scss/ada.jupiter-2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
--100: 0.947 0.007 81; // body + button text (#F0EDE8)
// Light theme would otherwise put orange (color800) text on cream — force navy.
--fg-body-light: var(--color950);
// Same lightness step as the other themes, but held at the cream hue (81) and
// low chroma: the base pale builds on --base-hue, and 49 at 0.05 is the accent
// orange — the page came out peach. Cream, a shade deeper than --100.
--bg-body-light: oklch(0.91 0.02 81);

// Curated to keep the theme's text identity: cream dark, navy ink light
// (derived defaults would lean peach / dark-brown off the orange primary).
Expand Down