/** * Alert style tokens. * * Kept in a separate module from the component so the file only exports * components — mixing the two breaks Vite's fast refresh. */ export type AlertColor = 'success' | 'info' | 'warning' | 'error' export type AlertVariant = 'default' | 'filled' | 'outlined' | 'gradient' export type AlertTheme = { bg: string text: string border: string lightBg: string } export const ALERT_COLORS: Record = { success: { bg: 'bg-green-600', text: 'text-green-700', border: 'border-green-600', lightBg: 'bg-green-100', }, info: { bg: 'bg-sky-600', text: 'text-sky-700', border: 'border-sky-600', lightBg: 'bg-sky-100', }, warning: { bg: 'bg-orange-500', text: 'text-orange-700', border: 'border-orange-500', lightBg: 'bg-orange-100', }, error: { bg: 'bg-red-600', text: 'text-red-700', border: 'border-red-600', lightBg: 'bg-red-100', }, } export const ALERT_GRADIENT = 'bg-gradient-to-r from-green-400 to-primary-500 text-white'