LibreChat/client/src
Marco Beretta 67323e1797 🌫️ feat: Give the Dialog Scrims Theme-Owned Opacity Roles (#16492)
* feat: Give the Dialog Scrims Theme-Owned Opacity Roles

The three dialog families carried their scrim alpha in each utility
(bg-surface-overlay/80, /90, /65), so a theme could recolor a scrim but
not set how much it dims. Add scrimOpacity, alertScrimOpacity and
modalScrimOpacity, exposed as bg-scrim, bg-scrim-alert and
bg-scrim-modal in the published tokens, defaulting to the 80%, 90% and
65% each family drew.

ClickHouse takes Click UI's 0.75 from dialog.color.opaqueBackground,
cited in the drift guard. A bundled scrim never lifts the page and, on
a light canvas, separates the dialog by 3:1, which is why ClickHouse
dark keeps a black overlay rather than Click UI's lighter gray.

* test: Read the Dialog Scrim Through Its Role Class in the Morph and Settings Scenarios

Both scenarios pinned the old bg-surface-overlay/80 literal: the morph
counted elements carrying it and Settings compared its scrim with a
probe of it, whose color-mix value serializes differently from the
role's rgb(). They now use bg-scrim, the class DIALOG_SCRIM_CLASS
exports.

(cherry picked from commit 2d7133fcb1)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16492
2026-10-01 03:46:18 +00:00
..
@types
__tests__
a11y
common 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
components 🎛️ refactor: Supply App-Global Chat Settings From the Host (#16466) 2026-10-01 03:46:18 +00:00
constants
data-provider 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
hooks 🎛️ refactor: Supply App-Global Chat Settings From the Host (#16466) 2026-10-01 03:46:18 +00:00
lib/rum
locales 🧭 feat: Palette Show All Catalogs, MCP Status and Composer Polish (#16422) 2026-10-01 03:46:18 +00:00
polyfills 🗄️ fix: Fall Back to In-Memory Storage When Web Storage Is Denied (#16431) 2026-09-28 12:28:52 +02:00
Providers 🚦 feat: Give Pressed and Disabled States Their Own Theme Roles (#16487) 2026-10-01 03:46:18 +00:00
routes 🎛️ refactor: Supply App-Global Chat Settings From the Host (#16466) 2026-10-01 03:46:18 +00:00
store 🎛️ refactor: Supply App-Global Chat Settings From the Host (#16466) 2026-10-01 03:46:18 +00:00
utils 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
App.jsx 🎨 feat: Pick the Deployment Theme in librechat.yaml (#16286) 2026-10-01 03:46:17 +00:00
fonts.css 🔤 feat: Bundle Inconsolata for the ClickHouse Theme (#16376) 2026-10-01 03:46:17 +00:00
main.jsx 🔤 feat: Bundle Inconsolata for the ClickHouse Theme (#16376) 2026-10-01 03:46:17 +00:00
mobile.css 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
style.css 🌫️ feat: Give the Dialog Scrims Theme-Owned Opacity Roles (#16492) 2026-10-01 03:46:18 +00:00
style.spec.ts 📐 feat: Radius and Font Scales Follow the Theme (#16340) 2026-10-01 03:46:17 +00:00
vite-env.d.ts