From 8592c51e1a849f4fc79255b35f078e534824d3a6 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:48 +0530 Subject: [PATCH] feat: add shared tone surface styles --- app/components/ui/tone.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/components/ui/tone.ts 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';