Skip to content
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
24 changes: 9 additions & 15 deletions packages/daisyui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,16 @@ For dynamic theme switching, you can change the data-theme attribute in your app

## Tailwind Configuration

Make sure your `tailwind.config.js` includes the DaisyUI plugin:

```js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {},
},
plugins: [require('daisyui')],
daisyui: {
themes: true,
},
};
```
Make sure your `src/index.css` includes the DaisyUI plugin:

```css
@import 'tailwindcss';
@source "../node_modules/@rjsf/daisyui";
@plugin "daisyui" {
themes: all;
}
```
It's necessary to explicitely include the library as a source, as tailwindcss by [default](https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources) ignores everything in `.gitignore`
## Customization

### Grid Layout
Expand Down