Skip to content

Better support for dark mode #1349

@developeregrem

Description

@developeregrem

Hi,
I'm using Materia theme currently and figured out that some css classes use fixed colours therefore, they do not change when setting data-bs-theme=dark
Examples are all alert-secondary, alert-primary and so on like

<div class="alert alert-success" role="alert">
...
</div>

Or another example are buttons like btn-primary or btn-secondary
They look identical even when switching to dark mode.

The colour codes are hard-codes e.g.

background: #4caf50 linear-gradient(180deg, #67bb6a, #4caf50) repeat-x;

There might be more examples, but I came across these specific ones in my project.

Is this an intended behaviour for the theme, or is there any plan to improve dark mode support here?

All the best
Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions