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
Injecting CSS reset before typography.js styles in Gatsby? #253
Comments
kylegillen
changed the title
Injecting CSS reset before typography.js styles?
Injecting CSS reset before typography.js styles in Gatsby?
Apr 13, 2020
Any luck with this? I'm also looking at tailwind + typography |
Same issue here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
I'm using Tailwind CSS in conjunction with typography.js via the official plugin.
I want to use tailwind's base styles and want typography to overwrite the styles thereafter.
The issue being that both in development and production, typography inserts itself as the first style component in the head tag.
I currently import tailwind in the gatsby-browser file, but as typography seems to append itself at the very top of the head tag, there's seemingly no entry point in the gatsby build process that I can tap into to add another css file above typography.
Can anyone outline how I could influence the build ordering, or provide an alternative solution that would let me import the reset before typography injects its styles?
I tried the suggestions in issue #180 to no avail due to the dynamic nature of typography.js via the gatsby plugin.
The text was updated successfully, but these errors were encountered: