[object Object]

← back to Commercialrealestate

crcp-theme: define --onacc fleet-wide (text-on-accent: black in dark, white in light) so accent contrast is correct across all pages

04e9c8ca5f781082a386437ddcc2726d81a8a4c0 · 2026-08-19 08:30:09 -0700 · Steve Abrams

Files touched

Diff

commit 04e9c8ca5f781082a386437ddcc2726d81a8a4c0
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Aug 19 08:30:09 2026 -0700

    crcp-theme: define --onacc fleet-wide (text-on-accent: black in dark, white in light) so accent contrast is correct across all pages
---
 public/crcp-theme.css | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/public/crcp-theme.css b/public/crcp-theme.css
index d0e569c..eb6e268 100644
--- a/public/crcp-theme.css
+++ b/public/crcp-theme.css
@@ -6,12 +6,14 @@ html[data-theme="dark"]{
   --ink:#f2f6fb; --text:#f2f6fb; --mut:#b3c0cf; --muted:#b3c0cf; --sub:#b3c0cf;
   --headbg:rgba(13,17,23,.98); --stripe:rgba(255,255,255,.025); --hover:rgba(121,184,255,.10);
   --acc:#4bd268; --blue:#79b8ff; --gold:#e3b341; --red:#ff7b72; --purp:#c8a2ff;
+  --onacc:#0e1116; /* text on an accent bg — accents are LIGHT in dark mode, so black text reads */
 }
 html[data-theme="light"]{
   --bg:#f4f6f9; --bg2:#ffffff; --card:#ffffff; --line:#d5dbe2; --line2:#c2cad4;
   --ink:#12171e; --text:#12171e; --mut:#525f6e; --muted:#525f6e; --sub:#525f6e;
   --headbg:rgba(255,255,255,.98); --stripe:rgba(20,30,45,.028); --hover:rgba(9,105,218,.08);
   --acc:#1a7f37; --blue:#0969da; --gold:#9a6700; --red:#cf222e; --purp:#8250df;
+  --onacc:#ffffff; /* text on an accent bg — accents are DARK in light mode, so white text reads */
   /* fleet custom SURFACE vars — bespoke pages invented these and crcp-theme didn't cover them, so
      they stayed dark in day mode (dark islands). Defined for LIGHT ONLY, so dark mode keeps each
      page's own :root value (zero dark-mode change) and light mode finally flips these surfaces. */

← 94d8ebe CRCP hub: wire Firms → /firms.html (repoint the existing mis  ·  back to Commercialrealestate  ·  CRCP: Showcase (BuildOut marketplace) via browserbase — cron 3222d2e →