{"repo":"heroui-inc/tailwind-variants","free":true,"listed":false,"github":"https://github.com/heroui-inc/tailwind-variants","clone":"git clone https://github.com/heroui-inc/tailwind-variants.git","description":"🦄 Tailwindcss first-class variant API","language":"TypeScript","stars":3290,"topics":["classnames","css","tailwindcss","variants"],"license":"MIT","category":"ui-components","readme_excerpt":"tailwind-variants The power of Tailwind combined with a first-class variant API. Features - First-class variant API - Slots support - Composition support - Fully typed - Framework agnostic - Built-in conflict resolution - Tailwind CSS v4 support Installation Lite mode: import from tailwind-variants/lite for a smaller bundle without conflict resolution. Upgrading? - v2 → v3: migration guide - v1 → v2: migration guide Quick Start Note: Tailwind CSS v4 no longer supports config.content.transform , so responsive variants were removed. Add responsive classes to your class names manually if needed. Conflict Resolution Conflict resolution is built into the default entry — no extra package is required. It is available on tv , createTV , cn , and cnMerge ( cx and /lite do not merge). Custom configuration Pass twMergeConfig to teach the resolver about custom utilities. Prefer { extend, override } — extend appends to the defaults, override replaces them: Disable merging with { twMerge: false } on tv , createTV , or cnMerge . Reusing a tailwind-merge config If you already configure extendTailwindMerge , reuse the same config object as twMergeConfig (pass the object — not the returned merge function): For createTailwindMerge , move the custom parts of the factory into { extend, override } and pass that object. Merge functions and full default configs cannot be passed directly. Utility Functions Function Behavior --------- ---------------------------------------------------- cx Concatenate","default_branch":null,"files":null,"tree":[],"storefront":"/r/heroui-inc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/heroui-inc/tailwind-variants/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}