dotkom / design-system

Component library, maybe
https://design.online.ntnu.no
MIT License
4 stars 4 forks source link

We need a way to display contrast components #105

Open plusk opened 4 years ago

plusk commented 4 years ago

With stuff like the more commonly used white version of the logo, we need a way to display it in storybooks in its natural state. It could be wise to implement some sort of storybook-specific internal components that we can use to display. In several components we've used stuff like display: inline-flex to show off components, we could just make some general container with a contrast mode (like a dark blue background).

plusk commented 4 years ago

I worked on this for a hot minute, but couldn't find a good way to do it. There are addons like "backgrounds" and theme switchers for the entire storybook, but I haven't found something for each individual story. We should probably just wait with theming and making contrast components until we find out something better here. I'm sure there's some styled-components CSS-variable kind of thing out there.