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 |
|
20 | body {
|
21 | @apply bg-red-500;
|
22 | }
|
23 | `
|
24 | )
|
25 | .then(result => {
|
26 | console.log(result.css);
|
27 | });
|
28 | </script>
|
29 | ```
|
30 |
|
31 | You can also use it with bundler:
|
32 |
|
33 | ```js
|
34 | import tailwindcss from 'tailwindcss-standalone'
|
35 | ```
|
36 |
|
37 | ## License
|
38 |
|
39 | MIT. |
\ | No newline at end of file |