How to handle base styles reset (preflight) in a component library? #5362
Unanswered
ayush987goyal
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to create a component (as part of a component library which has just this component for now) using TailwindCSS. I want this component to look a certain way and tailwindcss expects the base preflight css (normalized css) to be present. Now as part of the library, I do not want to impose this preflight normalization on consumers who would have some different base set in their webapps.
How should I provide these preflight so that it doesn’t affect the existing base resets of consumer? Some possible options:
All reactions