Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/app/demos/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,21 @@
color 0.2s ease;
}

/* In dark mode, the inverted surface tokens become light. Keep the editor on
the standard dark canvas and use the theme's neutral and interaction tokens. */
:where([data-theme="dark"]) .app {
--page-bg: #000;
--border-strong: var(--openui-border-interactive-emphasis);
--input-border: var(--border-strong);
--code-bg: var(--openui-background);
--code-text: var(--openui-text-neutral-primary);
--code-text-secondary: var(--openui-text-neutral-secondary);
--code-text-tertiary: var(--openui-text-neutral-tertiary);
--code-hover: var(--openui-highlight);
--code-hover-strong: var(--openui-highlight-strong);
--code-border: var(--openui-border-default);
}

.app-body {
display: flex;
flex: 1;
Expand Down
1 change: 1 addition & 0 deletions docs/app/demos/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default function DemosPage() {
<div className="prompt-actions">
<select
className="model-select"
aria-label="Model"
value={model}
onChange={(e) => setModel(e.target.value as Model)}
disabled={isDisabled}
Expand Down
Loading