-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[v4] v3 preflight styles option #15075
Comments
Currently this is my workaround:
|
Hey! This change is covered in the docs here: https://tailwindcss.com/docs/v4-beta#normalized-form-element-styles The only thing you need to add to your CSS to make things behave like v3 are these few lines, as mentioned in the docs: @layer base {
input,
textarea,
select,
button {
border: 0px solid;
border-radius: 0;
padding: 0;
color: inherit;
background-color: transparent;
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently switching from v3 to v4 clearly changes the layout and styles of the website because of the new preflight stuff.
Why not allow users to opt-in for two basic preflight styles (v3 or v4) and just recommend v4?
What version of Tailwind CSS are you using?
v4.0.0+
Describe your issue
Button styles, form styles, whatever that was previously set in v3 preflight no longer applies for v4 and you need to manually update the whole preflight styles and configuration to resolve let's say 90% of issues. I wouldn't just simply override v4 preflight with v3 preflight but I would add the possibility to keep v3 preflight and just recommend v4 preflight.
The text was updated successfully, but these errors were encountered: