Skip to content

Standalone build of TailwindCSS that runs in browser.

License

Notifications You must be signed in to change notification settings

showdownspace/tailwindcss-standalone

 
 

Repository files navigation

tailwindcss-standalone

unpkg size jsdelivr

Standalone build of tailwindcss that runs in browser.

Usage

<script src="https://unpkg.com/tailwindcss-standalone"></script>

<script>
  tailwindcss({
    // optional tailwind config
  })
    .process(
      `
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  @apply bg-red-500;
}
`
    )
    .then(result => {
      console.log(result.css);
    });
</script>

Edit frosty-pike-uyhoj

You can also use it with bundler:

import tailwindcss from 'tailwindcss-standalone'

License

MIT.

About

Standalone build of TailwindCSS that runs in browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.3%
  • HTML 5.7%