Skip to content
Standalone build of TailwindCSS that runs in browser.
JavaScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
circle.yml
fs.js
index.html
index.js
loader.js
package.json
webpack.config.js
yarn.lock

README.md

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.

You can’t perform that action at this time.