-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong postCSS import order in CRA5 #7051
Comments
this seems to be due to the missing currently there is no fix aside from ejecting create react app, as maybe this issue could be made more transparent or something. it is still unclear to me why the |
Closing in favor of original discussion. |
Discussed in #7049
Originally posted by kitsunekyo January 13, 2022
just like in issue #1057 I am adding some base style classes after
tailwind/base
andtailwind/components
.when I inline the styles from
button.css
, the styles work perfectly, and overwrite the tailwind styles, due to css order. (both selectors have a specificity of 010)once I move them to the imported file, the custom styles seem to be loaded before the tailwind styles, and break.
i can reproduce the issue with a brand new CRA5:
yarn create react-app my-app --template=typescript
apply these changes:
the applied styles in the devtools look like this:
you see that this definition overwrites our button styles, even though they should be loaded before our button styles.
The text was updated successfully, but these errors were encountered: