Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions website/docs/en/guide/basic/tailwindcss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Add an `@import` to your CSS entry file that imports Tailwind CSS.
@import 'tailwindcss';
```

:::tip
Tailwind CSS v4 cannot be used with CSS preprocessors like Sass, Less, or Stylus. You need to place the `@tailwind` directive at the beginning of your `.css` file, see [Tailwind CSS - Compatibility](https://tailwindcss.com/docs/compatibility#sass-less-and-stylus) for more details.
:::

## Done

You have now completed all the steps to integrate Tailwind CSS in Rsbuild!
Expand Down
4 changes: 4 additions & 0 deletions website/docs/zh/guide/basic/tailwindcss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export default {
@import 'tailwindcss';
```

:::tip
Tailwind CSS v4 不能与 Sass、Less 或 Stylus 等 CSS 预处理器一起使用,你需要将 `@tailwind` 指令放在 `.css` 文件的开头,详见 [Tailwind CSS - Compatibility](https://tailwindcss.com/docs/compatibility#sass-less-and-stylus)。
:::

## 完成

你已经完成了在 Rsbuild 中接入 Tailwind CSS 的全部步骤!
Expand Down
Loading