Skip to content

Commit

Permalink
docs: added tailwind vscode extension config
Browse files Browse the repository at this point in the history
  • Loading branch information
TommasoAmici committed Jul 18, 2023
1 parent 3cb51b8 commit 5ed974e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,19 @@ const Button = tw("button")`${styles.button} text-lg`

See the [examples](./examples/) directory for more.

### Compatibility with VSCode TailwindCSS extension

To get the best experience with the [TailwindCSS Intellisense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)
extension for VSCode, you can add the following to your `settings.json`:

```json
{
"tailwindCSS.experimental.classRegex": [
"tw\\(.*?\\)`([^`]*)" // tw(Component)`...`
]
}
```

## How it works

The `tw` function is a tagged template literal that takes a string of Tailwind
Expand Down

0 comments on commit 5ed974e

Please sign in to comment.