40 lines
855 B
TypeScript
40 lines
855 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./button.module.css"
|
|
|
|
export const buttonVariants = cva(styles.btn, {
|
|
variants: {
|
|
bgcolor: {
|
|
primary: styles.primary,
|
|
secondary: styles.secondary,
|
|
tertiary: styles.tertiary,
|
|
quarternary: styles.quarternary,
|
|
white: styles.white,
|
|
},
|
|
intent: {
|
|
primary: styles.primary,
|
|
secondary: styles.secondary,
|
|
},
|
|
size: {
|
|
small: styles.small,
|
|
regular: styles.average,
|
|
},
|
|
variant: {
|
|
default: styles.default,
|
|
icon: styles.icon,
|
|
},
|
|
weight: {
|
|
light: styles.light,
|
|
regular: styles.regular,
|
|
medium: styles.medium,
|
|
semiBold: styles.semiBold,
|
|
bold: styles.bold,
|
|
black: styles.black,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
variant: "default",
|
|
weight: "regular",
|
|
},
|
|
})
|