I'm building a component library with tailwind for styling - all components rely on the preflight for proper rendering. I have a documentation website setup with starlight (following https://starlight.astro.build/guides/css-and-tailwind/#tailwind-css), and am using react-live (https://www.npmjs.com/package/react-live) to preview the components with a LiveEditor and LivePreview. I've noticed that some components have discrepancies when rendered in starlight vs. a regular react application - eg. a <button> has the user agent background applied in starlight, but not elsewhere.
Is there a way for me to re-enable the tailwind preflight for our rendered components? I've tried importing our stylesheet where the components are rendered, but the user agent styles still take precedence.
A production-focused playground for live editing React code. Latest version: 4.1.7, last published: 5 months ago. Start using react-live in your project by running npm i react-live. There are 398 other projects in the npm registry using react-live.