From 9f96a349307418afa54ca66dd8da32d1f7a914e4 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:52 +0530 Subject: [PATCH] refactor: move logo mark into ui with sizes --- app/components/logo-mark.tsx | 9 --------- app/components/ui/logo-mark.tsx | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 9 deletions(-) delete mode 100644 app/components/logo-mark.tsx create mode 100644 app/components/ui/logo-mark.tsx diff --git a/app/components/logo-mark.tsx b/app/components/logo-mark.tsx deleted file mode 100644 index 1236eca..0000000 --- a/app/components/logo-mark.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import { cn } from '~/lib/utils'; - -export function LogoMark({ className }: { className?: string }) { - return ( -
- t. -
- ); -} diff --git a/app/components/ui/logo-mark.tsx b/app/components/ui/logo-mark.tsx new file mode 100644 index 0000000..88fb6e6 --- /dev/null +++ b/app/components/ui/logo-mark.tsx @@ -0,0 +1,25 @@ +import { cva, type VariantProps } from 'class-variance-authority'; +import { cn } from '~/lib/utils'; + +const logoVariants = cva('flex shrink-0 select-none items-center justify-center font-bold leading-none text-primary', { + variants: { + size: { + xs: 'h-7 w-7 rounded-item text-base', + sm: 'h-8 w-8 rounded-control text-md', + md: 'h-[34px] w-[34px] rounded-group text-md', + }, + surface: { + app: 'bg-surface-control ring-1 ring-inset ring-border-control', + viewer: 'bg-ink', + }, + }, + defaultVariants: { size: 'md', surface: 'app' }, +}); + +export function LogoMark({ size, surface, className }: VariantProps & { className?: string }) { + return ( + + ); +}