Can you explain what you mean by
I've checked webdev tools, and the color is reloaded in the code
You mean in the injected css on the page you can see the new color? Classes exist on the page they should work. Can you give an example?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have new Laravel installation with Livewire. I've installed everything like I did in few previous projects with no problems. But I've noticed something odd when I try to add custom colors into Tailwind using extend. Whenever I change color be it text or background of an element that change is not reflected on the page. I've checked webdev tools, and the color is reloaded in the code but it is not showing on the screen. I've tried disabling the cache on browser whenever dev tools are open, with no change. Reloading the page manually also does nothing. Only 2 options are to stop npm run dev and run it again, or to just use npm run build. Only on that two occasions I can see the changes, and both of them negates the purpose of hot reload. Here is my vite.config.js and any help would be nice since I ran out of ideas (and I've tried dozen of them already from various articles and forum posts)
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import livewire from '@defstudio/vite-livewire-plugin'
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js'
],
refresh: true,
}),
livewire({
refresh: ['resources/css/app.css'],
}),
],
});
Please or to participate in this conversation.