nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 68 forks source link

feat: add `createTV` utility to create a `tv` function from a config #121

Closed mskelton closed 1 year ago

mskelton commented 1 year ago

Description

This adds a new createTV function that allows users to create a configured version of tv with tailwind-merge or other config. This is similar to using defaultConfig but supports multiple separate tv functions.

Additional context

Fixes https://github.com/nextui-org/tailwind-variants/issues/95 Fixes https://github.com/nextui-org/tailwind-variants/issues/18

Docs PR here: https://github.com/nextui-org/tailwind-variants-docs/pull/19


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following

jrgarciadev commented 1 year ago

🚀 🚀 🚀 🚀 🚀