feat: add shared tone surface styles
This commit is contained in:
parent
31806455b4
commit
8592c51e1a
17
app/components/ui/tone.ts
Normal file
17
app/components/ui/tone.ts
Normal 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';
|
||||
Loading…
x
Reference in New Issue
Block a user