Replies: 3 comments
-
Oh, important I guess: when I remove all the '-m-0.5' it works as expected: ![]() ![]() (that's the reason I mentioned it in the title of the issue) |
Beta Was this translation helpful? Give feedback.
-
Yep, so the
Essentially, "you were adding other margins to child elements to tweak their spacing". |
Beta Was this translation helpful? Give feedback.
-
Great, thank you for you time and effort. I now now I'll need to make the adjustments. Hope this now serves as extra documentation on the issue, for others aswell. |
Beta Was this translation helpful? Give feedback.
-
What version of Tailwind CSS are you using?
in v4.0.8 it doesn't work (anymore)
in v3.4.17 does work
What build tool (or framework if it abstracts the build tool) are you using?
"dependencies": {
"@tailwindcss/vite": "^4.0.7",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-vue-next": "^0.475.0",
"radix-vue": "^1.9.15",
"reka-ui": "^2.0.0",
"tailwind-merge": "^3.0.1",
"tailwindcss-animate": "^1.0.7",
"vue": "^3.5.13"
},
"devDependencies": {
"@types/node": "^22.13.4",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/tsconfig": "^0.7.0",
"autoprefixer": "^10.4.20",
"tailwindcss": "^4.0.7",
"typescript": "~5.7.2",
"vite": "^6.1.0",
"vue-tsc": "^2.2.0"
}
What version of Node.js are you using?
v22.14.0
What browser are you using?
Chrome: Version 133.0.6943.99 (Official Build) (x86_64)
Brave: Version 1.75.178 Chromium: 133.0.6943.98 (Official Build) (x86_64)
Safari: Version 18.3 (20620.2.4.11.5)
Firefox: 135.0 (64-bit)
in all these browsers, the issue shows up the same way
What operating system are you using?
macOS Sequoia 15.3.1
Intel Core i9
Reproduction URL
https://play.tailwindcss.com/yTHsE1Wbew
Describe your issue
As you can see here in the preview pane, space-x-1 produces the proper white space between the items/blue circles:

As you can see here in the preview pane, space-x-1 does not produces the proper white space between the items/blue circles anymore in tailwind v4:

To be clear: I just switched from version v3.4.17 to v4.0.8 in the dropdown, did nothing else
Thank you, and Cheers
Beta Was this translation helpful? Give feedback.
All reactions