{"library":"tailwind-variant-v3","type":"library","category":null,"description":"The `tailwind-variant-v3` package is a runtime variant utility specifically designed for Tailwind CSS v3, offering a TypeScript-first approach for defining and managing UI component styles. It is part of the `weapp-tailwindcss` monorepo, which integrates Tailwind CSS into WeChat Mini Programs and similar environments. The current stable version is `0.2.1`. Key features include composable variants (supporting `base`, `slots`, `variants`, `compoundVariants`, `compoundSlots`), responsive variant definitions, and deep integration with `tailwind-merge` for robust class name collision resolution. It provides `cn` and `cnBase` utilities and allows for custom `twMergeConfig` and pluggable `twMergeAdapter` implementations for alternative merging libraries. Slot caching is also incorporated to optimize performance. Users must manually install `tailwind-merge@^2` as a peer dependency. For projects using Tailwind CSS v4, it is explicitly recommended to use a corresponding v4 runtime variant solution.","language":"javascript","status":"active","version":"0.2.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tailwind-variant-v3","imports":["import { tv } from 'tailwind-variant-v3'","import { cn } from 'tailwind-variant-v3'","import { create } from 'tailwind-variant-v3'","import type { TailwindMergeAdapter } from 'tailwind-variant-v3'"]},{"cmd":"yarn add tailwind-variant-v3","imports":[]},{"cmd":"pnpm add tailwind-variant-v3","imports":[]}],"homepage":null,"github":"https://github.com/sonofmagic/weapp-tailwindcss","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tailwind-variant-v3","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tailwind-variant-v3/compatibility"}}