johncastorina / tailwindcss-standalone

Standalone build of TailwindCSS that runs in browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:JavaScript 83.9%Language:HTML 16.1%