LibreChat/packages/client
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
..
src 📐 feat: Radius and Font Scales Follow the Theme (#16340) 2026-09-25 11:34:29 +02:00
babel.config.js
jest.config.js 🧵 ci: Keep a Floor of Two Jest Workers in CI (#15819) 2026-09-14 00:32:20 -04:00
jest.resolver.cjs ⬆️ chore: Migrate off deprecated @ariakit/react-core to @ariakit/react-components (#13940) 2026-06-24 23:13:57 -04:00
jest.setup.ts
package.json 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-09-23 21:34:14 +02:00
tailwind.compat.cjs 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-09-23 21:34:14 +02:00
tailwind.config.js 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-09-23 21:34:14 +02:00
tailwind.preset.cjs 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-09-23 21:34:14 +02:00
tsconfig.json ⚡ refactor: Migrate @librechat/client build to tsdown (#13596) 2026-06-08 11:20:03 -04:00
tsconfig.test.json
tsdown.config.mjs 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-09-23 21:34:14 +02:00