forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CSS nesting syntax by default when using Tailwind (redwoodjs#1…
…0116) I don't think this plugin existed when we first created the Tailwind UI setup command, but it does now, and is super handy! This lets you use [nested CSS syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting) in your `index.css` right after you install Tailwind. Trying to nest without this plugin seems to work in development, but you'll get a warning message in the console each time you save your `.css` file. ```css .button { @apply flex items-center px-4 py-2; .icon { @apply w-4 h-4; } span { @apply text-sm; } } ```
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters