Skip to content

[material-ui][examples] Create a Storybook template #21111

Open
@sakulstra

Description

@sakulstra
  • I have searched the issues of this repository and believe that this is not a duplicate.

When working with material-ui you usually end up adjusting the typography, overwriting some global styles and so on to create your own "themed variant" of material-ui. Within material-ui some of these styles/overwrites affect another as e.g. Typography is part of more or less any other material-ui component. So adjusting typography might adjust tabs without you noticing. In our current workflow we have one relatively gigantic storybook showcasing all the components we have (including a re-export of basically all material-ui components).

I think it might be a good idea to create a "template" as part of material-ui to get new component libraries started more quickly & to share themed variants with no-code designers. The current "color selection theming" in the material-ui docs is relatively limited.

Summary 💡

It would be great if there was a "ready to go & up-to-date" storybook example within the examples folder to showcase all the components.

Examples 🌈

Sadly our storybook is closed source atm, but we might think about abstracting & open sourcing the material-ui part of it.

Motivation 🔦

Did this once manually, don't want to do it twice and I assume other companies have similar workflows.


Just when writing this:

The current "color selection theming" in the material-ui docs is relatively limited.

I started wondering if we couldn't just deploy a custom themed variant of the docs instead of doing things in storybook. Doing things in storybook would be nicer in terms of our testing setup, but the docs are much more in-detail as the ones we have in storybook 🤔
Is this sth people are doing?


OT: while writing that i was wondering if that actually is a feature request or would be better suited for discussions. I'd love if you enabled discussions, as e.g. in the styled-components tickets that's a pretty endless "discussion", but seems to not provide any value to the actual ticket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentationexamplesRelating to /examplespriority: importantThis change can make a differenceready to takeHelp wanted. Guidance available. There is a high chance the change will be accepted

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions