Skip to content

Commit

Permalink
Added a note about prefixes (#19)
Browse files Browse the repository at this point in the history
* Added a note about prefixes

* Update README.md

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
  • Loading branch information
smebberson and adamwathan committed Jul 28, 2023
1 parent e53d76e commit c287ac7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -72,6 +72,19 @@ To stop an element from acting as a container, use the `@container-normal` class
<!-- ... -->
</div>

### With a prefix

If you have configured Tailwind to use a prefix, make sure to prefix both the `@container` class and any classes where you are using a container query modifier:

```html
<div class="tw-@container">
<!-- ... -->
<div class="@lg:tw-underline">
<!-- ... -->
</div>
</div>
```

## Configuration

By default we ship with the following configured values:
Expand Down

0 comments on commit c287ac7

Please sign in to comment.