Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

792 B
Raw Blame
import { cn } from '@/lib/utils';

export const workspaceTileClass = (active: boolean) =>
  cn(
    'flex size-9 shrink-0 items-center justify-center rounded-lg text-sm font-semibold transition-colors duration-150 outline-none focus-visible:ring-2 focus-visible:ring-ring/60',
    active
      ? 'bg-secondary text-secondary-foreground ring-2 ring-foreground/80 ring-offset-2 ring-offset-sidebar'
      : 'bg-muted/60 text-muted-foreground hover:bg-accent hover:text-accent-foreground',
  );

export const workspaceInitial = (name: string) => [...name.trim()][0]?.toUpperCase();

export const workspaceTileStyle = (color: string | null) =>
  color ? { backgroundColor: color, color: '#fff' } : undefined;

export const workspaceRowClass = 'h-9 w-full justify-start gap-2.5 px-2 font-normal';