Files
web/components/Icons/variants.ts
2024-10-08 11:42:06 +02:00

29 lines
716 B
TypeScript

import { cva } from "class-variance-authority"
import styles from "./icon.module.css"
const config = {
variants: {
color: {
baseIconLowContrast: styles.baseIconLowContrast,
black: styles.black,
burgundy: styles.burgundy,
grey80: styles.grey80,
pale: styles.pale,
peach80: styles.peach80,
primaryLightOnSurfaceAccent: styles.plosa,
red: styles.red,
green: styles.green,
white: styles.white,
uiTextHighContrast: styles.uiTextHighContrast,
uiTextMediumContrast: styles.uiTextMediumContrast,
blue: styles.blue,
},
},
defaultVariants: {
color: "black",
},
} as const
export const iconVariants = cva(styles.icon, config)