Closed alec-c4 closed 2 years ago
The readme suggests to use postcss-import
for @import
statements with Tailwind.
Don't forget to put your @import
statements at the top of your file. For example:
/* application.tailwind.css */
@import 'external';
@tailwind base;
@tailwind components;
@tailwind utilities;
@alec-c4 can this issue now be closed?
Hey! I'm trying to make tailwindcss and scss work together, but I have some issues. I've tried 2 options
1 -
rails new app_name -c tailwind
- works fine, but I cannot use nested selectors, such as2 -
rails new app_name -c postcss
- works almost fine, I can use nested selectors with my postcss configbut I cannot use @import statement wit taiwindcss code (basic CSS code works fine).
application.scss
external.scss
In this example body is read, but text-9xl isn't applied to h1. How to fix it?