Files
web/components/TempDesignSystem/Text/Subtitle/variants.ts
2024-06-13 10:00:16 +02:00

28 lines
553 B
TypeScript

import { cva } from "class-variance-authority"
import styles from "./subtitle.module.css"
const config = {
variants: {
color: {
burgundy: styles.burgundy,
pale: styles.pale,
},
textAlign: {
center: styles.center,
left: styles.left,
},
textTransform: {
regular: styles.regular,
uppercase: styles.uppercase,
},
},
defaultVariants: {
color: "burgundy",
textAlign: "left",
textTransform: "regular",
},
} as const
export const subtitleVariants = cva(styles.subtitle, config)