Allow to pass two colours to Icon
#1856
Closed
ematipico
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
Sharing a slightly different approach that I personally use for this case with CSS custom properties which can be passed down to the
|
Beta Was this translation helpful? Give feedback.
3 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.22.1
What is your idea?
Allow
Icon
to accept adarkColor
andlightColor
props.darkColor
is applied when dark mode is active, andlightColor
is applied when light mode is active.Why is this feature necessary?
At the moment
Icon
accepts acolor
attribute. However, when working with light and dark modes, a colour could fit one mode but not the other in terms of contract.Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions