refactor: move logo mark into ui with sizes

This commit is contained in:
rajun 2026-10-27 16:28:52 +05:30
parent 9799ffdf14
commit 9f96a34930
2 changed files with 25 additions and 9 deletions

View File

@ -1,9 +0,0 @@
import { cn } from '~/lib/utils';
export function LogoMark({ className }: { className?: string }) {
return (
<div className={cn('flex items-center justify-center rounded-xl border border-neutral-800 bg-black', className)}>
<span className="select-none font-extrabold leading-none text-orange-500">t.</span>
</div>
);
}

View File

@ -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<typeof logoVariants> & { className?: string }) {
return (
<span aria-hidden='true' className={cn(logoVariants({ size, surface }), className)}>
t.
</span>
);
}