This isn't a blocker for me, but I thought you might like to know that your installation/configuration instructions don't correspond with the files found in a fresh storybook installation, or in the current introductory docs.
I'm just starting using storybook, so I've been following the introductory docs on storybook.js.org; there, the section on Configuration describes files matching my shiny new storybook install, e.g. and in particular I have a main.js, and no config.js (apparently this is a relatively recent development?).
storybook-dark-mode's installation instructions, however, refer to addons.js and config.js.
I figured out that instead of addons.js, I can just add 'storybook-dark-mode' to the addons list in main.js, so I've got the addon working — excellent! (And thanks.)
However, I if I try to create a config.js as shown in the "Configuration" section, storybook won't start (it doesn't allow both main.js and config.js to coexist), and it's not clear to me at all how to modify the suggested configuration for use with main.js.
Again, this isn't a blocker for me, as I'm happy enough with a simple light/dark toggle, but I thought you might like to know about this potential confusion for new users.
This isn't a blocker for me, but I thought you might like to know that your installation/configuration instructions don't correspond with the files found in a fresh storybook installation, or in the current introductory docs.
I'm just starting using storybook, so I've been following the introductory docs on storybook.js.org; there, the section on Configuration describes files matching my shiny new storybook install, e.g. and in particular I have a
main.js
, and noconfig.js
(apparently this is a relatively recent development?).storybook-dark-mode's installation instructions, however, refer to
addons.js
andconfig.js
.I figured out that instead of
addons.js
, I can just add'storybook-dark-mode'
to theaddons
list inmain.js
, so I've got the addon working — excellent! (And thanks.)However, I if I try to create a
config.js
as shown in the "Configuration" section, storybook won't start (it doesn't allow bothmain.js
andconfig.js
to coexist), and it's not clear to me at all how to modify the suggested configuration for use withmain.js
.Again, this isn't a blocker for me, as I'm happy enough with a simple light/dark toggle, but I thought you might like to know about this potential confusion for new users.
Thanks again for a cool and useful addon.