✨(react) add themes switching in Storybook
We want to be able to visualize easily themes directly inside Storybook. This was not a trivial task as there is no centralized logic to handle Doc / Stories / Manager at the same time.
This commit is contained in:
@@ -12,7 +12,17 @@
|
||||
pre * {
|
||||
font-family: ui-monospace,Menlo,Monaco,"Roboto Mono","Oxygen Mono","Ubuntu Monospace","Source Code Pro","Droid Sans Mono","Courier New",monospace;
|
||||
}
|
||||
|
||||
.cunningham-theme--dark {
|
||||
.docblock-source {
|
||||
background-color: var(--c--theme--colors--greyscale-100);
|
||||
}
|
||||
|
||||
.prismjs {
|
||||
background-color: var(--c--theme--colors--greyscale-100) !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.global = window;
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user