vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
48 lines (47 loc) • 1.13 kB
text/typescript
export default /*tw*/ {
icon: {
base: "text-{color} fill-current shrink-0 grow-0 focus:outline-0",
variants: {
variant: {
light: "brightness-125",
default: "brightness-100",
dark: "brightness-75",
},
color: {
inherit: "text-inherit",
},
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",
},
interactive: {
true: "cursor-pointer hover:text-{color}-lifted active:text-{color}-accented",
},
disabled: {
true: "!text-{color}/(--vl-disabled-opacity) cursor-not-allowed",
},
},
},
defaults: {
color: "grayscale",
size: "md",
variant: "default",
disabled: false,
interactive: false,
/* icon library */
library: "@material-symbols",
path: "", // set for `custom-icons` library only.
style: "outlined",
weight: 500,
},
};