miru/src/lib/components/ui/badge/index.ts
ThaUnknown 5862e4d69b
feat: setup page
feat: proper extensions settings page
2025-05-22 16:05:19 +02:00

22 lines
1,013 B
TypeScript

import { type VariantProps, tv } from 'tailwind-variants'
export { default as Badge } from './badge.svelte'
export const badgeVariants = tv({
base: 'focus:ring-ring inline-flex select-none items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2',
variants: {
variant: {
default: 'bg-primary text-primary-foreground border-transparent shadow',
secondary: 'bg-secondary text-secondary-foreground border-transparent',
destructive: 'bg-destructive text-destructive-foreground border-transparent shadow',
outline: 'text-foreground',
success: 'bg-[#21b959] text-primary-foreground border-transparent shadow',
warning: 'bg-[#eab308] text-primary-foreground border-transparent shadow',
error: 'bg-[#bf2c2c] text-primary-foreground border-transparent shadow'
}
},
defaultVariants: {
variant: 'default'
}
})
export type Variant = VariantProps<typeof badgeVariants>['variant']