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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/docs/version-updates-8b302c2185
DEFAULT BRANCH: v1
Ran 05 Apr 2026 10:10AM UTC
Jobs 2
Files 7
Run time 1min
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.626% (-0.07%) from 98.697%
23999346988

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

159 of 164 branches covered (96.95%)

Branch coverage included in aggregate %.

33 of 33 new or added lines in 1 file covered. (100.0%)

200 of 200 relevant lines covered (100.0%)

86.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 coverage-report-24.x - 23999346988.1 05 Apr 2026 10:10AM UTC 14
98.96
GitHub Action Run
2 coverage-report-22.x - 23999346988.2 05 Apr 2026 10:10AM UTC 14
98.96
GitHub Action Run
Source Files on build 23999346988
  • Tree
  • List 7
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23999346988
  • ca96ec8c on github
  • Prev Build on develop/1.0.0 (#23998134099)
  • Next Build on develop/1.0.0 (#24003388609)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc