mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
fix(web): bridge Tailwind --font-sans to --theme-font-sans (#20406)
Tailwind v4 defines its own --font-sans and --font-mono tokens independently of the Hermes theme variables. Components using font-sans/font-mono utility classes bypass --theme-font-sans and --theme-font-mono, so theme font changes have no effect. Add --font-sans and --font-mono bridges in the @theme inline block so Tailwind's font tokens follow the active Hermes theme. Fixes #20380
This commit is contained in:
parent
100536134c
commit
28bb7e0a8e
1 changed files with 2 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ code, kbd, pre, samp, .font-mono, .font-mono-ui {
|
|||
all proportionally in Tailwind v4. */
|
||||
@theme inline {
|
||||
--spacing: calc(0.25rem * var(--theme-spacing-mul, 1));
|
||||
--font-sans: var(--theme-font-sans);
|
||||
--font-mono: var(--theme-font-mono);
|
||||
}
|
||||
|
||||
#root {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue