Describe your feature request
allow the user to declare a dark mode logo asset in addition to the light mode
Where did you see this?
elegantly dealing with viewing contrast polarity and vector images is a bit of a pain in the butt.
a solution is to bias towards single color and perhaps a halftone, and use the currentColor key inside the SVG for the fill/stroke color value; but that’s a bit of a tall ask for many.
an alternative option which i’ve employed in the past is allowing one to define two images; and altering which asset is used for the logo depending on the user’s current contrast polarity.
if no alternate logo is provided don’t bother switching the asset, or just declare the same asset for both cases, whichever path makes the most sense in the codebase
there are prolly other /better ways to do this as well.
Community interest
my belief is this would make it easier for site admins to present a visually appealing logo regardless of the users’ preferred contrast polarity
allow the user to declare a dark mode logo asset in addition to the light mode
Where did you see this?
elegantly dealing with viewing contrast polarity and vector images is a bit of a pain in the butt.
a solution is to bias towards single color and perhaps a halftone, and use the currentColor key inside the SVG for the fill/stroke color value; but that’s a bit of a tall ask for many.
an alternative option which i’ve employed in the past is allowing one to define two images; and altering which asset is used for the logo depending on the user’s current contrast polarity.
if no alternate logo is provided don’t bother switching the asset, or just declare the same asset for both cases, whichever path makes the most sense in the codebase
there are prolly other /better ways to do this as well.
Community interest
my belief is this would make it easier for site admins to present a visually appealing logo regardless of the users’ preferred contrast polarity