How to add tailwind to a .less file

Viewed 570

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 ?

2 Answers

in less can import tailwind as css files you can try it

@import "~tailwindcss/base.css";
@import "~tailwindcss/components.css";
@import "~tailwindcss/utilities.css";
Related