diff --git a/app/components/ui/tone.ts b/app/components/ui/tone.ts new file mode 100644 index 0000000..05c6112 --- /dev/null +++ b/app/components/ui/tone.ts @@ -0,0 +1,17 @@ +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';