forked from rajun/ar-test
18 lines
633 B
TypeScript
18 lines
633 B
TypeScript
import { cva } from 'class-variance-authority';
|
|
|
|
// Tinted surface shared by badges, icon tiles and alerts
|
|
export const toneSurface = cva('border', {
|
|
variants: {
|
|
tone: {
|
|
neutral: 'border-border-subtle bg-surface-raised text-text-secondary',
|
|
primary: 'border-primary/20 bg-primary/10 text-primary',
|
|
danger: 'border-danger/20 bg-danger/10 text-danger',
|
|
// On light logo tiles
|
|
light: 'border-transparent bg-logo-badge text-text-muted',
|
|
},
|
|
},
|
|
defaultVariants: { tone: 'neutral' },
|
|
});
|
|
|
|
export type Tone = 'neutral' | 'primary' | 'danger' | 'light';
|