LibreChat/client/src
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
..
@types
__tests__
a11y
common 🏎️ perf: Re-render Only the Tail Rows When a Message Is Sent (#16572) 2026-09-30 10:19:49 -04:00
components 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
constants
data-provider 🔑 feat: Passkey Authentication with WebAuthn Sign-In and Management (#14715) 2026-10-01 03:46:16 +00:00
hooks 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
lib/rum
locales 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +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: Paint the Shared Link Tenant's Deployment Theme (#16333) 2026-10-01 03:46:17 +00:00
routes 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
store 🥧 feat: Show Last-Turn Token Usage Beside Conversation Totals (#16230) 2026-10-01 03:46:16 +00:00
utils 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
App.jsx 🎨 feat: Pick the Deployment Theme in librechat.yaml (#16286) 2026-10-01 03:46:17 +00:00
main.jsx 🗄️ fix: Fall Back to In-Memory Storage When Web Storage Is Denied (#16431) 2026-09-28 12:28:52 +02:00
mobile.css 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
style.css 🌫️ feat: Shadow Scale Follows the Theme (#16341) 2026-10-01 03:46:17 +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