29 lines
867 B
TypeScript
29 lines
867 B
TypeScript
import { CardProps } from "@/components/TempDesignSystem/Card/card"
|
|
|
|
import { biroScriptVariants } from "../components/TempDesignSystem/Text/BiroScript/variants"
|
|
|
|
import type { VariantProps } from "class-variance-authority"
|
|
|
|
export function getScriptFontColor(theme: CardProps["theme"]) {
|
|
let color: VariantProps<typeof biroScriptVariants>["color"]
|
|
|
|
switch (theme) {
|
|
case "one":
|
|
return (color = "primaryLightOnSurfaceAccent")
|
|
case "two":
|
|
return (color = "secondaryLight")
|
|
case "three":
|
|
return (color = "tertiaryLight")
|
|
case "primaryDark":
|
|
return (color = "pink")
|
|
case "primaryDim":
|
|
return (color = "primaryDim")
|
|
case "primaryInverted":
|
|
return (color = "primaryLightOnSurfaceAccent")
|
|
case "primaryStrong":
|
|
return (color = "primaryStrong")
|
|
case "image":
|
|
return (color = "image")
|
|
}
|
|
}
|