vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
58 lines (57 loc) • 1.28 kB
text/typescript
export default /*tw*/ {
wrapper: {
base: "p-4 border-box flex flex-col border border-solid rounded-medium w-full",
variants: {
variant: {
solid: "text-inverted bg-{color} border-transparent",
outlined: "text-{color} border-{color}",
subtle: "text-{color} bg-{color}/10 border-{color}/15",
soft: "text-{color} bg-{color}/10 border-transparent",
},
size: {
xs: "text-tiny",
sm: "text-small",
md: "text-medium",
lg: "text-large",
},
},
},
body: "flex items-center justify-between",
contentWrapper: "flex gap-2 w-full",
content: "w-full",
title: "font-semibold leading-tight",
description: "mt-0.5",
text: "{UText}",
closeButton: "{UButton}",
icon: {
base: "{UIcon}",
variants: {
variant: {
solid: "text-inverted",
},
},
defaults: {
size: {
xs: "3xs",
sm: "2xs",
md: "xs",
lg: "sm",
},
},
},
closeIcon: "{>icon}",
alertIcon: "{>icon}",
/* These are used for a11y. */
i18n: {
closeAlert: "Close alert",
},
defaults: {
variant: "subtle",
color: "primary",
size: "md",
timeout: 0,
closable: false,
/* icons */
closeIcon: "close",
},
};