Skip to content
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

📄 Tailwind Migration Guide: Space Utilities #352

Closed
pjrundle opened this issue May 27, 2024 · 2 comments
Closed

📄 Tailwind Migration Guide: Space Utilities #352

pjrundle opened this issue May 27, 2024 · 2 comments

Comments

@pjrundle
Copy link

pjrundle commented May 27, 2024

What is the improvement or update you wish to see?

Many TW users will be using the space-x|y utils, for which there isn't a direct replacement.

Suggest to add a short section to cover this, mentioning that MCSS recommends using gap instead.

Reasons could be along the lines of:

  • Better selector performance than the universal selector +
  • Arguably more robust - margins on child elements can still be used without collisions, etc, etc
  • MCSS doesn't have a built in space-x|y util!

"If you really need to do the same thing, you can use the MCSS syntax mt:12x>*+*, ml:12px>*+* which is equivalent."

Does the docs page already exist? Please link to it.

https://rc.css.master.co/docs/migration/tailwindcss

@1aron 1aron closed this as completed in e4107f5 May 28, 2024
@1aron
Copy link
Member

1aron commented May 28, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants