LibreChat/packages
Marco Beretta 01f3e52eee 🪞 fix: Publish the Theme Defaults and Scale Mapping to Package Consumers (#16479)
* fix: publish the theme defaults and scale mapping with the package

Move the radius, font and shadow utility mapping from the app stylesheet into
tokens.css, and the stock values of every theme-owned property (the 94 color
roles, the appearance roles and the brand colors, with the primitive scales they
are written against) into a new defaults.css that tokens.css imports and the
build ships beside it. The app reads both through its existing tokens.css
import, so @librechat/client/theme.css now gives a consumer the same utilities
and values the app renders. controls.css folds into the defaults, and the preset
no longer pins rounded-sm, rounded-md and rounded-lg to --radius.

A new mock scenario compiles the app and a consumer from what each loads,
checks the build output and exports, and compares computed styles in light and
dark; defaults.spec.ts holds defaults.css equal to the runtime themes.

* docs: note that hosts load the stock Inter and Roboto Mono faces

(cherry picked from commit a50612f70f)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16479
2026-10-01 03:46:18 +00:00
..
api 🎨 fix: Fall Back From an Invalid Theme in librechat.yaml Instead of Exiting (#16462) 2026-10-01 03:46:18 +00:00
client 🪞 fix: Publish the Theme Defaults and Scale Mapping to Package Consumers (#16479) 2026-10-01 03:46:18 +00:00
data-provider 🖌️ fix: Apply Controlled Themes Before Paint and Theme Prose Links, Inline Code and QR Backdrops (#16480) 2026-10-01 03:46:18 +00:00
data-schemas 🧯 fix: Outlast Failed Auth Cache Eviction on Credential Changes (#16435) 2026-10-01 03:46:18 +00:00