purge-example.html 952 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!-- Basic HTML -->
  2. <html>
  3. <head>
  4. <title>My Page</title>
  5. </head>
  6. <body id="tailwind">
  7. <main>
  8. <div class="bg-red-500 md:bg-blue-300 w-1/2"></div>
  9. </main>
  10. </body>
  11. </html>
  12. <!-- Vue dynamic classes -->
  13. <span :class="{ block: enabled, 'md:flow-root': !enabled }"></span>
  14. <!-- JSX with template strings -->
  15. <script>
  16. function Component() {
  17. return <div class={`h-screen`}></div>
  18. }
  19. </script>
  20. <!-- Custom classes with really weird characters -->
  21. <div class="min-h-(screen-4) bg-black! font-%#$@ w-(1/2+8)"></div>
  22. <!-- Pug -->
  23. span.inline-grid.grid-cols-3(class="px-1.5")
  24. .col-span-2
  25. Hello
  26. .col-span-1.text-center
  27. World!
  28. <!-- Haml -->
  29. .flow-root
  30. .text-green-700.bg-green-100
  31. .text-left= content
  32. %samp.font-mono{:data-foo => "bar"}= output
  33. .col-span-4[aria-hidden=true]
  34. .tracking-tight#headline
  35. <!-- JSON -->
  36. {
  37. "helloThere": "Hello there, <span class=\"whitespace-nowrap\">Mr. Jones</span>"
  38. }