Skip to content

Commit eb62e5b

Browse files
Add daisyUI
1 parent 6cf1d11 commit eb62e5b

1 file changed

Lines changed: 23 additions & 10 deletions

File tree

docs/get-started/powergrid-configuration.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@ To use Bootstrap 5, simply change the `theme` key in the `config/livewire-powerg
3939
|--------------------------------------------------------------------------
4040
*/
4141
42-
'theme' => \PowerComponents\LivewirePowerGrid\Themes\Tailwind::class, // [!code --]
43-
'theme' => \PowerComponents\LivewirePowerGrid\Themes\Bootstrap5::class, // [!code ++]
42+
'theme' => \PowerComponents\LivewirePowerGrid\Themes\Bootstrap5::class,
43+
'theme' => \PowerComponents\LivewirePowerGrid\Themes\Tailwind::class,
44+
45+
'theme' => \PowerComponents\LivewirePowerGrid\Themes\DaisyUI::class, // [!code ++]
4446
```
4547

4648
::: info 📝 NOTE
4749
Currently, the following features are exclusive to the Tailwind theme.
4850

4951
* [Responsive Table](/table-features/filters.html#filter-position)
5052
* [Filters outside](/table-features/filters.html#filter-position)
51-
:::
53+
:::
5254

5355
### 3. Theme
5456

@@ -93,19 +95,30 @@ Next, you must import the theme assets in the file `resources/js/app.js`.
9395
@import './../../vendor/power-components/livewire-powergrid/dist/tailwind.css'
9496
```
9597

96-
```css [Bootstrap 5+]
98+
```css [DaisyUI 5]
9799
/*resources/css/app.css*/
98100

101+
@import "tailwindcss";
102+
103+
@custom-variant dark (&:where([data-theme=night], [data-theme=night] *));
104+
105+
@source '../../app/Livewire/*Table.php';
106+
@source '../../app/Livewire/**/*Table.php';
107+
@source '../../vendor/power-components/livewire-powergrid/src/Themes/DaisyUI.php';
108+
@source '../../vendor/power-components/livewire-powergrid/resources/views/**/*.php';
109+
```
110+
111+
```css [Bootstrap 5+]
112+
/*resources/css/app.css*/
99113
@import './../../vendor/power-components/livewire-powergrid/dist/bootstrap5.css'
100114
```
101115

102116
:::
103117

104-
105118
#### 4. Tailwind v3 Configuration
106119

107120
::: tip
108-
If you are using Tailwind v3, you may configure the options below.
121+
If you are using Tailwind v3, you may configure the options below.
109122
:::
110123

111124
#### Dark Mode
@@ -139,9 +152,9 @@ module.exports = {
139152
```
140153

141154
::: tip 💡 TIP
142-
Read more about [Tailwind just-in-time](https://tailwindcss.com/docs/just-in-time-mode).
143-
If you are already using Tailwind version 3 or greater JIT is enabled by default. So you need to add these files to your `tailwind.config.js` because otherwise the styles won't apply correctly.
144-
[Read more here](https://tailwindcss.com/docs/upgrade-guide#migrating-to-the-jit-engine)
155+
Read more about [Tailwind just-in-time](https://tailwindcss.com/docs/just-in-time-mode).
156+
If you are already using Tailwind version 3 or greater JIT is enabled by default. So you need to add these files to your `tailwind.config.js` because otherwise the styles won't apply correctly.
157+
[Read more here](https://tailwindcss.com/docs/upgrade-guide#migrating-to-the-jit-engine)
145158
:::
146159

147160
#### Presets
@@ -173,7 +186,7 @@ module.exports = {
173186
```
174187

175188
::: tip 💡 TIP
176-
Read more about [Tailwind Presets](https://tailwindcss.com/docs/presets).
189+
Read more about [Tailwind Presets](https://tailwindcss.com/docs/presets).
177190
:::
178191

179192
### 5. Bootstrap Configuration

0 commit comments

Comments
 (0)