LibreChat/client/src
Marco Beretta dcd06896f2 🖌️ fix: Apply Controlled Themes Before Paint and Theme Prose Links, Inline Code and QR Backdrops (#16480)
* fix: Apply controlled themes before paint and give prose links, inline code and QR backdrops theme roles

ThemeProvider folds a controlled theme prop change into state during the
render that delivers it and applies the theme in a layout effect, so a
deployment theme, a shared link's theme and the viewer's own theme reach
the root before the commit paints. Storage writes stay after the commit.

Adds rgb-link-prose (link in light, primary text in dark, following a
theme's own link) and registers rgb-surface-qr, and paints inline prose
code with the surface-active-alt and surface-hover-alt roles.

* test: Record the frames a controlled theme paints and the prose and QR roles

(cherry picked from commit 364bf27210)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16480
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 🔭 feat: Tag Browser Diagnostics With Client Build IDs (#15656) 2026-09-06 12:47:34 -04:00
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 🖌️ fix: Apply Controlled Themes Before Paint and Theme Prose Links, Inline Code and QR Backdrops (#16480) 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 🖌️ fix: Apply Controlled Themes Before Paint and Theme Prose Links, Inline Code and QR Backdrops (#16480) 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 🧶 feat: Flatten Active Message Threads Behind a Flag (#15633) 2026-09-06 14:30:50 -04:00