@@ -38,26 +38,6 @@ const config = {
3838export 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
147127Along 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