You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/expanding-powergrid/custom-theme.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,3 +211,24 @@ class DishTable extends PowerGridComponent
211
211
return \App\PowerGridThemes\BigFonts::class;
212
212
}
213
213
```
214
+
215
+
## Note for Tailwind CSS
216
+
217
+
When using Tailwind CSS you may need to add your custom theme file to your Tailwind configuration as a content in order to scan your file for classes during the build process. The following shows an example of how to do so when using the above `app\PowerGridThemes\BigFonts.php` file as an example.
218
+
219
+
1. Add the following file to your `tailwind.config.js` in the `content` key:
220
+
221
+
```js
222
+
module.exports= {
223
+
...
224
+
225
+
content: [
226
+
'...',
227
+
'./app/PowerGridThemes/BigFonts.php', // replace with path to your custom theme [!code ++]
228
+
],
229
+
230
+
...
231
+
}
232
+
```
233
+
234
+
2. Rebuild your assets using `npm run build` or `npm run dev`.
0 commit comments