GitHub seems to set the prefers-color-scheme CSS property to dark when using the light default in Night theme. Using the example from github docs:
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/25423296/163456776-7f95b81a-f1ed-45f7-b7ab-8fa810d529fa.png">
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png">
<img alt="Shows an illustrated sun in light color mode and a moon with stars in dark color mode." src="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png">
</picture>
This renders as:

The expected output should have been:

Replication
This happens only when you use the following settings:
- System OS is in dark mode
- In github settings -> appearance: Theme mode:
Sync with system
- Light default is selected for the Night theme
Here is the configuration:

When this configuration is used, the github page sets prefers-color-scheme: dark even though the page is rendered in light mode.

GitHub seems to set the
prefers-color-schemeCSS property todarkwhen using the light default in Night theme. Using the example from github docs:This renders as:

The expected output should have been:

Replication
This happens only when you use the following settings:
Sync with systemHere is the configuration:

When this configuration is used, the github page sets

prefers-color-scheme: darkeven though the page is rendered in light mode.