Repository navigation
Replies: 5 comments
|
This is a good idea. We're already doing this manually for the screenshot on emdashcms.com |
0 replies
|
this is great! the best would be if it came with a way to tick a checkbox to say "yes, and REQUIRE both light and dark images for each image slot" |
0 replies
|
Design PR #4891 proposes |
0 replies
|
Design PR #5057 proposes |
0 replies
|
Design PR #5058 proposes |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
As dark mode becomes a standard expectation for modern websites, managing media assets across themes is difficult. Currently, if an author uploads a featured image or an inline content image with a light background (or a transparent PNG optimized for light backgrounds), it looks jarring or becomes unreadable when a user switches the site to dark mode.
Describe the solution you'd like
We would love the ability to upload distinct image variants for light and dark modes within the CMS.
Ideally, this would include:
Describe alternatives you've considered
Right now, the workaround requires custom CSS/HTML injection or uploading two separate images and using custom code to toggle visibility based on media queries, which breaks the seamless experience for non-technical content creators.
Additional context
Prefer native integration (perhaps rendering as a
<picture>tag withprefers-color-schememedia queries or a data-theme attribute).All reactions