Skip to content

Conversation

@makl11
Copy link

@makl11 makl11 commented Nov 7, 2025

I added an adaptive github theme that automatically switches between light and dark colors based on the users system preferences. It is basically a mashup of the github.css and github-dark.css themes made by [at]Hirse.

I also added .light and .dark utility classes to override the system color scheme.

The light-dark(...) function reached "Baseline: Newly available status" and works in all major Browsers.

Changes

  • add GitHub Adaptive (Light & Dark) theme
  • add support for checking a11y for themes with light-dark(...) colors to tools/checkTheme.js

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md

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.

1 participant