F
Filament13mo 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 Harrin13mo ago
I can't think of a single way to do this that we'd reccomend i can only think of downsides
btx
btx13mo ago
Isn't it possible to override the dashboard blade ?
Dan Harrin
Dan Harrin13mo ago
there is but we dont reccomend it you'd open yourself up to breaking changes
btx
btx13mo ago
I think this would be ok for now, unitl I find a different solution