Skip to content

Wrong colors when using data-theme=auto with system with dark theme preference #7978

@JanW-LWL

Description

@JanW-LWL

Hello.

If the user's system prefers a dark theme and the dark mode toggle is set to automatic in the CMS toolbar, then some colors are different than in dark mode.

Is there a reason for this or is it a bug?

[data-theme="dark"]

--dca-gray: #ccc; // $gray-light;

--dca-gray-darker: #ddd; //$gray;

vs

prefers-color-scheme: dark

--dca-gray: #999; // $gray-light;

--dca-gray-darker: #aaa; //$gray;

Additional informations:
django-cms==4.1.2

/cc @PeterW-LWL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions