kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
85 stars 23 forks source link

[Housekeeping] Update storybook config with chromatic modes #3595

Closed RasmusKjeldgaard closed 2 months ago

RasmusKjeldgaard commented 2 months ago

Describe the housekeeping request

We should add story modes config to storybook, and configure select stories with different viewport sizes, as a first use case for modes.

Have you considered any alternatives?

We could also add it globally to the two storybooks, so all stories are snapshotted in all modes. But I think it has diminishing returns, as a lot of components are not affected in any meaningful way by viewport size. If we later add light/dark theming etc, we can consider to add those specific modes as global config.

Are there any additional context?