Skip to content

Fix dark mode styling on first load if dark mode is system preference#2128

Merged
dscho merged 1 commit intogit:gh-pagesfrom
circl-lastname:gh-pages
Jan 30, 2026
Merged

Fix dark mode styling on first load if dark mode is system preference#2128
dscho merged 1 commit intogit:gh-pagesfrom
circl-lastname:gh-pages

Conversation

@circl-lastname
Copy link
Contributor

@circl-lastname circl-lastname commented Jan 28, 2026

Changes

  • Add missing CSS rules in front-page.scss and layout.scss for dark mode styling in situations as described below

Context

Previously, these three elements only checked for data-theme="dark", which is not set if the page is first loaded and dark mode is the system default.

Before

Screenshot_20260128_195213

After

Screenshot_20260128_195207

Previously, these three elements only checked for data-theme="dark",
which is not set if the page is first loaded and dark mode is the system
default.
Copy link
Member

@dscho dscho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, and thank you for fixing it! https://github.com/search?q=repo%3Agit%2Fgit-scm.com%20%3Aroot%5Bdata-theme%3D%22dark%22%5D&type=code confirms that this patch covers all of the affected instances.

@dscho dscho merged commit eab6894 into git:gh-pages Jan 30, 2026
1 check passed
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