Update preset in tailwind.config.js to V4

Sorry if this is not the right place, but wasn't sure where else to ask. In v3, tailwind.config.js had the Filament preset loaded
const preset = require('./vendor/filament/filament/tailwind.config.preset')

module.exports = {
presets: [preset],
...
}
const preset = require('./vendor/filament/filament/tailwind.config.preset')

module.exports = {
presets: [preset],
...
}
Since in v4 this doesn't exist anymore, can we just remove that part from the config?
Solution:
You don't need a config file anymore for Tailwind V4. It's configured inside the CSS file
Jump to solution
3 Replies
Solution
Dennis Koch
Dennis Koch3mo ago
You don't need a config file anymore for Tailwind V4. It's configured inside the CSS file
ChesterS
ChesterSOP3mo ago
Oh so I can get rid of this entirely? That's great, thanks. Is there a scenario where we actually need it?
Dennis Koch
Dennis Koch3mo ago
I don't think so.

Did you find this page helpful?