Merged in chore/sw-3145-move-body (pull request #2505)
chore(SW-3145): Move Body component to design-system * Move Body component to design-system Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import type Body from "@scandic-hotels/design-system/Body"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
import type { ComponentProps } from "react"
|
||||
|
||||
import type { ButtonProps } from "@/components/TempDesignSystem/Button/button"
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import type { biroScriptVariants } from "@/components/TempDesignSystem/Text/BiroScript/variants"
|
||||
import type { bodyVariants } from "@/components/TempDesignSystem/Text/Body/variants"
|
||||
import type { headingVariants } from "@/components/TempDesignSystem/Text/Title/variants"
|
||||
|
||||
export function getTitleFontColor(
|
||||
@@ -52,9 +53,8 @@ export function getScriptFontColor(
|
||||
}
|
||||
}
|
||||
|
||||
export function getBodyFontColor(
|
||||
theme: CardProps["theme"]
|
||||
): VariantProps<typeof bodyVariants>["color"] {
|
||||
type BodyColor = ComponentProps<typeof Body>["color"]
|
||||
export function getBodyFontColor(theme: CardProps["theme"]): BodyColor {
|
||||
switch (theme) {
|
||||
case "one":
|
||||
return "primaryLight"
|
||||
|
||||
Reference in New Issue
Block a user