• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

palcarazm / bs-darkmode-toggle / 23999346988 / 1
98%
v1: 96%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/minor-and-patch-updates-e19298b37b
DEFAULT BRANCH: v1
Ran 05 Apr 2026 10:10AM UTC
Files 14
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Apr 2026 10:09AM UTC coverage: 98.962% (-0.2%) from 99.182%
23999346988.1

push

github

palcarazm
feat: respect system color scheme preference as initial state fallback

Implement automatic detection of user's operating system color scheme
preference using window.matchMedia('(prefers-color-scheme)') when no
saved cookie exists and allowCookie is enabled.

Priority order for initial state:
1. Cookie value (if allowCookie: true)
2. System preference (prefers-color-scheme)
3. Explicit state option
4. Default (light mode)

Added ColorModes enum for type-safe preference handling and split
applyPreferredScheme() into applyCookies() and applySystemPreference()
methods for better separation of concerns.

Implements #59

172 of 178 branches covered (96.63%)

Branch coverage included in aggregate %.

400 of 400 relevant lines covered (100.0%)

21.62 hits per line

Source Files on job coverage-report-24.x - 23999346988.1
  • Tree
  • List 14
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 23999346988
  • ca96ec8c on github
  • Prev Job for on develop/1.0.0 (#23998134099.2)
  • Next Job for on develop/1.0.0 (#24003388609.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc