Skip to content

Commit b65749c

Browse files
committed
readme wip
1 parent 4424186 commit b65749c

File tree

1 file changed

+21
-47
lines changed

1 file changed

+21
-47
lines changed

README.md

+21-47
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,26 @@
11
# Tailwind CSS IntelliSense
22

3-
> [Tailwind CSS](https://tailwindcss.com/) class name completion for VS Code
3+
## Installation
44

5-
**[Get it from the VS Code Marketplace →](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)**
6-
7-
<img src="https://raw.githubusercontent.com/bradlc/vscode-tailwindcss/master/img/html.gif" alt="HTML autocompletion" width="750">
8-
9-
## Requirements
10-
11-
This extension requires:
12-
- a `tailwind.config.js` file to be [present in your project folder](https://github.com/bradlc/vscode-tailwindcss/blob/master/package.json#L38). You can create it with `npx tailwind init`.
13-
- `tailwindcss` to be installed (present in project `node_modules/`)
5+
In order for the extension to activate you must have [`tailwindcss` installed](https://tailwindcss.com/docs/installation/#1-install-tailwind-via-npm) and a [Tailwind config file](https://tailwindcss.com/docs/installation/#3-create-your-tailwind-config-file-optional) named `tailwind.config.js` or `tailwind.js` in your workspace.
146

157
## Features
168

17-
Tailwind CSS IntelliSense uses your projects Tailwind installation and configuration to provide suggestions as you type.
18-
19-
It also includes features that improve the overall Tailwind experience, including improved syntax highlighting, and CSS previews.
20-
21-
### HTML (including Vue, JSX, PHP etc.)
22-
23-
- [Class name suggestions, including support for Emmet syntax](#class-name-suggestions-including-support-for-emmet-syntax)
24-
- Suggestions include color previews where applicable, for example for text and background colors
25-
- They also include a preview of the actual CSS for that class name
26-
- [CSS preview when hovering over class names](#css-preview-when-hovering-over-class-names)
27-
28-
### CSS
29-
30-
- [Suggestions when using `@apply` and config helpers](#suggestions-when-using-apply-and-config)
31-
- Suggestions when using the `@screen` directive
32-
- Suggestions when using the `@variants` directive
33-
- [Improves syntax highlighting when using `@apply` and config helpers](#improves-syntax-highlighting-when-using-apply-and-config-helpers)
34-
35-
## Examples
9+
- **Autocomplete**
10+
Intelligent suggestions for class names, [CSS directives](https://tailwindcss.com/docs/functions-and-directives/), and the [`theme` helper](https://tailwindcss.com/docs/functions-and-directives/#theme)
3611

37-
#### Class name suggestions, including support for Emmet syntax
12+
- **Hover Preview**
13+
See the complete CSS for a Tailwind class name by hovering over it
3814

39-
<img src="https://raw.githubusercontent.com/bradlc/vscode-tailwindcss/master/img/html.gif" alt="HTML autocompletion" width="750">
15+
- **Linting**
16+
Highlights errors and potential bugs in your HTML and CSS files
4017

41-
#### CSS preview when hovering over class names
18+
- **CSS Syntax Highlighting**
19+
Provides syntax definitions so that use of Tailwind features doesn’t mess up your syntax highlighting
4220

43-
<img src="https://raw.githubusercontent.com/bradlc/vscode-tailwindcss/master/img/html-hover.gif" alt="HTML hover preview" width="750">
21+
## Screenshots/Examples?
4422

45-
#### Suggestions when using `@apply` and config helpers
46-
47-
<img src="https://raw.githubusercontent.com/bradlc/vscode-tailwindcss/master/img/css.gif" alt="CSS autocompletion" width="750">
48-
49-
#### Improves syntax highlighting when using `@apply` and config helpers
50-
51-
Before:
52-
53-
<img src="https://raw.githubusercontent.com/bradlc/vscode-tailwindcss/master/img/css-highlighting-before.png" alt="CSS syntax highlighting before" width="400">
54-
55-
After:
56-
57-
<img src="https://raw.githubusercontent.com/bradlc/vscode-tailwindcss/master/img/css-highlighting-after.png" alt="CSS syntax highlighting after" width="400">
23+
## Troubleshooting
5824

5925
## Settings
6026

@@ -70,7 +36,7 @@ This setting allows you to add additional language support. The key of each entr
7036
}
7137
```
7238

73-
### `tailwindcss.emmetCompletions`
39+
### `tailwindCSS.emmetCompletions`
7440

7541
Enable completions when using [Emmet](https://emmet.io/)-style syntax, for example `div.bg-red-500.uppercase`. **Default: `false`**
7642

@@ -79,3 +45,11 @@ Enable completions when using [Emmet](https://emmet.io/)-style syntax, for examp
7945
"tailwindCSS.emmetCompletions": true
8046
}
8147
```
48+
49+
### `tailwindCSS.validate`
50+
51+
Enable linting. Rules can be configured individually using the `tailwindcss.lint` settings:
52+
53+
- `ignore`: disable lint rule entirely
54+
- `warning`: rule violations will be considered "warnings," typically represented by a yellow underline
55+
- `error`: rule violations will be considered "errors," typically represented by a red underline

0 commit comments

Comments
 (0)