Skip to content
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

Improve TailwindCSS integration docs #730

Merged
merged 1 commit into from
Jan 27, 2025
Merged
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
18 changes: 16 additions & 2 deletions docs/building-your-application/integrations/tailwind-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@ Tailwind lets you use utility classes instead of writing CSS. These utility clas

## Installation

Run this command to integrate TailwindCSS in your Brisa project:
Follow these steps to set up **TailwindCSS** in your Brisa project:

### 1. Install TailwindCSS

Run the following command to add TailwindCSS to your project:

```sh
bunx brisa add tailwindcss
```

And you are ready to use TailwindCSS in your Brisa project.
### 2. Import TailwindCSS

After the installation, import TailwindCSS in your main CSS file:

```css
@import "tailwindcss";
```

Then, import this CSS file in `src/layout/index.tsx`.

And that's it! You're all set to use **TailwindCSS** in your Brisa project.

## Manual Installation

Expand Down
Loading