Files
web/utils/cardFontColor.ts
2024-11-11 13:52:48 +01:00

17 lines
461 B
TypeScript

import { CardProps } from "@/components/TempDesignSystem/Card/card"
import { headingVariants } from "../components/TempDesignSystem/Text/Title/variants"
import type { VariantProps } from "class-variance-authority"
export function getFontColor(theme: CardProps["theme"]) {
let color: VariantProps<typeof headingVariants>["color"]
switch (theme) {
case "primaryDark":
return (color = "pale")
default:
return (color = "burgundy")
}
}