tailwind-merge
headwind
Our great sponsors
tailwind-merge | headwind | |
---|---|---|
11 | 9 | |
4,013 | 1,362 | |
- | - | |
9.0 | 0.0 | |
8 days ago | 9 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
headwind
-
HyperUI Rewritten... What's Changed?
Added the tailwind-prettier-plugin as not everyone uses headwind
-
class order
Headwind is a nice addon for VS Code to sort classes automatically and warn you when using conflicting classes: https://github.com/heybourn/headwind
-
Cleaner CSS in your component templates with Tailwind and Headwind
The one I'm using is Headwind which defines itself as:
-
Tailwind CSS class sorter โ the custom way
Headwind is a nice opinionated sorter which probably can be tweaked to understand our Slim templates but as a VS Code plugin it only works inside this particular IDE. We mostly use JetBrains RubyMine in our team and also needed a CLI version.
-
How to keep Tailwind DRY
If you are worried about property sort order (Tailwind is much more readable if you are) then you can use another tool to deal with that for you: Headwind. This VS Code extension will format your Tailwind classes on save and group them by their function, making sure everything is where you expect it.
-
Automatically sorting your Tailwind CSS class names
Headwind - a VS Code extension that sorts your CSS classes on save
-
Why Tailwind? A long term user perspective
I can suggest taking a look at Tailwind CSS Best Practice Patterns and Robin Malfait's Good Example to get an idea of how that would look like. For consistency, I can also recommend having a convention for class ordering or using headwind as an opinionated class sorter.
-
TailwindCSS JIT with Arbitrary Values
There's Headwind CSS, which orders classes predictably. But it doesn't move them to separate lines. This could be a config option if you're willing to write a pull request.
https://github.com/heybourn/headwind
- How do you order class names in the markup?
What are some alternatives?
tailwindcss-classnames - Functional typed classnames for TailwindCSS
Tailwind CSS - A utility-first CSS framework for rapid UI development.
classnames - A simple javascript utility for conditionally joining classNames together
prettier-plugin-tailwindcss - A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order.
tailblocks - Ready-to-use Tailwind CSS blocks.
clsx - A tiny (239B) utility for constructing `className` strings conditionally.
rustywind - CLI for organizing Tailwind CSS classes
tailwindcss-intellisense - Intelligent Tailwind CSS tooling for Visual Studio Code
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.
rewindui - A React component library for building modern web applications using Tailwind CSS.
docker-django-example - A production ready example Django app that's using Docker and Docker Compose.