YARIG
📅 Nos prochains événements
Venez nous rencontrer !
Festi Bandas
How to pass a color to Filament A registered “color” in Filament is not just one shade. In fact, it is an entire color palette made of 11 shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, and 950. When you use a color in Filament, the framework will decide which shade to use based on the context. For example, it might use the 600 shade for a component’s background, 500 when it is hovered, and 400 for its border. If the user has dark mode enabled, it might use 700, 800, or 900 instead. On one hand, this means that you can specify a color in Filament without having to worry about the exact shade to use, or to specify a shade for each part of the component. Filament takes care of selecting a shade that should create an accessible contrast with other elements where possible. To customize the color that something is in Filament, you can use its name. For example, if you wanted to use the success color, you could pass it to a color method of a PHP component like so:
📃 Nos derniers articles
Découvrez notre actualité
🫶 Rejoignez nous
Saisissez vos coordonnées pour créer votre compte
✍️ Contact
Laissez nous un message, nous vous répondrons rapidement