Skip to content

Commit 4e426d7

Browse files
authored
Update font-weight.mdx (#2032)
The documentation says to use the `--font-*` theme variables to customize the font weight utilities in your project: <img width="737" alt="image" src="https://github.com/user-attachments/assets/523330ea-f98d-4694-8fdb-ee0454211008" /> But for `---font-800: 800` that actually creates a `font-family: 800` rule instead of the intended `font-weight: 800` one. The "Theme variables namespace" is mentioning the correct `--font-weight-*` one: https://tailwindcss.com/docs/theme#theme-variable-namespaces
1 parent ea638f6 commit 4e426d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/font-weight.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ Use utilities like `font-thin` and `font-bold` to set the font weight of an elem
8888

8989
## Customizing your theme
9090

91-
<CustomizingYourTheme utility="font" name="font weight" customValue="1000" customName="extrablack" />
91+
<CustomizingYourTheme utility="font" themeKey="font-weight" name="font weight" customValue="1000" customName="extrablack" />

0 commit comments

Comments
 (0)