LibreChat/packages
Marco Beretta 50ff19829a
📐 feat: Radius and Font Scales Follow the Theme (#16340)
* feat: Radius and Font Scales Follow the Theme

Map Tailwind's radius scale (sm through 3xl, plus bare `rounded`) and the
sans and mono families to theme-owned appearance properties in the app's
`@theme inline` block, so a theme definition reshapes the existing plain
utilities instead of only the `theme-*` roles. Defaults reproduce the
values those utilities resolved to before, and the JS config entries and
the bare `--radius` they replace are removed.

* fix: Keep the Pixel Offsets in the Small Radius Defaults

The old `rounded-sm` and `rounded-md` were `calc(var(--radius) - 4px)`
and `calc(var(--radius) - 2px)`. Rem-only defaults matched them only at a
16px root, so keep the calc form and match at every root font size.

* test: Resolve Custom Properties Before Comparing the Code Font

`code` and `.font-mono` now both reach the mono stack through custom
properties, so compare the resolved stacks rather than the raw
declarations.

* fix: Leave Bare rounded on Its Fixed Radius

Bare `rounded` was a fixed 0.25rem, which the `sm` default only equals
at a 16px root now that it keeps its px offset, so it no longer follows
the `sm` step.

* fix: Accept the calc() Radius Defaults the Registry Exports

* test: Cover the Theme Radius and Font Scales in the Browser

* fix: Require Units on Both Operands of a calc() Radius
2026-09-25 11:34:29 +02:00
..
api ⚙️ feat: Make the Per-User Passkey Cap Configurable (#16259) 2026-09-25 11:34:06 +02:00
client 📐 feat: Radius and Font Scales Follow the Theme (#16340) 2026-09-25 11:34:29 +02:00
data-provider ⚙️ feat: Make the Per-User Passkey Cap Configurable (#16259) 2026-09-25 11:34:06 +02:00
data-schemas ⚙️ feat: Make the Per-User Passkey Cap Configurable (#16259) 2026-09-25 11:34:06 +02:00