Created
March 27, 2025 06:56
-
-
Save geovannimp/e490cf9b81fff35c4561a5647eaa8a05 to your computer and use it in GitHub Desktop.
Tailwind V4 container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@utility container { | |
margin-inline: auto; | |
padding-inline: 1rem; | |
@variant sm { | |
max-width: 640px; | |
padding-inline: 2rem; | |
} | |
@variant md { | |
max-width: 768px; | |
padding-inline: 3rem; | |
} | |
@variant lg { | |
max-width: 1024px; | |
padding-inline: 4rem; | |
} | |
@variant xl { | |
max-width: 1280px; | |
padding-inline: 5rem; | |
} | |
@variant 2xl { | |
max-width: 1536px; | |
padding-inline: 6rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment