- Issue created by @murz
- 🇦🇲Armenia murz Yerevan, Armenia
I have found the
core/themes/claro/css/theme/colors.pcss.css
with some colors for text:/** * Reusable colors. */ .color-success { color: #325e1c; background-color: #f3faef; } .color-warning { color: #734c00; background-color: #fdf8ed; } .color-error { color: #a51b00; background-color: #fcf4f2; }
But they go with backgrounds, that is usually not suitable for texts!
So, maybe just extend this CSS and separate colors and backgrounds to different styles?
Thank you for raising this issue and for the detailed explanation! I agree that introducing reusable CSS classes for text colors in the Claro admin theme would greatly benefit module maintainers and improve consistency across the admin interface.
Here are a few suggestions to enhance the proposed solution:
Extend the existing core/themes/claro/css/theme/colors.css to separate colors meant specifically for text (e.g.,
.text-success
,.text-warning
, etc.). This would make it more intuitive for module developers to apply styles.
Consider providing utility classes for both text color and background color (e.g.,.bg-success
) so developers have flexibility depending on the use case.
Document the new classes in the Claro theme documentation. Including usage examples would encourage adoption.I can help test or contribute to this implementation. Let me know how I can assist further!