Skip to content

Commit 58fa3d9

Browse files
authored
Fix adding-custom-styles documentation (#2038)
Correct CSS variable names in modifiers example - Changed `--font-size-*` to `--text-*` - Changed `--line-height-*` to `--leading-*` https://tailwindcss.com/docs/adding-custom-styles#modifiers
1 parent 4e426d7 commit 58fa3d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/adding-custom-styles.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ Modifiers are handled using the `--modifier()` function which works exactly like
482482
/* [!code filename:CSS] */
483483
@utility text-* {
484484
/* prettier-ignore */
485-
font-size: --value(--font-size-*, [length]);
485+
font-size: --value(--text-*, [length]);
486486
/* [!code highlight:2] */
487487
/* prettier-ignore */
488-
line-height: --modifier(--line-height-*, [length], [*]);
488+
line-height: --modifier(--leading-*, [length], [*]);
489489
}
490490
```
491491

0 commit comments

Comments
 (0)