sbsev / site

Homepage of the German student-run non-profit initiative StudyTutors e.V.
https://studytutors.de
MIT License
15 stars 3 forks source link

Different logo depending on the color theme #95

Open dominikgeissler opened 1 year ago

dominikgeissler commented 1 year ago

Use different logos when dark / light mode is used (for logos without background)

dominikgeissler commented 1 year ago

I'm not quite sure how feasible this is. I'ld imagine a solution that works in Contentful similar to this

## Sponsors & Partners
<img src="path/to/light-img" class="light" />
<!-- ... -->
<img src="path/to/dark-img" class="dark" />

and based on the current theme selected the different logos can be rendered on the page. Do you think this is worth looking into?

I think it would be much simpler if the image has a white background in case its just a .svg or a black / dark-ish figure