Merged in chore/sw-3145-move-preamble (pull request #2519)
chore(SW-3145): Move Preamble to design-system * Move Preamble to design-system Approved-by: Linus Flood
This commit is contained in:
24
packages/design-system/lib/components/Preamble/variants.ts
Normal file
24
packages/design-system/lib/components/Preamble/variants.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
|
||||
import styles from './preamble.module.css'
|
||||
|
||||
const config = {
|
||||
variants: {
|
||||
color: {
|
||||
black: styles.black,
|
||||
burgundy: styles.burgundy,
|
||||
pale: styles.pale,
|
||||
textMediumContrast: styles.textMediumContrast,
|
||||
baseText: styles.baseText,
|
||||
},
|
||||
textAlign: {
|
||||
center: styles.center,
|
||||
left: styles.left,
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
color: 'black',
|
||||
},
|
||||
} as const
|
||||
|
||||
export const preambleVariants = cva(styles.preamble, config)
|
||||
Reference in New Issue
Block a user