Initial commit

This commit is contained in:
Nikolay Pecheniev
2026-02-05 11:12:38 +02:00
commit 4618b1f1ff
645 changed files with 77464 additions and 0 deletions

20
src/lib/utils.ts Normal file
View File

@@ -0,0 +1,20 @@
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
import type { CardStyleVariant } from "@/providers/themeProvider/config/types";
export function cn(...inputs: (string | undefined | null | false)[]) {
return inputs.filter(Boolean).join(" ");
}
export function cls(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// Check if text should use inverted color based on cardStyle
export function shouldUseInvertedText(useInvertedBackground: "noInvert" | "invertDefault" | undefined, cardStyle: CardStyleVariant): boolean {
if (!useInvertedBackground || useInvertedBackground === "noInvert") return false;
const lightCardStyles: CardStyleVariant[] = [];
return lightCardStyles.includes(cardStyle);
}