Skip to content

Commit ee0cb59

Browse files
authored
Replace usage of theme() to var() as recommended by Tailwind v4 (#1992)
At the [Using the theme() function](https://tailwindcss.com/docs/upgrade-guide#using-the-theme-function) section docs advice to use `var()` over `theme()`, but there is a part of code where `theme()` is still used
1 parent 784c83e commit ee0cb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/upgrade-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ You probably won't even notice this change (it might even make your project look
413413
@layer base {
414414
input::placeholder,
415415
textarea::placeholder {
416-
color: theme(--color-gray-400);
416+
color: var(--color-gray-400);
417417
}
418418
}
419419
```

0 commit comments

Comments
 (0)