Skip to content

Commit f8dd2ea

Browse files
authored
Merge pull request #233 from elalemanyo/main
Add explanation for programmatically composed class names to use the safelist option
2 parents e14d23a + 9b01bf5 commit f8dd2ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Tailwind uses modern CSS features that are not recognized by the `sassc-rails` e
7070

7171
### Class names must be spelled out
7272

73-
For Tailwind to work, your class names need to be spelled out. They can't be programmatically composed. So no "text-gray-#{grade}", only "text-gray-500".
73+
For Tailwind to work, your class names need to be spelled out. If you need to make sure Tailwind generates certain class names that don’t exist in your content files or they are programmatically composed, use the [safelist option](https://tailwindcss.com/docs/content-configuration#safelisting-classes).
74+
7475

7576
### ERROR: Cannot find the tailwindcss executable for <supported platform>
7677

0 commit comments

Comments
 (0)