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.
الميزات الرئيسية لـ dcastil/tailwind-merge هي: Arbitrary Value Class Mergers, Tailwind CSS Conflict Resolvers, Modifier Conflict Resolvers, Modifier-Order Conflict Resolvers, Tailwind Class, CSS Arbitrary Value Type Detectors, Class String Joiners, Shorthand Conflict Resolvers.
تشمل البدائل مفتوحة المصدر لـ dcastil/tailwind-merge: joe-bell/cva — cva is a TypeScript utility for defining and resolving visual variants for UI components with full type safety. It… jedwatson/classnames — classnames is a JavaScript utility for conditionally joining CSS class names into a single space-separated string. It… ben-rogerson/twin.macro — twin.macro is a build-time style compiler and utility-first styling tool that converts Tailwind CSS utility classes… styled-system/styled-system — Styled System is a JavaScript library that provides a style props approach for building UI components, enabling… geekyants/nativebase — NativeBase is a comprehensive toolkit of accessible components and responsive design frameworks used to build… chakra-ui/chakra-ui-vue — Chakra UI Vue is a component library for the Vue.js ecosystem that provides a collection of modular, accessible…
cva is a TypeScript utility for defining and resolving visual variants for UI components with full type safety. It generates CSS class strings from typed variant definitions, enabling compile-time validation of component usage by deriving the union of all variant prop types from a configuration object. The library distinguishes itself through compound variant matching, which activates styles only when multiple independent variant conditions are simultaneously satisfied, merging their class names. It also provides default value propagation to ensure consistent rendering when no explicit varian
classnames is a JavaScript utility for conditionally joining CSS class names into a single space-separated string. It functions as a class name manager that maps boolean flags and objects to specific styles for HTML attribute assignment. The tool resolves abstract class identifiers to computed values, facilitating integration with modular styling systems. It allows for the mapping of dynamic identifiers to scoped class names through a dedicated module resolver. The utility processes strings, arrays, and objects to handle dynamic class name management. It includes capabilities for recursive a
twin.macro is a build-time style compiler and utility-first styling tool that converts Tailwind CSS utility classes into optimized style objects for JavaScript styling libraries. It acts as an integration bridge, allowing developers to use Tailwind design tokens and utility classes within a component-based architecture. The project distinguishes itself by performing transformations during the compilation phase rather than at runtime. It maps utility strings to CSS-in-JS engines such as Emotion and Styled Components, resolving design tokens directly from a Tailwind configuration file to ensure
Styled System is a JavaScript library that provides a style props approach for building UI components, enabling developers to map CSS properties directly to component props for rapid, declarative development. At its core, it resolves design tokens from a centralized theme object into CSS values, ensuring consistent styling across components without writing custom stylesheets. The library supports theme-aware styling that connects component styles to a theme object for scalable, maintainable design systems with dynamic value resolution. The library differentiates itself through several capabil