Skip to content

Commit 95880fe

Browse files
fix: use copilotkit docs bg color for code editor on dark mode
1 parent 54fffc8 commit 95880fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

typescript-sdk/apps/dojo/src/app/globals.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
--anthropic: hsl(240 80% 60%); /* Bright blue */
187187
--cohere: hsl(0 80% 60%); /* Bright red */ --background: oklch(1 0 0); --foreground: oklch(0.145 0 0);
188188

189+
--cpk-docs-dark-bg: oklch(0.274 0.006 286.033);
189190
}
190191

191192
.dark {
@@ -269,6 +270,7 @@
269270
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
270271
--color-sidebar-border: var(--sidebar-border);
271272
--color-sidebar-ring: var(--sidebar-ring);
273+
--color-cpk-docs-dark-bg: var(--cpk-docs-dark-bg);
272274
}
273275

274276
@layer base {

typescript-sdk/apps/dojo/src/components/code-viewer/code-viewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function CodeViewer({ codeFiles }: { codeFiles: FeatureFile[] })
2121
onValueChange={setCodeFile}
2222
className="flex-1 flex flex-col"
2323
>
24-
<TabsList className="w-full justify-start h-auto flex-wrap p-1 gap-1 bg-white dark:bg-neutral-800 rounded-none">
24+
<TabsList className="w-full justify-start h-auto flex-wrap p-1 gap-1 bg-white dark:bg-cpk-docs-dark-bg rounded-none">
2525
{codeFiles.map((file) => (
2626
<TabsTrigger
2727
key={file.name}
@@ -50,7 +50,7 @@ export default function CodeViewer({ codeFiles }: { codeFiles: FeatureFile[] })
5050

5151
return (
5252
<div className="flex h-full">
53-
<div className="w-72 border-r border-gray-200 dark:border-neutral-700 flex flex-col bg-white dark:bg-neutral-800">
53+
<div className="w-72 border-r border-gray-200 dark:border-neutral-700 flex flex-col bg-white dark:bg-cpk-docs-dark-bg">
5454
<div className="flex-1 overflow-auto">
5555
<FileTree files={codeFiles} selectedFile={selectedFile} onFileSelect={setCodeFile} />
5656
</div>

0 commit comments

Comments
 (0)