Old colors for dark mode

I really like the new theme in light mode, but I don't like the new dark one. Is there an easy way to get the V2 dark theme back?
9 Replies
Patrick Boivin
Patrick Boivin16mo ago
Not sure there's an easy way but it feels like changing the background + primary color would get you pretty close to the old look. I'm curious, have you tried modifying your theme?
bernhard
bernhardOP16mo ago
Well actually I tried it by changing the grey color on the panel. The behavior is a bit unexpected. for example:
->colors([
'gray' => Color::Gray
])
->colors([
'gray' => Color::Gray
])
I am expecting, that this doesn't change the theme at all.. but it does 😮
bernhard
bernhardOP16mo ago
This is with this setting
bernhard
bernhardOP16mo ago
this is without it
bernhard
bernhardOP16mo ago
so filament's default theme isn't using its default colors?
Lara Zeus
Lara Zeus16mo ago
I think the default color for filament is gray so you can overwrite it with anything 'gray' => Color::hex('#ccdd33'), will give you:
Patrick Boivin
Patrick Boivin16mo ago
Wow, interesting. I'm not familiar enough yet to be able to explain it 😅
awcodes
awcodes16mo ago
Gray is gray, it’s what ever you define it as. Themes use css properties to handle all the colors. But they are still keyed. And the overall base color for the panel is whatever is defined as ‘gray’ Keep in mind in tailwind that there are different ‘grays’ but changing the color won’t change the shades that are used on the components. So if you wanted to make the background lighter for instance, you have to make a custom theme and target that element and change its background from gray-950 to gray-900 for example.
SoraKeyheart
SoraKeyheart16mo ago
Nice, I will try this. Because I created a custom css and used .fi hooks to change all possible classes.
Want results from more Discord servers?
Add your server