tailwind-merge
tailwindcss-classnames
Our great sponsors
tailwind-merge | tailwindcss-classnames | |
---|---|---|
11 | 2 | |
4,013 | 691 | |
- | - | |
9.0 | 5.9 | |
8 days ago | 11 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tailwind-merge
-
Styling React 2023 edition
clsx is a tiny utility for constructing className strings conditionally, I use it in conjunction with tailwind-merge which merges Tailwind CSS classes without style conflicts.
- Tailwind vs. Semantic CSS
-
How to merge Tailwind class in Elixir Phoenix
I searched for a solution, and I found tailwind-merge which is written in JavaScript. Basically it finds conflicted classes and resolve the conflict. For example:
-
TailwindCSS & Template Literals
I would suggest you to use CVA and tailwind-merge.
-
Merge Tailwind CSS classes without style conflicts
Hey everyone! I built an open source library called tailwind-merge which helps with resolving style conflicts in CSS class strings. โ https://github.com/dcastil/tailwind-merge
-
Why can I not override class?
I used tailwind-merge and cva to build my UI component library Rewind-UI.
-
Is tailwind used in real world when working at companies?What do you use to style your website
I use Tailwind + Next.js on most of my projects. Usually I add the following to the mix: - RadixUI+ tailwindcss-radix or HeadlessUI although I like Radix more - classnames - https://tailwindcss.com/blog/automatic-class-sorting-with-prettier - tailwind-merge - CSS Modules
-
How can I override Vue's behavior for merging classes?
I'm using Tailwind CSS and I'd like to integrate a library called tailwind-merge into my Vue app. I'd like the plugin to replace Vue's class appending behavior so that all components in my app have their Tailwind utility classes merged to prevent style conflicts. It may not be everyone's preferred solution to such a problem, but I think it's a very valid use cases for this sort of thing.
- Show HN: tailwind-merge โ Merge Tailwind CSS classes without style conflicts
tailwindcss-classnames
-
Can any tell me why this is not working when i initially run the project.
There's also [tailwindcss-classnames](https://www.npmjs.com/package/tailwindcss-classnames) which is handy, despite the little bit of learning curve
-
How to Build A React TS Tailwind Design System
One last thing that can be helpful is using a library like [tailwind-classnames](https://github.com/muhammadsammy/tailwindcss-classnames) which helps validate you are using correct class names, and if you don't TS will yell at you. It has the full capability and API of the known [classnames](https://www.npmjs.com/package/classnames) library, as it is just an extension of it.
What are some alternatives?
classnames - A simple javascript utility for conditionally joining classNames together
twin.macro - ๐ฆนโโ๏ธ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
formik - Build forms in React, without the tears ๐ญ [Moved to: https://github.com/jaredpalmer/formik]
clsx - A tiny (239B) utility for constructing `className` strings conditionally.
identity-obj-proxy - An identity object using ES6 proxies. Useful for mocking webpack imports like CSS Modules.
tailwindcss-intellisense - Intelligent Tailwind CSS tooling for Visual Studio Code
headwind - An opinionated Tailwind CSS class sorter built for Visual Studio Code
react-cmdk - A fast, accessible, and pretty command palette for React
rewindui - A React component library for building modern web applications using Tailwind CSS.
cva - Class Variance Authority