Replies: 1 comment
-
Hey! Do you mind attaching a reproduction here? The example from https://tailwindcss.com/docs/preflight#disabling-preflight should definitely work unless you have an |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Disabling Preflight on Tailwind v4 is not working!
I have a project in nextjs + typescript + tailwind CSS.
node --version
v23.2.0
{
"@tailwindcss/postcss": "^4.0.17",
"next": "^14.2.25",
"tailwind-merge": "^3.0.2",
"tw-animate-css": "^1.2.4"
devDep
"postcss": "^8.5.3",
"tailwindcss": "^4.0.17"
}
I need h1-h6 tag to be the same as always been, not like this:
What I tried
1# this is my "tailwind.config.js" after adding corePlugins['preflight'] = false:
result; "didn't work"
2# This is my "globals.css" after reading this doc -> https://tailwindcss.com/docs/preflight#disabling-preflight and some issues on github:
result; "didn't work"
3# I also tried adding this
<h1 className="text-8xl font-bold my-4">{name}</h1>
on my tsx, but still I am not able to make h1 get font-size: 2em; instead I get value inherit.result; "didn't work"
NOTE: Not sure what I am doing wrong or if someone else has the same issue, but I am completely new to Tailwind
Beta Was this translation helpful? Give feedback.
All reactions