Better support for dark mode
Author: developeregremCreated Jan 8, 2026Updated Jan 8, 2026
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. https://github.com/thomaspark/bootswatch/blob/149996ddaa93db10c6fc05145e3ab98872718c5b/dist/materia/bootstrap.css#L13114
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
Source: thomaspark/bootswatch