(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:
Nathan Vasse
2023-09-26 11:40:40 +02:00
committed by NathanVss
parent 8b1dbd2f25
commit b94abbd6b3
7 changed files with 182 additions and 97 deletions

View File

@@ -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>