UNPKG

538 BMarkdownView Raw
1# tailwindcss-standalone
2
3> Standalone build of `tailwindcss` that runs in browser.
4
5## Usage
6
7```html
8<script src="https://unpkg.com/tailwindcss-standalone"></script>
9
10<script>
11 tailwindcss({
12 // optional tailwind config
13 })
14 .process(
15 `
16@tailwind base;
17@tailwind components;
18@tailwind utilities;
19
20body {
21 @apply bg-red-500;
22}
23`
24 )
25 .then(result => {
26 console.log(result.css);
27 });
28</script>
29```
30
31You can also use it with bundler:
32
33```js
34import tailwindcss from 'tailwindcss-standalone'
35```
36
37## License
38
39MIT.
\No newline at end of file