I'm trying to import tailwind inside my styled components globalstyle, to set base styles.
Code below doesn't work, so any suggestions on how to make it work?
import {createGlobalStyle} from 'styled-components';
const GlobalStyle = createGlobalStyle`
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
h1 {
@apply text-2xl;
}
h2 {
@apply text-xl;
}
}
`