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
{{ message }}
This repository was archived by the owner on May 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-5
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,29 @@
3
3
This is an adder for `svelte-add`; you should [read its `README`](https://github.com/svelte-add/svelte-add#readme) before continuing here.
4
4
5
5
## ➕ Adding Tailwind CSS
6
+
6
7
This adder's codename is `tailwindcss`, and can be used like so:
8
+
7
9
```sh
8
10
npx svelte-add tailwindcss
9
11
```
10
12
11
13
### 🏞 Supported environments
14
+
12
15
This adder supports SvelteKit and Vite-powered Svelte apps (all the environments `svelte-add` currently supports).
13
16
14
17
### ⚙️ Options
15
-
*`jit` (default `true`): whether or not to use [Tailwind Just-in-Time Mode](https://tailwindcss.com/docs/just-in-time-mode)
18
+
19
+
-`jit` (default `true`): whether or not to use [Tailwind Just-in-Time Mode](https://tailwindcss.com/docs/just-in-time-mode)
16
20
17
21
## 🛠 Using Tailwind CSS
22
+
18
23
After the adder runs,
19
-
* You can use Tailwind utility classes like `bg-blue-700` in the markup (components, routes, `app.html`).
20
24
21
-
* You can use [Tailwind directives like `@apply` and `@screen` or use the `theme` function](https://tailwindcss.com/docs/functions-and-directives) in Svelte `style lang="postcss"` blocks or the `src/app.postcss` file.
25
+
- You can use Tailwind utility classes like `bg-blue-700` in the markup (components, routes, `app.html`).
26
+
27
+
- You can use [Tailwind directives like `@apply` and `@screen` or use the `theme` function](https://tailwindcss.com/docs/functions-and-directives) in Svelte `style lang="postcss"` blocks or the `src/app.postcss` file.
22
28
23
-
* You can [configure Tailwind](https://tailwindcss.com/docs/configuration) in the `tailwind.config.cjs` file.
29
+
- You can [configure Tailwind](https://tailwindcss.com/docs/configuration) in the `tailwind.config.cjs` file.
24
30
25
-
* Your Tailwind CSS will be purged for production builds.
31
+
- Your Tailwind CSS will be purged for production builds.
description: "Do you want to use Tailwind Just-in-Time mode? https://tailwindcss.com/docs/just-in-time-mode\nIt is recommended, but you will see warning messages in the terminal (because it is in preview) and potentially run into unexpected issues, especially with @apply or nested selectors.",
7
-
default: true,
8
-
}
5
+
jit: {
6
+
description: "Do you want to use Tailwind Just-in-Time mode? https://tailwindcss.com/docs/just-in-time-mode\nIt is recommended, but you will see warning messages in the terminal (because it is in preview) and potentially run into unexpected issues, especially with @apply or nested selectors.",
0 commit comments