F
Filament2y ago
btx

Add CSS class to <html>

I implemented different themes using the tw-colors tailwind package. Now I have to render the configured class name from .env into the <html> tag, e.g. <html class="classic-theme">. But I could not find any way to achieve this so far. I created resources/views/layouts/app.blade.php but this file seems to be ignored for the admin panel. Edit: Or alternatively I can add
<html data-theme='classic'>
...
</html>
<html data-theme='classic'>
...
</html>
4 Replies
Dan Harrin
Dan Harrin2y ago
I can't think of a single way to do this that we'd reccomend i can only think of downsides
btx
btxOP2y ago
Isn't it possible to override the dashboard blade ?
Dan Harrin
Dan Harrin2y ago
there is but we dont reccomend it you'd open yourself up to breaking changes
btx
btxOP2y ago
I think this would be ok for now, unitl I find a different solution
Want results from more Discord servers?
Add your server