© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
btx

Add CSS class to <html>

I implemented different themes using the
tw-colors
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">
<html class="classic-theme">
.
But I could not find any way to achieve this so far. I created
resources/views/layouts/app.blade.php
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>
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Add CSS class to action form
FilamentFFilament / ❓┊help
2y ago
How to add custom css class to Specifics resource
FilamentFFilament / ❓┊help
16mo ago
how to add css class to another component while afterstateupdated?
FilamentFFilament / ❓┊help
2y ago
How to add a CSS class to a v3 widget?
FilamentFFilament / ❓┊help
3y ago