It seems like this addon is not working nicely together with the latest version of Storybook. With an older version of Storybook it was enough to add the themes option to the exported parameters object in .storybook/preview.js but now you need to use addParameters function to add the config properly.
It seems like this addon is not working nicely together with the latest version of Storybook. With an older version of Storybook it was enough to add the
themes
option to the exportedparameters
object in.storybook/preview.js
but now you need to useaddParameters
function to add the config properly..storybook/preview.js
⬇️Before
After
⚠️ Make sure that you import
addParameters
function from the right package, in my case it was@storybook/web-components
.Thanks to @darekkay who pointed to that here ➡️ https://github.com/tonai/storybook-addon-themes/issues/56#issuecomment-1014886927 🎉
I have created this issue to make it easier for other people to find this one