Upgraded from v2 to 3, AdminPanelProvider's colors() method not working?

I've just upgraded from v2 to v3. Everything is working fine but the color palette does not seem to be working.
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login()
->colors([
'primary' => Color::Red,
])
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login()
->colors([
'primary' => Color::Red,
])
Previously I had color-coded badge columns. But now everything is mute. I have a tailwind.config.js file in my project's root folder
const colors = require('tailwindcss/colors')

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./resources/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
darkMode: 'class',
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}
const colors = require('tailwindcss/colors')

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./resources/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
darkMode: 'class',
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}
But I know that in v3 this file is not necessary as it is provided in vendor/filament/filament/tailwind.config.js Should I go ahead and delete my tailwind.config.js and postcss.config.js files?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server