vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
47 lines (46 loc) • 1.13 kB
text/typescript
export default /*tw*/ {
icon: {
base: "fill-current shrink-0 grow-0 focus:outline-0",
variants: {
variant: {
light: "text-{color}-400 dark:text-{color}-200",
default: "text-{color}-600 dark:text-{color}-400",
dark: "text-{color}-800 dark:text-{color}-600",
},
color: {
white: "text-white",
black: "text-gray-900",
grayscale: "text-gray-900 dark:text-white",
inherit: "text-inherit",
},
interactive: {
true: "cursor-pointer",
},
size: {
"4xs": "size-2.5",
"3xs": "size-3",
"2xs": "size-3.5",
xs: "size-4",
sm: "size-5",
md: "size-6",
lg: "size-8",
xl: "size-10",
"2xl": "size-12",
"3xl": "size-14",
"4xl": "size-16",
"5xl": "size-20",
},
},
},
defaults: {
color: "grayscale",
size: "md",
variant: "default",
interactive: false,
/* icon library */
library: "@material-symbols",
path: "", // set for `custom-icons` library only.
style: "outlined",
weight: 500,
},
};