LibreChat/client
Marco Beretta 33871c39be 🌫️ feat: Shadow Scale Follows the Theme (#16341)
* feat: Shadow Scale Follows the Theme

Map Tailwind's shadow scale (xs through 2xl, plus bare `shadow`) to
theme-owned appearance properties in the app's `@theme inline` block, with
Tailwind's own values as defaults. `--theme-elevation-surface` stays the
separate role behind `shadow-theme-surface`.

* fix: Validate Theme Shadows and Keep Disabled Ones Composable

A theme shadow must now parse as a box-shadow list or none, so a
malformed value is rejected instead of voiding every shadow-* call site.
none resolves to a transparent layer, since Tailwind lists --tw-shadow
after the ring layers where a bare none invalidates the declaration.

* feat: Theme the Smallest Shadow Step Too

* test: Cover the Theme Shadow Scale in the Browser

* fix: Let the Browser Reject Unknown Shadow Colors

* fix: Keep var() and Other Length Units Valid in Theme Shadows

* fix: Keep Defaults for Appearance Keys Present but Undefined

* fix: Classify Shadow Tokens Instead of Deferring var() Values to the Browser

* fix: Reject Empty Layers in a Theme Shadow List

* fix: Require Concrete Theme Shadows So the Browser Can Validate Them

* fix: Reject env() and attr() in Theme Shadows Like var()

Both are substitution functions, so the browser only checks a value that
holds one at computed-value time. A missing environment variable without a
fallback then invalidated the composed box-shadow, ring layers included,
instead of rejecting the theme and keeping the default.

* fix: Keep Loading Released Themes With a Variable-Backed Surface Elevation

The released validator accepted var() in elevationSurface, and a theme that
fails validation is dropped as a whole. Only the new shadow scale steps need
to be concrete, so elevationSurface keeps its original check.

(cherry picked from commit 89f4a62dcf)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16341
2026-10-01 03:46:17 +00:00
..
public 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
src 🌫️ feat: Shadow Scale Follows the Theme (#16341) 2026-10-01 03:46:17 +00:00
sw
test
babel.config.cjs
check_updates.sh
index.html 🗄️ fix: Fall Back to In-Memory Storage When Web Storage Is Denied (#16431) 2026-09-28 12:28:52 +02:00
jest.config.cjs 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
jest.resolver.cjs
nginx.conf
package.json 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
postcss.config.cjs 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
tailwind.config.cjs 📐 feat: Radius and Font Scales Follow the Theme (#16340) 2026-10-01 03:46:17 +00:00
tsconfig.json
vite.config.ts