Skip to content

Commit 11dfc75

Browse files
committed
feat(react): show the diagram of the current color scheme
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a7a3829 commit 11dfc75

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎packages/react/src/html/ui/index.css‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,18 @@ main {
204204
}
205205
}
206206
}
207+
208+
/* Graphviz diagrams; with colors for each color scheme, there is one per
209+
scheme, and the one of the current scheme shows */
210+
.diagram svg {
211+
display: block;
212+
max-width: 100%;
213+
height: auto;
214+
margin: 1rem auto;
215+
}
216+
217+
:where([data-theme='dark']) & .diagram-light,
218+
:where(:root:not([data-theme='dark'])) & .diagram-dark {
219+
display: none;
220+
}
207221
}

0 commit comments

Comments
 (0)