From 6e55ee460faba681b1d0a633084154cf96bf8c0d Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Fri, 19 Sep 2025 10:08:53 +0300 Subject: [PATCH] style(examples): fix text colors in light theme for v0-sdk-react-example --- examples/v0-sdk-react-example/app/page.tsx | 57 +++++++++++++------ .../components/code-block.tsx | 4 +- .../components/code-project-part.tsx | 16 +++--- .../components/math-part.tsx | 2 +- .../components/task-section.tsx | 31 +++++----- .../components/thinking-section.tsx | 12 ++-- 6 files changed, 70 insertions(+), 52 deletions(-) diff --git a/examples/v0-sdk-react-example/app/page.tsx b/examples/v0-sdk-react-example/app/page.tsx index ec125cc..9f54a0d 100644 --- a/examples/v0-sdk-react-example/app/page.tsx +++ b/examples/v0-sdk-react-example/app/page.tsx @@ -39,51 +39,72 @@ export default function Home() { CodeProjectPart, // HTML element styling using simple className objects - p: { className: 'mb-4 text-gray-100 leading-relaxed' }, - h1: { className: 'mb-4 text-2xl font-bold text-white' }, + p: { + className: + 'mb-4 text-gray-800 dark:text-gray-200 leading-relaxed', + }, + h1: { + className: + 'mb-4 text-2xl font-bold text-gray-900 dark:text-gray-100', + }, h2: { - className: 'mb-4 text-xl font-semibold text-white', + className: + 'mb-4 text-xl font-semibold text-gray-900 dark:text-gray-100', }, h3: { - className: 'mb-4 text-lg font-medium text-white', + className: + 'mb-4 text-lg font-medium text-gray-900 dark:text-gray-100', }, h4: { - className: 'mb-4 text-base font-medium text-white', + className: + 'mb-4 text-base font-medium text-gray-900 dark:text-gray-100', }, h5: { - className: 'mb-4 text-sm font-medium text-white', + className: + 'mb-4 text-sm font-medium text-gray-900 dark:text-gray-100', }, h6: { - className: 'mb-4 text-xs font-medium text-white', + className: + 'mb-4 text-xs font-medium text-gray-900 dark:text-gray-100', }, ul: { className: - 'mb-4 space-y-1 text-gray-100 list-disc list-inside', + 'mb-4 space-y-1 text-gray-800 dark:text-gray-200 list-disc list-inside', }, ol: { className: - 'mb-4 space-y-1 text-gray-100 list-decimal list-inside', + 'mb-4 space-y-1 text-gray-800 dark:text-gray-200 list-decimal list-inside', + }, + li: { + className: 'mb-1 text-gray-800 dark:text-gray-200', }, - li: { className: 'mb-1 text-gray-100' }, blockquote: { className: - 'mb-4 border-l-4 border-gray-600 pl-4 italic text-gray-300', + 'mb-4 border-l-4 border-gray-300 dark:border-gray-600 pl-4 italic text-gray-700 dark:text-gray-300', }, code: { className: - 'bg-[#2D2D2D] text-[#E5E5E5] px-1.5 py-0.5 rounded text-sm', + 'bg-gray-200 dark:bg-gray-800 text-gray-900 dark:text-gray-100 px-1.5 py-0.5 rounded text-sm', }, pre: { className: - 'mb-4 bg-[#1E1E1E] text-[#E5E5E5] p-4 rounded-lg overflow-x-auto', + 'mb-4 bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 p-4 rounded-lg overflow-x-auto', }, a: { className: - 'text-[#00D4FF] hover:text-[#00B8E6] underline', + 'text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline', + }, + strong: { + className: + 'font-semibold text-gray-900 dark:text-gray-100', + }, + em: { + className: 'italic text-gray-700 dark:text-gray-300', + }, + hr: { + className: + 'my-6 border-gray-300 dark:border-gray-600', }, - strong: { className: 'font-semibold text-white' }, - em: { className: 'italic text-gray-200' }, - hr: { className: 'my-6 border-gray-600' }, }} /> @@ -93,7 +114,7 @@ export default function Home() { ))} -