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: bolt-tailwind/README.md
+9-23Lines changed: 9 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,8 @@
4
4
5
5
Integrate Tailwind CSS without JavaScript or npm.
6
6
7
-
Use [Tailwind CSS](https://tailwindcss.com/) with [Django](https://www.djangoproject.com/)*without* requiring JavaScript or npm.
8
-
9
-
Made possible by the [Tailwind standalone CLI](https://tailwindcss.com/blog/standalone-cli).
7
+
Made possible by the [Tailwind standalone CLI](https://tailwindcss.com/blog/standalone-cli),
8
+
which is installed for you.
10
9
11
10
```console
12
11
$ bolt tailwind
@@ -25,13 +24,7 @@ Commands:
25
24
26
25
## Installation
27
26
28
-
First, install `bolt-tailwind` from [PyPI](https://pypi.org/project/bolt-tailwind/):
29
-
30
-
```sh
31
-
pip install bolt-tailwind
32
-
```
33
-
34
-
Then add `bolt.tailwind` to your `INSTALLED_PACKAGES`:
27
+
Add `bolt.tailwind` to your `INSTALLED_PACKAGES`:
35
28
36
29
```python
37
30
# settings.py
@@ -74,19 +67,12 @@ You should add `.bolt` to your `.gitignore` file.
74
67
75
68
## Updating Tailwind
76
69
77
-
This package manages the Tailwind versioning by comparing `.bolt/tailwind.version` to the `FORGE_TAILWIND_VERSION` variable that is injected into your `tailwind.config.js` file.
78
-
79
-
```js
80
-
constFORGE_TAILWIND_VERSION="3.0.24"
70
+
This package manages the Tailwind versioning by comparing the value in your `pyproject.toml` to `.bolt/tailwind.version`.
81
71
82
-
module.exports= {
83
-
theme: {
84
-
extend: {},
85
-
},
86
-
plugins: [
87
-
require("@tailwindcss/forms"),
88
-
],
89
-
}
72
+
```toml
73
+
# pyproject.toml
74
+
[tool.bolt.tailwind]
75
+
version = "3.4.1"
90
76
```
91
77
92
78
When you run `tailwind compile`,
@@ -95,7 +81,7 @@ it will automatically check whether your local installation needs to be updated
95
81
You can use the `update` command to update your project to the latest version of Tailwind:
Copy file name to clipboardExpand all lines: bolt-tailwind/bolt/tailwind/README.md
+9-23Lines changed: 9 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,8 @@
2
2
3
3
Integrate Tailwind CSS without JavaScript or npm.
4
4
5
-
Use [Tailwind CSS](https://tailwindcss.com/) with [Django](https://www.djangoproject.com/)*without* requiring JavaScript or npm.
6
-
7
-
Made possible by the [Tailwind standalone CLI](https://tailwindcss.com/blog/standalone-cli).
5
+
Made possible by the [Tailwind standalone CLI](https://tailwindcss.com/blog/standalone-cli),
6
+
which is installed for you.
8
7
9
8
```console
10
9
$ bolt tailwind
@@ -23,13 +22,7 @@ Commands:
23
22
24
23
## Installation
25
24
26
-
First, install `bolt-tailwind` from [PyPI](https://pypi.org/project/bolt-tailwind/):
27
-
28
-
```sh
29
-
pip install bolt-tailwind
30
-
```
31
-
32
-
Then add `bolt.tailwind` to your `INSTALLED_PACKAGES`:
25
+
Add `bolt.tailwind` to your `INSTALLED_PACKAGES`:
33
26
34
27
```python
35
28
# settings.py
@@ -72,19 +65,12 @@ You should add `.bolt` to your `.gitignore` file.
72
65
73
66
## Updating Tailwind
74
67
75
-
This package manages the Tailwind versioning by comparing `.bolt/tailwind.version` to the `FORGE_TAILWIND_VERSION` variable that is injected into your `tailwind.config.js` file.
76
-
77
-
```js
78
-
constFORGE_TAILWIND_VERSION="3.0.24"
68
+
This package manages the Tailwind versioning by comparing the value in your `pyproject.toml` to `.bolt/tailwind.version`.
79
69
80
-
module.exports= {
81
-
theme: {
82
-
extend: {},
83
-
},
84
-
plugins: [
85
-
require("@tailwindcss/forms"),
86
-
],
87
-
}
70
+
```toml
71
+
# pyproject.toml
72
+
[tool.bolt.tailwind]
73
+
version = "3.4.1"
88
74
```
89
75
90
76
When you run `tailwind compile`,
@@ -93,7 +79,7 @@ it will automatically check whether your local installation needs to be updated
93
79
You can use the `update` command to update your project to the latest version of Tailwind:
0 commit comments