Open
Description
There are some uses cases that are too custom for tailwind-merge to handle but that would benefit from leveraging tailwind-merge's understanding of Tailwind CSS classes and conflicts between them.
Some example use cases:
- How to get the conflicting classes? #384
- expose a parseClassList function derived from the existing mergeClassList function #373
- Add config option to ignore variants/modifiers #440
tailwind-merge could expose a low-level API that makes it possible to use its internal logic for those use cases.
Some important aspects this feature must fulfill:
- Should not increase bundle size for the vast majority of tailwind-merge users that won't use this code
- Should be as powerful as possible to enable as many use cases as possible
- Should not increase package maintenance complexity too much