1 repositorio
Validator functions that check if a Tailwind class value matches a specific CSS type, such as number or arbitrary image.
Distinct from Allowed Value Validations: Distinct from Allowed Value Validations: validates against CSS-specific types (length, color, image) rather than arbitrary predefined constants.
Explore 1 awesome GitHub repository matching software engineering & architecture · CSS Class Value Validators. Refine with filters or upvote what's useful.
tailwind-merge is a utility library that resolves conflicting Tailwind CSS class strings when combining multiple sets of classes. It automatically detects and removes conflicting utility classes, keeping only the last class from each group that modifies the same CSS property, while preserving non-conflicting and non-Tailwind classes unchanged. The library handles complex conflict scenarios including modifier-order resolution, arbitrary value type detection, postfix modifier semantics, and asymmetric conflicts where one class group removes preceding classes from other groups but not vice versa
Provides validator functions to check if a class value matches a specific CSS type for correct conflict resolution.