28 lines
553 B
TypeScript
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)
|