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.
29 lines
782 B
HTML
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>
|