Tricks

Compile new admin panel Tailwind CSS classes

Jun 1, 2022
Dan Harrin
Admin panel

When we build the admin panel CSS assets, Tailwind purges all utility classes we do not use.

You can add your own utility classes to the admin panel by compiling a custom theme. You can find out how to set to set up custom themes in our documentation.

In the content part of the tailwind.config.js file, you can add as many paths as you wish. Files in these paths will be scanned for new utility classes.

Finally, run npm run production to compile your admin panel theme with the new classes.

No comments yet…