Skip to content

Conversation

vkunz
Copy link
Contributor

@vkunz vkunz commented Sep 25, 2025

hi,

adding dark mode support broke anchor/link colours.

Bootstrap --*-rgb style vars are not compatible with light-dark(), as they contain rgb tuples, and light-dark() requires css colours.

BR,
Valentin

Bootstrap uses --*-rgb style vars to construct colours via css functions,
like rgba().

The light-dark() css function only handles colours, it does not work with
rgb tuples as arguments.

Instead of using light-dark(), define all --*-rgb vars within media
queries.

Signed-off-by: Valentin Kunz <[email protected]>
@sebastianbergmann
Copy link
Owner

Merged manually, thanks. Please have a look at b129b36 to ensure that I did not break something while resolving the conflict.

@vkunz
Copy link
Contributor Author

vkunz commented Sep 26, 2025

LGTM, thank you.

@vkunz vkunz deleted the rgb-colours branch September 26, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants