microsoft / microsoft/AdaptiveCards
[Feature Request] Allow a different image url for dark mode
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Problem Statement
Currently, there is no way to supply a different image for the dark mode. We can use a transparent image but the text becomes an issue.
Light mode

Dark mode

Proposed solution
Use the {theme} parameter in the image path and re-load the image automatically when the appearance changes.
Alternatives or Workarounds
We use a transparent background image with a text color of #777
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the image URL handling and the code that responds to appearance changes. Check how the proposed {theme} parameter could be resolved for light and dark modes, and how the image would be reloaded after a change. Done means cards can display separate light- and dark-mode image URLs without the transparent-image workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100