hipstersmoothie / storybook-dark-mode

A storybook addon that lets your users toggle between dark and light mode.
MIT License
439 stars 56 forks source link

Null check window.matchMedia #222

Closed zyzo closed 1 year ago

zyzo commented 1 year ago

The motivation behind this is for storybook-dark-mode to work in a test environment (jest, vitest) without global config

hipstersmoothie commented 1 year ago

:rocket: PR was released in v2.1.1 :rocket: