fix(SW-719): add colors for biroscript
This commit is contained in:
30
utils/cardScriptFontColor.ts
Normal file
30
utils/cardScriptFontColor.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
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")
|
||||
default:
|
||||
return "primaryLightOnSurfaceAccent"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user