fix(SW-719): move functions to single file
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import { bodyVariants } from "@/components/TempDesignSystem/Text/Body/variants"
|
||||
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
export function getBodyFontColor(theme: CardProps["theme"]) {
|
||||
let color: VariantProps<typeof bodyVariants>["color"]
|
||||
|
||||
switch (theme) {
|
||||
case "one":
|
||||
return (color = "primaryLight")
|
||||
case "two":
|
||||
return (color = "secondaryLight")
|
||||
case "three":
|
||||
return (color = "tertiaryLight")
|
||||
case "primaryDark":
|
||||
return (color = "primaryDark")
|
||||
case "primaryDim":
|
||||
return (color = "primaryDim")
|
||||
case "primaryInverted":
|
||||
return (color = "primaryLight")
|
||||
case "primaryStrong":
|
||||
return (color = "primaryStrong")
|
||||
case "image":
|
||||
return (color = "baseText")
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
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 = "secondaryLightAccent")
|
||||
case "three":
|
||||
return (color = "tertiaryLightAccent")
|
||||
case "primaryDark":
|
||||
return (color = "pink")
|
||||
case "primaryDim":
|
||||
return (color = "primaryDimAccent")
|
||||
case "primaryInverted":
|
||||
return (color = "primaryLightOnSurfaceAccent")
|
||||
case "primaryStrong":
|
||||
return (color = "primaryStrongAccent")
|
||||
case "image":
|
||||
return (color = "baseText")
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
import type { ButtonProps } from "@/components/TempDesignSystem/Button/button"
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
|
||||
export function getTheme(theme: CardProps["theme"]): ButtonProps["theme"] {
|
||||
switch (theme) {
|
||||
case "two":
|
||||
return "secondaryLight"
|
||||
case "three":
|
||||
return "tertiaryLight"
|
||||
case "primaryDark":
|
||||
return "primaryDark"
|
||||
case "primaryStrong":
|
||||
case "image":
|
||||
return "primaryStrong"
|
||||
case "one":
|
||||
case "primaryDim":
|
||||
case "primaryInverted":
|
||||
default:
|
||||
return "primaryLight"
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
import { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import { headingVariants } from "@/components/TempDesignSystem/Text/Title/variants"
|
||||
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
export function getTitleFontColor(theme: CardProps["theme"]) {
|
||||
let color: VariantProps<typeof headingVariants>["color"]
|
||||
|
||||
switch (theme) {
|
||||
case "one":
|
||||
return (color = "primaryLight")
|
||||
case "two":
|
||||
return (color = "secondaryLight")
|
||||
case "three":
|
||||
return (color = "tertiaryLight")
|
||||
case "primaryDark":
|
||||
return (color = "primaryDark")
|
||||
case "primaryDim":
|
||||
return (color = "primaryDim")
|
||||
case "primaryInverted":
|
||||
return (color = "primaryLight")
|
||||
case "primaryStrong":
|
||||
return (color = "primaryStrong")
|
||||
case "image":
|
||||
return (color = "baseText")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user