Skip to content

Commit

Permalink
add doc for important modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenyou committed May 27, 2024
1 parent daa42ef commit 26f006e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ npx degit nguyenyou/scalawind/examples/vite-app my-scalawind-app

## Modifiers

### Ordering stacked modifiers

```scala
tw.dark(tw.groupHover(tw.focus(tw.bg_black)))
```

will be:

```
"dark:group-hover:focus:bg-black"
```

This behavior is the same as tailwindcss [ordering stacked modifiers](https://tailwindcss.com/docs/hover-focus-and-other-states#ordering-stacked-modifiers) behavior


### important

To specify a class to be important, you can wrap it inside the `tw.important()` or `tw.i()` modifier.
Expand Down

0 comments on commit 26f006e

Please sign in to comment.