@eslamdevui/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
27 lines (26 loc) • 815 B
text/typescript
const color = [
"primary",
"secondary",
"success",
"info",
"warning",
"error",
"neutral"
] as const
export default {
"base": "px-1.5 py-0.5 text-sm font-mono font-medium rounded-md inline-block",
"variants": {
"color": {
"primary": "border border-primary/25 bg-primary/10 text-primary",
"secondary": "border border-secondary/25 bg-secondary/10 text-secondary",
"success": "border border-success/25 bg-success/10 text-success",
"info": "border border-info/25 bg-info/10 text-info",
"warning": "border border-warning/25 bg-warning/10 text-warning",
"error": "border border-error/25 bg-error/10 text-error",
"neutral": "border border-muted text-highlighted bg-muted"
}
},
"defaultVariants": {
"color": "neutral" as typeof color[number]
}
}