Skip to content

Commit 8e9e86d

Browse files
committed
chore: move some texts around in README.md
1 parent 3bd76de commit 8e9e86d

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,6 @@ const config = {
3838
export default config;
3939
```
4040

41-
Then to add support for tailwind-merge, first install the package:
42-
43-
```bash
44-
pnpm add -D tailwind-merge-utopia
45-
```
46-
47-
Then use it in your `utils.(js/ts)`:
48-
49-
```typescript
50-
import { extendTailwindMerge } from "tailwind-merge";
51-
import { withUtopia } from "utopia-tailwind-merge";
52-
import { clsx, type ClassValue } from "clsx";
53-
54-
const twMerge = extendTailwindMerge(withUtopia);
55-
56-
export function cn(...inputs: ClassValue[]) {
57-
return twMerge(clsx(inputs));
58-
}
59-
```
60-
6141
## Features
6242

6343
- clamp based
@@ -146,6 +126,26 @@ You can extend any value in your `tailwindcss.config.ts` file, like the followin
146126

147127
Along with the tailwindcss plugin, we provide a custom tailwind-merge configuration.
148128

129+
To add support for that, first install the package:
130+
131+
```bash
132+
pnpm add -D tailwind-merge-utopia
133+
```
134+
135+
Then use it in your `utils.(js/ts)`:
136+
137+
```typescript
138+
import { extendTailwindMerge } from "tailwind-merge";
139+
import { withUtopia } from "utopia-tailwind-merge";
140+
import { clsx, type ClassValue } from "clsx";
141+
142+
const twMerge = extendTailwindMerge(withUtopia);
143+
144+
export function cn(...inputs: ClassValue[]) {
145+
return twMerge(clsx(inputs));
146+
}
147+
```
148+
149149
## Credits
150150

151151
- utopia-core

0 commit comments

Comments
 (0)