Set icon colors on Card components #1159
aschrijver
started this conversation in
Feature Requests
Replies: 1 comment
-
Something like this in the main package would be nice so we could do things like color a checkmark green.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.13.0
What is your idea?
When using
<Card>
user component and choosing an icon the color of the icon cannot be set. Would be great if the component can be extended so that color can be controlled, both for the icon itself and surrounding rectangle. Idk how to best take into account coloring for light and dark modes. If acolor
attribute (and maybeboxColor
or something) is not feasible, then the color might be made overridable, same as other components already support.Why is this feature necessary?
When customizing/branding starlight theme, specific consistent color palette should be used. The current cards introduce arbitrary colors that break brand consistency.
Do you have examples of this feature in other projects?
The astro
<Icon>
component has a color setting.Participation
Beta Was this translation helpful? Give feedback.
All reactions