Changing navigation color text.
How can I change the color of navigation item text to black?
7 Replies
Create a custom theme and customize the css
https://filamentphp.com/docs/3.x/panels/themes/#creating-a-custom-theme
So this is my custom theme
i've followed the step below
⇂ First, add a new item to the
input
array of vite.config.js
: resources/css/filament/admin/theme.css
⇂ Next, register the theme in the admin panel provider using ->viteTheme('resources/css/filament/admin/theme.css')
⇂ Finally, run npm run build
to compile the theme
But the custom class style is not applying.
what posibly am i missing?
here's my vite.config.js file
Did you add in the theme.css? Did you run
npm run dev
?yes did run npm run dev and I add the style in resources/css/filament/admin/theme.css
I also copied your style in that css file, while running npm run dev, and refresh the page, but the nav label still not colored black
@Leandro Ferreira
Check your DevTools. Does the class exists? Good your theme was compiled. Is it applied at the correct level?
yes the class is exist the last time i checked.
but I just realize I got some warning messages when running npm build..
some of them like
Could be the issue?
Might be an issue but if you say the compiled CSS file contains your class it shouldn't be the current issue