fix(SW-719): title font colors
This commit is contained in:
16
utils/cardFontColor.ts
Normal file
16
utils/cardFontColor.ts
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user