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
This is an extremley simple setup to develop Tailwind projects. This will be used in my Tailwind From Scratch course.
3
+
This is a simple Tailwind starter project using the Tailwind CLI. It is meant to be used as a starting point for your projects. This is the same setup used in my [Tailwind From Scratch Course](https://www.traversymedia.com/tailwind-css-course).
4
4
5
5
## Usage
6
6
7
-
Install dependencies
7
+
Clone the repo:
8
8
9
-
```
10
-
npm install
9
+
```bash
10
+
git clone
11
11
```
12
12
13
-
Run Tailwind CLI in watch mode
13
+
Install the dependencies:
14
14
15
-
```
16
-
npm run watch
15
+
```bash
16
+
npm install
17
17
```
18
18
19
-
You can use tailwind classes in any .html files in the root directory
19
+
Build or watch the CSS file:
20
20
21
-
Put any custom CSS that you may have in the **input.css** file
21
+
```bash
22
+
# Build once
23
+
npm run build
22
24
23
-
Add any config values to the **tailwind.config.js** file
25
+
# Watch for changes
26
+
npm run watch
27
+
```
24
28
25
-
To build once, run
29
+
This will watch the `src/input.css` file and build it to `css/style.css`, which will be your final CSS file.
26
30
27
-
```
28
-
npm run build
29
-
```
31
+
## License
30
32
31
-
You only need to deploy your html files and css/style.css
33
+
This project is open source and available under the [MIT License](LICENSE).
0 commit comments