From 51317b0d08184fcf96de7bee17777acdc23e69a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LAGACHE?= Date: Wed, 17 Jun 2026 10:24:10 +0200 Subject: [PATCH] style(onboarding): restyle theme toggles in preferences step to org-combobox card style Co-Authored-By: Claude Sonnet 4.6 --- .../onboarding/steps/step-preferences.tsx | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/src/features/onboarding/steps/step-preferences.tsx b/src/features/onboarding/steps/step-preferences.tsx index 501b53b9..9915a0c7 100644 --- a/src/features/onboarding/steps/step-preferences.tsx +++ b/src/features/onboarding/steps/step-preferences.tsx @@ -2,6 +2,7 @@ import { useState } from "react"; import { useOnboarding } from "@onboardjs/react"; +import { Check, Moon, Sun } from "lucide-react"; import { toast } from "sonner"; import { Button } from "@/components/ui/button"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; @@ -35,6 +36,11 @@ export const StepPreferences = () => { await next(); }; + const themeOptions: { value: "light" | "dark"; label: string; Icon: typeof Sun }[] = [ + { value: "light", label: "Light", Icon: Sun }, + { value: "dark", label: "Dark", Icon: Moon }, + ]; + return (
@@ -52,12 +58,31 @@ export const StepPreferences = () => {
- - + {themeOptions.map(({ value, label, Icon }) => { + const isActive = theme === value; + return ( + + ); + })}