feat: add shared tone surface styles

This commit is contained in:
rajun 2026-10-27 16:28:48 +05:30
parent 31806455b4
commit 8592c51e1a

17
app/components/ui/tone.ts Normal file
View File

@ -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';