alouette
Version:
A modern, customizable design system built on top of NativeWind v5 with configurable defaults
21 lines (19 loc) • 717 B
text/typescript
import { tv } from "tailwind-variants";
// A bare label row (Radio, Checkbox) wears the `soft` material: no ground at
// rest, a surface tone on hover, focus and press. Its indicator takes the
// press alone, so the label never moves.
export const selectionRowVariants = tv({
slots: {
row: "group flex-row items-center gap-xs self-start rounded-xs px-xs min-h-11 focus-visible:outline-interactive-outlined-outline-focus",
label: "text-base",
},
variants: {
disabled: {
true: { label: "text-disabled-sharp" },
false: {
row: "hover:bg-interactive-soft-hover focus:bg-interactive-soft-focus active:bg-interactive-soft-active",
label: "text-sharp",
},
},
},
});