vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
50 lines (49 loc) • 1.32 kB
text/typescript
export default /*tw*/ {
header: {
variants: {
variant: {
default: "text-{color}",
lifted: "text-{color}-lifted",
accented: "text-{color}-accented",
muted: "text-{color}/(--vl-disabled-opacity)",
inverted: "text-{color} brightness-125 dark:brightness-75",
},
color: {
inherit: "text-inherit",
},
size: {
xs: "text-lg",
sm: "text-xl",
md: "text-2xl",
lg: "text-3xl",
xl: "text-4xl",
"2xl": "text-5xl",
},
weight: {
light: "font-light",
normal: "font-normal",
medium: "font-medium",
semibold: "font-semibold",
bold: "font-bold",
},
line: {
true: "leading-none!",
},
},
compoundVariants: [
{ color: "text", variant: "default", class: "text-default" },
{ color: "text", variant: "lifted", class: "text-lifted" },
{ color: "text", variant: "accented", class: "text-accented" },
{ color: "text", variant: "muted", class: "text-muted" },
{ color: "text", variant: "inverted", class: "text-inverted brightness-100 dark:brightness-100" },
],
},
defaults: {
color: "text",
variant: "default",
weight: "medium",
size: "md",
tag: "div",
line: true,
},
};