The Tailwind CSS reset causes the default background color for the main CTA button to become white, making the button look weird, and the text unreadable. When you hover the button, the background becomes blue, as expected.
I prepared a public codepen to demo the behaviour:
Hey, thanks for the report. We will look into this.
June 25, 2022, 8:56am
This is known bug/feature of tailwind’s preflight, see
preflight button reset in v3 inconsistent with v2 · Issue #6602 · tailwindlabs/tailwindcss · GitHub
I would suggest to use custom preflight build without
background-color: transparent as someone
said at comments.
Or you can override button styles after preflight import, like:
November 16, 2022, 2:29am
Im getting the exact same issue and I tried to add
to the page, but it didn't work, how can I just change the HTML page for this to work?
Hello Jay. This workaround should be a working option. Could you please share the link to the page you’re building if it’s already on the web?
November 22, 2022, 1:44am
sorry, just saw this, yes the link is here:
i had to comment out part of tailwind to make the page even work, so you don’t really see the error here,. ill get a workalone option up.