From 448968119e40e5e619aa30e254c40b2aff18eb27 Mon Sep 17 00:00:00 2001 From: mawkone Date: Sun, 14 Jun 2026 13:03:04 -0700 Subject: [PATCH] fix(codebase): flip code viewer syntax highlighting to oneLight theme --- .../components/project/gitea-file-viewer.tsx | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/vibn-frontend/components/project/gitea-file-viewer.tsx b/vibn-frontend/components/project/gitea-file-viewer.tsx index 1bef09d7..ba95a2cc 100644 --- a/vibn-frontend/components/project/gitea-file-viewer.tsx +++ b/vibn-frontend/components/project/gitea-file-viewer.tsx @@ -3,7 +3,7 @@ import { useEffect, useState } from "react"; import { Loader2, AlertCircle, FileText, Copy, Check } from "lucide-react"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; -import { vscDarkPlus } from "react-syntax-highlighter/dist/esm/styles/prism"; +import { oneLight } from "react-syntax-highlighter/dist/esm/styles/prism"; import { THEME } from "@/components/project/dashboard-ui"; interface GiteaFileViewerProps { @@ -132,6 +132,11 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) { flexDirection: "column", minHeight: 0, position: "relative", + background: THEME.cardBg, + border: `1px solid ${THEME.border}`, + borderRadius: THEME.radiusSm, + boxShadow: THEME.shadow, + overflow: "hidden", }} >
{basename(path)} @@ -163,9 +167,10 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) { gap: 6, background: "transparent", border: "none", - color: copied ? "#10b981" : "#a1a1aa", + color: copied ? "#059669" : THEME.mid, fontSize: "0.75rem", cursor: "pointer", + fontWeight: 500, }} > {copied ? : } @@ -175,11 +180,11 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) {
@@ -228,7 +233,5 @@ const wrap: React.CSSProperties = { flex: 1, minHeight: 0, overflow: "auto", - background: "#1e1e1e", - borderBottomLeftRadius: THEME.radiusSm, - borderBottomRightRadius: THEME.radiusSm, + background: THEME.cardBg, };