Files
web/packages/design-system/lib/components/OldDSLink/variants.ts
Erik Tiekstra b3c4761ae5 Merged in chore/BOOK-773-replace-old-typography-variables (pull request #3515)
Chore/BOOK-773 replace old typography variables

* chore(BOOK-773): Replaced body typography

* chore(BOOK-773): Replaced caption typography

* chore(BOOK-773): Replaced footnote typography

* chore(BOOK-773): Replaced subtitle typography


Approved-by: Bianca Widstam
2026-02-03 15:07:18 +00:00

43 lines
997 B
TypeScript

import { cva } from "class-variance-authority"
import styles from "./link.module.css"
export const linkVariants = cva(styles.link, {
variants: {
active: {
true: styles.active,
},
color: {
none: "",
peach50: styles.peach50,
white: styles.white,
red: styles.red,
"Text/Interactive/Default": styles["Text-Interactive-Default"],
"Text/Interactive/Secondary": styles["Text-Interactive-Secondary"],
},
size: {
small: styles.small,
large: styles.large,
none: "",
},
textDecoration: {
underline: styles.underline,
},
weight: {
bold: styles.bold,
},
variant: {
icon: styles.icon,
myPageMobileDropdown: styles.myPageMobileDropdown,
navigation: styles.navigation,
menu: styles.menu,
shortcut: styles.shortcut,
languageSwitcher: styles.languageSwitcher,
},
},
defaultVariants: {
color: "Text/Interactive/Default",
size: "large",
},
})