Skip to content

Update installation instructions for TailwindCSS V4 #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@ A plugin for Tailwind CSS v3.2+ that provides utilities for container queries.

Install the plugin from npm:

```sh
npm install -D @tailwindcss/container-queries
Install the plugin from npm:

```shell
npm install -D @tailwindcss/typography
```

Then add the plugin to your `tailwind.config.js` file:
Then add the plugin to your main `style.css` file:

```js
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('@tailwindcss/container-queries'),
// ...
],
}
```diff
@import "tailwindcss";
+ @plugin "@tailwindcss/typography";
```


## Usage

Start by marking an element as a container using the `@container` class, and then applying styles based on the size of that container using the container variants like `@md:`, `@lg:`, and `@xl:`:
Expand Down