© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
15 replies
waleedGRT

TailwindCSS safelist is not working.

I've added a class
h-[60vh]
h-[60vh]
to the safelist in my custom theme, and I've also included the file path in the content section of the tailwind.config.js file. However, the class doesn't seem to be working as expected.

tailwind.config.js

export default {
    darkMode: "class",
    safelist: [
        'h-[60vh]',
      ],
    content: [
        "./app/Filament/**/*.php",
        "./app/Livewire/**/*.php",
        "./resources/views/**/*.blade.php",
        "./vendor/filament/**/*.blade.php",
    ],
};

export default {
    darkMode: "class",
    safelist: [
        'h-[60vh]',
      ],
    content: [
        "./app/Filament/**/*.php",
        "./app/Livewire/**/*.php",
        "./resources/views/**/*.blade.php",
        "./vendor/filament/**/*.blade.php",
    ],
};
error.png
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

TailwindCSS classes not generating nor getting scanned and even safelist is not working.
FilamentFFilament / ❓┊help
3y ago
Tailwindcss not working
FilamentFFilament / ❓┊help
3y ago
tailwindcss rounded-s-lg not working
FilamentFFilament / ❓┊help
2y ago
TailwindCSS
FilamentFFilament / ❓┊help
12mo ago