Skip to content

Commit beef83f

Browse files
committed
[#99] ✨ add extended twMerge due to the issue with merging custom classes
1 parent aa76d6e commit beef83f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/lib/twMerge/index.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { extendTailwindMerge } from 'tailwind-merge'
2+
3+
export const twMergeEx = extendTailwindMerge({
4+
extend: {
5+
classGroups: {
6+
'font-size': [
7+
{
8+
text: [
9+
'heading1',
10+
'heading2',
11+
'heading3',
12+
'heading4',
13+
'heading5',
14+
'title1',
15+
'title2',
16+
'body1',
17+
'body2',
18+
'body3',
19+
'caption1',
20+
'caption2',
21+
'inherit',
22+
],
23+
},
24+
],
25+
},
26+
},
27+
})

0 commit comments

Comments
 (0)