LibreChat/packages
Marco Beretta f546dc2bee
🎨 fix: Draw Library Colours From Theme Roles and Record the Exceptions (#16482)
* fix: Draw Library Colours From Theme Roles and Record the Exceptions

PixelCard resolves its variant palettes from theme channel variables when it lays
out pixels, so the image generation placeholder follows the active theme in dark
mode instead of drawing a fixed light slate palette. The SAML glyph and Codey mark
take the text colour.

The new theme/allowlist.md records every colour that deliberately sits outside the
theme (brand marks, artwork, theme definitions, library elevation ink) and why.

* fix: Repaint the Pixel Card When the Theme Changes

The palette is read from theme variables when the pixels are laid out, so a mode
switch or an applied theme left the previous theme's pixels on the canvas. The card
now lays its pixels out again when the root's class or inline variables change.

* fix: Keep the Pixel Card's Decorative Presets as Given

The blue, yellow and pink presets have no theme role that reproduces them, so they
keep their original palettes and are recorded in the allowlist; only the default
palette, the one the app renders, reads theme roles.

* test: Cover the SAML Glyph Following the Button Text Colour

* fix: Lay the Pixel Card Out Again Only When Its Palette Changes

The root's inline style also carries unrelated variables such as the scrollbar gutter
and markdown font size, and relaying the pixels on every write blinked and replayed
an in-progress card. The allowlist now states what it covers and where the skipped
files are tracked.

* test: Key the Pixel Card Palette Mock by Variable Name
2026-09-29 16:14:47 +02:00
..
api 🎨 fix: Fall Back From an Invalid Theme in librechat.yaml Instead of Exiting (#16462) 2026-09-29 00:02:46 +02:00
client 🎨 fix: Draw Library Colours From Theme Roles and Record the Exceptions (#16482) 2026-09-29 16:14:47 +02:00
data-provider 🌫️ feat: Give the Dialog Scrims Theme-Owned Opacity Roles (#16492) 2026-09-29 16:13:14 +02:00
data-schemas 🧯 fix: Outlast Failed Auth Cache Eviction on Credential Changes (#16435) 2026-09-28 21:21:53 +02:00