Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ module.exports = {
}
```

if you are using tailwind v4+ then you can simply add the preset inside your global.css file

```css
@config "@medusajs/ui-preset";
```


In order for the styles to be applied correctly to the components, you will also need to ensure that
`@medusajs/ui` is included in the content field of your `tailwind.config.js` file:

Expand All @@ -47,6 +54,12 @@ module.exports = {
}
```

again if you are using the tailwind v4+ then you can simply add the content inside your global.css file

```css
@import "tailwindcss" source("../node_modules/@medusajs/ui/dist/**/*.{js,jsx,ts,tsx}");
```

If you are working within a monorepo, you may need to add the path to the `@medusajs/ui` package in your `tailwind.config.js` like so:

```tsx
Expand Down
Loading