import type { ProjectIconColor } from "@t3tools/contracts"; import { projectIconColorClassName } from "../projectIconColors"; import { cn } from "~/lib/utils"; const monogramSegmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" }); export function ProjectMonogram({ text, color, className, }: { readonly text: string; readonly color: ProjectIconColor; readonly className?: string | undefined; }) { // Wrapped like the emoji and Lucide branches so the monogram sits where an // favicon would. Menu items, buttons and the like pull every bare svg // in with [&_svg]:-mx-0.5 to trim the padding stroke icons carry, and this // tile has no such padding. return ( ); }