Files
cunningham/packages/react/.storybook/preview-head.html
Nathan Vasse b94abbd6b3 (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.
2023-10-04 15:18:00 +02:00

29 lines
782 B
HTML

<style>
code {
margin: 0 2px;
padding: 3px 5px;
white-space: nowrap;
border-radius: 3px;
border: 1px solid #EEEEEE;
color: rgba(51,51,51,0.9);
background-color: #F8F8F8;
}
/* Prevent the index.scss font-family to override code blocks's one. */
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>