Last active
September 13, 2024 06:21
-
-
Save sitefinitysteve/b4d437518cd795849d99577dc3e618d4 to your computer and use it in GitHub Desktop.
Tailwind responsive breakpoint viewer
This file contains 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
<!-- TAILWIND CSS RESPONSIVE SIZE --> | |
<span class="text-xs text-gray-200 tailwind-breaks"> | |
<span class="inline-block sm:hidden">XS</span> | |
<span class="hidden sm:inline-block md:hidden">SM</span> | |
<span class="hidden md:inline-block lg:hidden">MD</span> | |
<span class="hidden lg:inline-block xl:hidden">LG</span> | |
<span class="hidden xl:inline-block">XL</span> | |
</span> |
This file contains 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
<!-- BOOTSTRAP 4.6 VERSION --> | |
<li class="bootstrapsize"> | |
<span class="d-xs-block d-sm-none d-md-none d-lg-none d-xl-none">XS</span> | |
<span class="d-none d-sm-block d-md-none d-lg-none d-xl-none">SM</span> | |
<span class="d-none d-sm-none d-md-block d-lg-none d-xl-none">MD</span> | |
<span class="d-none d-sm-none d-md-none d-lg-block d-xl-none">LG</span> | |
<span class="d-none d-sm-none d-md-none d-lg-none d-xl-block">XL</span> | |
</li> |
I've built a free chrome extension Tailwind responsive breakpoint display if anyone is looking to not adding their own code.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version that it's shown floating and you can scroll and see the responsive size, also added 2XL breakpoint.
React version
If you're using html, just replace
className
byclass