Disabling Preflight #706
Unanswered
DavidReinertToptal
asked this question in
Q&A
Replies: 1 comment
-
Hey there, thanks for raising this issue! // tailwind.config.js
module.exports = {
corePlugins: {
preflight: false, // Disable preflight styles in twin
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, just began exploring this library in recent days. I need a runtime solution for TailwindCSS so it can function in a module federation context and I'm optimistic that twin.macro+@emotion/react can be that solution. I did have one question/problem around the preflight tailwindCSS styling. The projects I'm working with currently all expect the preflight to be disabled. Currently. using emotion, I am injecting the
GlobalStyles
from twin.macro as well my own custom global styles, however it seems that pulls in both the preflight styles and other useful or necessary styles such as animation keyframes, without any respect to my tailwind config setting to disable preflight stylesDoes this library currently support my use case or should it? Is this a known issue and could a workaround/support be implemented. I'd be happy to take a stab at it myself if someone would be able to help point me in the right direction. Any insight or guidance would be greatly appreciated. I'm signing off for the evening in my time zone, apologies in advance for any delay in response
Beta Was this translation helpful? Give feedback.
All reactions