-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add overview to docs and link to it from every docs page
- Loading branch information
Showing
10 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div align="center"> | ||
<br /> | ||
<a href="https://github.com/dcastil/tailwind-merge"> | ||
<img src="../assets/logo.svg" alt="tailwind-merge" height="150px" /> | ||
</a> | ||
</div> | ||
|
||
# tailwind-merge | ||
|
||
Utility function to efficiently merge [Tailwind CSS](https://tailwindcss.com) classes in JS without style conflicts. | ||
|
||
```ts | ||
import { twMerge } from 'tailwind-merge' | ||
|
||
twMerge('px-2 py-1 bg-red hover:bg-dark-red', 'p-3 bg-[#B91C1C]') | ||
// → 'hover:bg-dark-red p-3 bg-[#B91C1C]' | ||
``` | ||
|
||
- Supports Tailwind v3.0 up to v3.3 (if you use Tailwind v2, use [tailwind-merge v0.9.0](https://github.com/dcastil/tailwind-merge/tree/v0.9.0)) | ||
- Works in all modern browsers and Node >=12 | ||
- Fully typed | ||
- [Check bundle size on Bundlephobia](https://bundlephobia.com/package/tailwind-merge) | ||
|
||
## Get started | ||
|
||
- [What is it for](./what-is-it-for.md) | ||
- [Features](./features.md) | ||
- [Configuration](./configuration.md) | ||
- [Recipes](./recipes.md) | ||
- [API reference](./api-reference.md) | ||
- [Writing plugins](./writing-plugins.md) | ||
- [Versioning](./versioning.md) | ||
- [Contributing](./contributing.md) | ||
- [Similar packages](./similar-packages.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ | |
--- | ||
|
||
Previous: [Contributing](./contributing.md) | ||
|
||
[Back to overview](./README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters