The Open Standard for Generative UI
Fix demos dark mode (#884)
Zahle Khanae6a3e28d318
diff --git a/docs/app/demos/layout.css b/docs/app/demos/layout.cssindex 21927ee20..81cea895e 100644--- a/docs/app/demos/layout.css+++ b/docs/app/demos/layout.css@@ -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;diff --git a/docs/app/demos/page.tsx b/docs/app/demos/page.tsxindex d1c3cb970..da43d4605 100644--- a/docs/app/demos/page.tsx+++ b/docs/app/demos/page.tsx@@ -159,6 +159,7 @@ export default function DemosPage() {<div className="prompt-actions"><selectclassName="model-select"+ aria-label="Model"value={model}onChange={(e) => setModel(e.target.value as Model)}disabled={isDisabled}