UNPKG

@eslamdevui/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

119 lines (118 loc) 2.76 kB
const color = [ "primary", "secondary", "success", "info", "warning", "error", "neutral" ] as const export default { "slots": { "base": [ "group relative block my-5 p-4 sm:p-6 border border-default rounded-md bg-default", "transition-colors" ], "icon": "size-6 mb-2 block", "title": "text-highlighted font-semibold", "description": "text-[15px] text-muted *:first:mt-0 *:last:mb-0 *:my-1", "externalIcon": [ "size-4 align-top absolute right-2 top-2 text-dimmed pointer-events-none", "transition-colors" ] }, "variants": { "color": { "primary": { "icon": "text-primary" }, "secondary": { "icon": "text-secondary" }, "success": { "icon": "text-success" }, "info": { "icon": "text-info" }, "warning": { "icon": "text-warning" }, "error": { "icon": "text-error" }, "neutral": { "icon": "text-highlighted" } }, "to": { "true": "" }, "title": { "true": { "description": "mt-1" } } }, "compoundVariants": [ { "color": "primary" as typeof color[number], "to": true, "class": { "base": "hover:bg-primary/10 hover:border-primary", "externalIcon": "group-hover:text-primary" } }, { "color": "secondary" as typeof color[number], "to": true, "class": { "base": "hover:bg-secondary/10 hover:border-secondary", "externalIcon": "group-hover:text-secondary" } }, { "color": "success" as typeof color[number], "to": true, "class": { "base": "hover:bg-success/10 hover:border-success", "externalIcon": "group-hover:text-success" } }, { "color": "info" as typeof color[number], "to": true, "class": { "base": "hover:bg-info/10 hover:border-info", "externalIcon": "group-hover:text-info" } }, { "color": "warning" as typeof color[number], "to": true, "class": { "base": "hover:bg-warning/10 hover:border-warning", "externalIcon": "group-hover:text-warning" } }, { "color": "error" as typeof color[number], "to": true, "class": { "base": "hover:bg-error/10 hover:border-error", "externalIcon": "group-hover:text-error" } }, { "color": "neutral" as typeof color[number], "to": true, "class": { "base": "hover:bg-elevated/50 hover:border-inverted", "externalIcon": "group-hover:text-highlighted" } } ], "defaultVariants": { "color": "primary" as typeof color[number] } }