39 lines
862 B
TypeScript
39 lines
862 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./subtitle.module.css"
|
|
|
|
const config = {
|
|
variants: {
|
|
color: {
|
|
black: styles.black,
|
|
burgundy: styles.burgundy,
|
|
disabled: styles.disabled,
|
|
pale: styles.pale,
|
|
uiTextHighContrast: styles.uiTextHighContrast,
|
|
uiTextMediumContrast: styles.uiTextMediumContrast,
|
|
red: styles.red,
|
|
},
|
|
textAlign: {
|
|
center: styles.center,
|
|
left: styles.left,
|
|
},
|
|
textTransform: {
|
|
regular: styles.regular,
|
|
uppercase: styles.uppercase,
|
|
capitalize: styles.capitalize,
|
|
},
|
|
type: {
|
|
one: styles.one,
|
|
two: styles.two,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
color: "black",
|
|
textAlign: "left",
|
|
textTransform: "regular",
|
|
type: "one",
|
|
},
|
|
} as const
|
|
|
|
export const subtitleVariants = cva(styles.subtitle, config)
|