'How to add tailwind to a .less file
I have a gatsby project that uses .less as the CSS preprocessor, adding tailwind to it as shown in the docs does nothing
@tailwind base
@tailwind utilities
@tailwind components
How can I add tailwind to a .less file ?
Solution 1:[1]
If you are using tailwind with react, add
@tailwind base
@tailwind utilities
@tailwind components
to ./src/index.css file
Solution 2:[2]
in less can import tailwind as css files you can try it
@import "~tailwindcss/base.css";
@import "~tailwindcss/components.css";
@import "~tailwindcss/utilities.css";
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tarish |
| Solution 2 | Kriss |
