Skip to content

Need specify the color-scheme for dark mode #1115

Closed
@LitoMore

Description

@LitoMore

Related PR: #1100

How to reproduce this issue

(Safari does not support this, you need to use Chrome or Firefox to reproduce this issue)

  1. Switch to dark mode
  2. Modify any img src to https://cdn.simpleicons.org/jsr/yellow/blue in your inspector
  3. The image color should be blue, but it's yellow on production

Description

The package readme may include a dynamic color scheme style in the image, like this project's readme: https://github.com/LitoMore/simple-icons-cdn.

This PR fixes a display behavior when the remote image has a prefers-color-scheme inside for dark mode.

Preview

Actual Expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions