Skip to content

Commit dd88f96

Browse files
fix: use neutral color instead of gray when in iframe
1 parent 3945029 commit dd88f96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ 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-gray-800 rounded-none">
24+
<TabsList className="w-full justify-start h-auto flex-wrap p-1 gap-1 bg-white dark:bg-neutral-800 rounded-none">
2525
{codeFiles.map((file) => (
2626
<TabsTrigger
2727
key={file.name}
2828
value={file.name}
29-
className="border-0 shadow-none text-gray-600 dark:text-gray-300 hover:bg-foreground/5 hover:text-gray-900 dark:hover:text-gray-100 data-[state=active]:bg-foreground/10 data-[state=active]:text-gray-900 dark:data-[state=active]:text-white"
29+
className="border-0 shadow-none text-gray-600 dark:text-neutral-300 hover:bg-foreground/5 hover:text-gray-900 dark:hover:text-neutral-100 data-[state=active]:bg-foreground/10 data-[state=active]:text-gray-900 dark:data-[state=active]:text-white"
3030
>
3131
{file.name.split("/").pop()}
3232
</TabsTrigger>
@@ -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-gray-700 flex flex-col bg-white dark:bg-gray-800">
53+
<div className="w-72 border-r border-gray-200 dark:border-neutral-700 flex flex-col bg-white dark:bg-neutral-800">
5454
<div className="flex-1 overflow-auto">
5555
<FileTree files={codeFiles} selectedFile={selectedFile} onFileSelect={setCodeFile} />
5656
</div>
@@ -61,7 +61,7 @@ export default function CodeViewer({ codeFiles }: { codeFiles: FeatureFile[] })
6161
<CodeEditor file={selectedFile} />
6262
</div>
6363
) : (
64-
<div className="flex items-center justify-center h-full text-muted-foreground dark:text-gray-300">
64+
<div className="flex items-center justify-center h-full text-muted-foreground dark:text-neutral-300">
6565
Select a file to view its content.
6666
</div>
6767
)}

0 commit comments

Comments
 (0)