Merged in chore/sw-3145-move-subtitle (pull request #2516)
chore(SW-3145): Move Title and Subtitle to design-system * Move Title and Subtitle to design-system * Fix export Approved-by: Linus Flood
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import type Body from "@scandic-hotels/design-system/Body"
|
||||
import type Title from "@scandic-hotels/design-system/Title"
|
||||
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 { headingVariants } from "@/components/TempDesignSystem/Text/Title/variants"
|
||||
|
||||
export function getTitleFontColor(
|
||||
theme: CardProps["theme"]
|
||||
): VariantProps<typeof headingVariants>["color"] {
|
||||
type TitleColor = ComponentProps<typeof Title>["color"]
|
||||
export function getTitleFontColor(theme: CardProps["theme"]): TitleColor {
|
||||
switch (theme) {
|
||||
case "one":
|
||||
return "primaryLight"
|
||||
|
||||
Reference in New Issue
Block a user