You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 511d68a
Browse filesBrowse the repository at this point in the historyBrowse files
- Supports Tailwind v4.0 up to v4.3 (if you use Tailwind v3, use [tailwind-merge v2.6.0](https://github.com/dcastil/tailwind-merge/tree/v2.6.0))
24
24
- Works in all modern browsers and maintained Node versions
25
-
- Fully typed
25
+
- Fully typed, with published declarations compatible with TypeScript 3.8 and newer
26
26
-[Check bundle size on Bundlephobia](https://bundlephobia.com/package/tailwind-merge)
27
27
28
28
## Get started
29
29
30
-
-[What is it for](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/what-is-it-for.md)
31
-
-[When and how to use it](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/when-and-how-to-use-it.md)
-[What is it for](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/what-is-it-for.md)
31
+
-[When and how to use it](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/when-and-how-to-use-it.md)
- Supports Tailwind v4.0 up to v4.3 (if you use Tailwind v3, use [tailwind-merge v2.6.0](https://github.com/dcastil/tailwind-merge/tree/v2.6.0))
22
22
- Works in all modern browsers and maintained Node versions
23
-
- Fully typed
23
+
- Fully typed, with published declarations compatible with TypeScript 3.8 and newer
24
24
-[Check bundle size on Bundlephobia](https://bundlephobia.com/package/tailwind-merge)
25
25
26
26
## Get started
27
27
28
-
-[What is it for](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/what-is-it-for.md)
29
-
-[When and how to use it](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/when-and-how-to-use-it.md)
-[What is it for](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/what-is-it-for.md)
29
+
-[When and how to use it](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/when-and-how-to-use-it.md)
Copy file name to clipboardExpand all lines: packages/vite/docs/api-reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,15 +46,15 @@ The stable import surface. While Vite runs, it serves the module generated from
46
46
47
47
### `twMerge`
48
48
49
-
[tailwind-merge's `twMerge`](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/api-reference.md#twmerge), configured for your theme.
49
+
[tailwind-merge's `twMerge`](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/api-reference.md#twmerge), configured for your theme.
50
50
51
51
### `getConfig`
52
52
53
53
Returns the generated configuration object, freshly built per call. Useful for composing with wrapper libraries or inspecting what was generated.
54
54
55
55
### `extendTailwindMerge`
56
56
57
-
Like [tailwind-merge's `extendTailwindMerge`](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/api-reference.md#extendtailwindmerge), but it extends **your generated configuration** instead of the default one — which is what you want when adding class groups that don't come from your CSS:
57
+
Like [tailwind-merge's `extendTailwindMerge`](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/api-reference.md#extendtailwindmerge), but it extends **your generated configuration** instead of the default one — which is what you want when adding class groups that don't come from your CSS:
Re-exported unchanged from tailwind-merge, so customization never requires a direct tailwind-merge dependency. See the [tailwind-merge API reference](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/api-reference.md).
75
+
Re-exported unchanged from tailwind-merge, so customization never requires a direct tailwind-merge dependency. See the [tailwind-merge API reference](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/api-reference.md).
Copy file name to clipboardExpand all lines: packages/vite/docs/versioning.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,4 +11,4 @@ This package follows [SemVer](https://semver.org), with the pre-1.0 reading spel
11
11
- The stable surface the versioning promises apply to is the **plugin's options** and the **`@tailwind-merge/vite/runtime` exports**. Everything else — the shape of the generated module, the internal `/tailwind-merge` subpath, the config-generation machinery — is internal and may change in any release.
12
12
- The tailwind-merge dependency is an implementation detail: plugin releases must select a compatible library version for both generation and runtime. Before the first release, local trials must supply matching checkout builds; the old registry library does not satisfy the generator's new API requirements.
13
13
14
-
Once 1.0.0 ships, breaking changes will only happen in major releases, following the same practice as [tailwind-merge's versioning](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/versioning.md).
14
+
Once 1.0.0 ships, breaking changes will only happen in major releases, following the same practice as [tailwind-merge's versioning](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/versioning.md).
Copy file name to clipboardExpand all lines: packages/vite/docs/what-is-it-for.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The standalone tailwind-merge package can't know *your* theme, so its default co
6
6
7
7
- A custom font size `--text-huge: 2.5rem` produces `text-huge`, which the default config misreads as a text **color** — so `twMerge('text-huge text-sm')` keeps both classes and your element gets an ambiguous font size ([tailwind-merge#684](https://github.com/dcastil/tailwind-merge/issues/684)).
8
8
- Whole namespaces the default config doesn't model — `--z-index-*`, `--border-width-*`, utility-specific colors like `--text-color-*` — silently fall through to wrong groups.
9
-
- The manual fix is [configuring tailwind-merge by hand](https://github.com/dcastil/tailwind-merge/blob/v3.6.0/docs/configuration.md) and keeping that configuration in sync with your theme forever.
9
+
- The manual fix is [configuring tailwind-merge by hand](https://github.com/dcastil/tailwind-merge/blob/[email protected]/packages/tailwind-merge/docs/configuration.md) and keeping that configuration in sync with your theme forever.
10
10
11
11
This plugin automates that configuration work. At dev-server start and at build time, it loads your CSS through Tailwind's APIs, including theme overrides, resets, `@utility`, `@plugin`, `@config`, and prefixes, and generates a configuration for that resolved theme. Custom utilities even get conflict inference: a `btn` utility that sets padding will correctly override an earlier `p-4`.
0 commit comments