tailwindcss/packages
Adam Wathan 530774b186
Ensure --default-font-* and --default-mono-font-* variables respect theme customizations in JS config files (#14344)
This PR fixes an issue where variables like `--default-font-family`
wouldn't behave as expected when customizing `fontFamily.sans` or
`fontFamily.mono` in a JS config.

Because theme values added by JS config files are added as `reference`,
customizing `fontFamily.sans` means the `--font-family-sans` variable no
longer exists in the generated CSS.

The `--default-font-family` variable is set to `var(--font-family-sans)`
by default, so because that variable doesn't exist,
`--default-font-family` is effectively undefined and the browser default
font stack is used. This is unexpected because historically customizing
`fontFamily.sans` has updated your default font for your entire project.

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2024-09-04 15:30:21 -04:00
..
@tailwindcss-cli Ensure content globs defined in @config files are relative to that file (#14314) 2024-09-03 16:54:08 +02:00
@tailwindcss-node Fix a crash with older Node.js versions (#14342) 2024-09-04 13:43:18 -04:00
@tailwindcss-postcss Ensure content globs defined in @config files are relative to that file (#14314) 2024-09-03 16:54:08 +02:00
@tailwindcss-standalone Prepare v4.0.0-alpha.21 (#14313) 2024-09-02 15:43:28 -04:00
@tailwindcss-vite Vite: Add support for <style> tags in Astro files (#14340) 2024-09-04 19:14:05 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
internal-postcss-fix-relative-paths Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
tailwindcss Ensure --default-font-* and --default-mono-font-* variables respect theme customizations in JS config files (#14344) 2024-09-04 15:30:21 -04:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00