Skip to content

Commit 455a32d

Browse files
Update hide.md (#631)
Added the safe listing for tailwind v4.0.
1 parent 26dbbcb commit 455a32d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

www/commands/hide.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ module.exports = {
6161
// ...
6262
}
6363
```
64+
If you are using Tailwind CSS v4.0 and are making use of the CSS configuration, you may need to update your `style.css` file to safe list the classes you need.
65+
66+
```css
67+
@source inline("hidden");
68+
@source inline("invisible");
69+
@source inline("opacity-0");
70+
```
71+
More information here : [Safelisting specific utilities - Tailwind CSS v4.0](https://tailwindcss.com/docs/detecting-classes-in-source-files#safelisting-specific-utilities).
6472

6573
### Examples
6674

0 commit comments

Comments
 (0)