[v4] Normal font weight is not respected #14656
-
What version of Tailwind CSS are you using? ^4.0.0-alpha.26 What build tool (or framework if it abstracts the build tool) are you using? Vite (v5.4.8) with React (v18.3.1) What version of Node.js are you using? v21.7.3 What browser are you using? Safari What operating system are you using? macOS Reproduction URL https://play.tailwindcss.com/jFiizARA8r Describe your issue When setting a font weight via the new CSS variable syntax: @theme {
--font-weight-normal: 375;
} It's not set globally by default for all html tags, and it also shows as "NaN" within Safari dev tools. I have tried changing it to |
Beta Was this translation helpful? Give feedback.
Answered by
adamwathan
Oct 12, 2024
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
heychazza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! This looks like it's working as expected to me, the
font-normal
class is correctly setting the font weight to 375:If you're expecting it to be set for the whole document, you need to add the
font-normal
class to the<html>
or<body>
elements — we don't automatically take whatever you set forfont-normal
and apply it to the document. Same behavior in v3 👍