fix(SW-719): title font colors

This commit is contained in:
Fredrik Thorsson
2024-11-07 16:26:18 +01:00
parent 7d9b541616
commit 9ef2705f67
3 changed files with 21 additions and 5 deletions

16
utils/cardFontColor.ts Normal file
View File

@@ -0,0 +1,16 @@
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")
}
}