You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/tailwind-css.md
+25-2
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,9 @@ This guide assumes that you have a Gatsby project set up. If you need to set up
23
23
npm install tailwindcss --save-dev
24
24
```
25
25
26
-
2. Generate Tailwind config file
26
+
2. Generate Tailwind config file (optional)
27
+
28
+
**Note**: A config file isn't required for Tailwind 1.0.0+
27
29
28
30
To configure Tailwind, we'll need to add a Tailwind configuration file. Luckily, Tailwind has a built-in script to do this. Just run the following command:
29
31
@@ -67,8 +69,23 @@ These steps assume you have a CSS-in-JS library already installed, and the examp
67
69
68
70
1. Install Tailwind Babel Macro
69
71
72
+
**Note**: `tailwind.macro` isn't currently compatible with Tailwind 1.0.0+. However, a compatible beta is available at `tailwind.macro@next`. Feel free to either use the beta or revert to TailwindCSS 0.7.4.
73
+
74
+
**Option 1**: Install `tailwind.macro@next` and use Tailwind 1.0.0+
75
+
70
76
```shell
71
-
npm install --save tailwind.macro
77
+
npm install --save tailwind.macro@next
78
+
```
79
+
80
+
**Option 2**: Install stable `tailwind.macro` and use Tailwind 0.7.4
81
+
82
+
```bash
83
+
// Remove tailwind 1.0.0+ if you've already installed it
84
+
npm uninstall tailwindcss
85
+
86
+
// Install tailwind 0.7.4 and stable tailwind.macro
0 commit comments