How to config next.js to support Simultaneous tailwind css with css modules? I want tailwindcss wrap whole project:
// /tailwind.scss
:global {
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
}
// /test-module.css
.example {
font-size: 36px;
}
// /pages/_app.jsx
import '../talwind.scss';
...
And in a sample component:
// /components/my-component.jsx
import css from '../test-module.css';
const Test = () => (
<div className={`bg-red-500` ${css.example}}>Test Tailwind with CSS</div>
);