From 88d9377adbcb74336a25748ae13d7baf7c7da4f1 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Fri, 6 Feb 2026 18:30:19 +0300 Subject: [PATCH] fix: add light theme support to connection page Add isLight-aware styling to all block renderers (cards, timeline, accordion, minimal), BlockButtons, and InstallationGuide. Update colorParser gradient functions to generate light-appropriate backgrounds. Reduce wave blob opacity on light theme for better content readability. --- .../connection/InstallationGuide.tsx | 21 ++++++++++++---- .../connection/blocks/AccordionBlock.tsx | 13 +++++++--- .../connection/blocks/BlockButtons.tsx | 12 ++++++--- .../connection/blocks/CardsBlock.tsx | 9 +++++-- .../connection/blocks/MinimalBlock.tsx | 12 +++++++-- .../connection/blocks/TimelineBlock.tsx | 7 ++++-- src/components/connection/blocks/types.ts | 1 + src/styles/globals.css | 4 +-- src/utils/colorParser.ts | 25 +++++++++++++++++-- 9 files changed, 83 insertions(+), 21 deletions(-) diff --git a/src/components/connection/InstallationGuide.tsx b/src/components/connection/InstallationGuide.tsx index 53965b9..a9905bc 100644 --- a/src/components/connection/InstallationGuide.tsx +++ b/src/components/connection/InstallationGuide.tsx @@ -8,6 +8,7 @@ import type { RemnawavePlatformData, RemnawaveButtonClient, } from '@/types'; +import { useTheme } from '@/hooks/useTheme'; import { CardsBlock, TimelineBlock, AccordionBlock, MinimalBlock, BlockButtons } from './blocks'; import type { BlockRendererProps } from './blocks'; @@ -51,6 +52,7 @@ export default function InstallationGuide({ onGoBack, }: Props) { const { t, i18n } = useTranslation(); + const { isLight } = useTheme(); const detectedPlatform = useMemo(() => detectPlatform(), []); const isMobile = typeof window !== 'undefined' && window.innerWidth < 768; @@ -127,6 +129,7 @@ export default function InstallationGuide({ {availablePlatforms.map((p) => (