Skip to content

Instantly share code, notes, and snippets.

@simonminton
Created October 20, 2020 08:13
Show Gist options
  • Save simonminton/b0c91d7a5ca76fdbc976b55a277ef3de to your computer and use it in GitHub Desktop.
Save simonminton/b0c91d7a5ca76fdbc976b55a277ef3de to your computer and use it in GitHub Desktop.
Add an indicator for current breakpoint in TailwindCSS. Place directly after the <body> tag.
<div class="fixed top-0 left-0 w-8 h-8 bg-red-700 text-white flex justify-center items-center" style="z-index: 99999999">
<div class="flex sm:hidden">XS</div>
<div class="hidden sm:flex md:hidden">SM</div>
<div class="hidden md:flex lg:hidden">MD</div>
<div class="hidden lg:flex xl:hidden">LG</div>
<div class="hidden xl:flex">XL</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment