51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./body.module.css"
|
|
|
|
const config = {
|
|
variants: {
|
|
color: {
|
|
black: styles.black,
|
|
burgundy: styles.burgundy,
|
|
pale: styles.pale,
|
|
red: styles.red,
|
|
white: styles.white,
|
|
},
|
|
textAlign: {
|
|
center: styles.textAlignCenter,
|
|
left: styles.textAlignLeft,
|
|
},
|
|
textTransform: {
|
|
bold: styles.bold,
|
|
regular: styles.regular,
|
|
underlined: styles.underlined,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
color: "black",
|
|
textAlign: "left",
|
|
textTransform: "regular",
|
|
},
|
|
} as const
|
|
|
|
export const bodyVariants = cva(styles.body, config)
|
|
|
|
const fontOnlyconfig = {
|
|
variants: {
|
|
textAlign: {
|
|
center: styles.textAlignCenter,
|
|
left: styles.textAlignLeft,
|
|
},
|
|
textTransform: {
|
|
bold: styles.bold,
|
|
regular: styles.regular,
|
|
underlined: styles.underlined,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
textAlign: "left",
|
|
textTransform: "regular",
|
|
},
|
|
} as const
|
|
export const bodyFontOnlyVariants = cva(styles.bodyFontOnly, fontOnlyconfig)
|