1
- import { isAny , isCustomValue , isInteger , isLength } from './config-validators'
1
+ import { isAny , isCustomLength , isCustomValue , isInteger , isLength } from './config-validators'
2
2
3
3
const SIZES_SIMPLE = [ 'sm' , 'md' , 'lg' , 'xl' , '2xl' ] as const
4
4
const SIZES_EXTENDED = [ '3xl' , '4xl' , '5xl' , '6xl' , '7xl' ] as const
@@ -21,7 +21,7 @@ const POSITIONS = [
21
21
'right-top' ,
22
22
'top' ,
23
23
] as const
24
- const ROUNDED = [ 'none' , '' , ...SIZES_SIMPLE , '3xl' , 'full' ] as const
24
+ const ROUNDED = [ 'none' , '' , ...SIZES_SIMPLE , '3xl' , 'full' , isCustomLength ] as const
25
25
const BORDER_STYLES = [ 'solid' , 'dashed' , 'dotted' , 'double' , 'none' ] as const
26
26
const BLEND_MODES = [
27
27
{
@@ -271,7 +271,7 @@ export function getDefaultConfig() {
271
271
* Flex
272
272
* @see https://tailwindcss.com/docs/flex
273
273
*/
274
- flex : [ { flex : [ '1' , 'auto' , 'initial' , 'none' ] } ] ,
274
+ flex : [ { flex : [ '1' , 'auto' , 'initial' , 'none' , isCustomValue ] } ] ,
275
275
/**
276
276
* Flex Grow
277
277
* @see https://tailwindcss.com/docs/flex-grow
@@ -543,13 +543,23 @@ export function getDefaultConfig() {
543
543
* Font Family
544
544
* @see https://tailwindcss.com/docs/font-family
545
545
*/
546
- 'font-family' : [ { font : [ 'sans' , 'serif' , 'mono' ] } ] ,
546
+ 'font-family' : [ { font : ANY } ] ,
547
547
/**
548
548
* Font Size
549
549
* @see https://tailwindcss.com/docs/font-size
550
550
*/
551
551
'font-size' : [
552
- { text : [ 'xs' , ...SIZES_SIMPLE , 'base' , ...SIZES_EXTENDED , '8xl' , '9xl' ] } ,
552
+ {
553
+ text : [
554
+ 'xs' ,
555
+ ...SIZES_SIMPLE ,
556
+ 'base' ,
557
+ ...SIZES_EXTENDED ,
558
+ '8xl' ,
559
+ '9xl' ,
560
+ isCustomLength ,
561
+ ] ,
562
+ } ,
553
563
] ,
554
564
/**
555
565
* Font Smoothing
@@ -614,7 +624,19 @@ export function getDefaultConfig() {
614
624
* Letter Spacing
615
625
* @see https://tailwindcss.com/docs/letter-spacing
616
626
*/
617
- tracking : [ { tracking : [ 'tighter' , 'tight' , 'normal' , 'wide' , 'wider' , 'widest' ] } ] ,
627
+ tracking : [
628
+ {
629
+ tracking : [
630
+ 'tighter' ,
631
+ 'tight' ,
632
+ 'normal' ,
633
+ 'wide' ,
634
+ 'wider' ,
635
+ 'widest' ,
636
+ isCustomLength ,
637
+ ] ,
638
+ } ,
639
+ ] ,
618
640
/**
619
641
* Line Height
620
642
* @see https://tailwindcss.com/docs/line-height
@@ -954,7 +976,7 @@ export function getDefaultConfig() {
954
976
* Blur
955
977
* @see https://tailwindcss.com/docs/blur
956
978
*/
957
- blur : [ { blur : [ 'none' , '' , ...SIZES_SIMPLE , '3xl' ] } ] ,
979
+ blur : [ { blur : [ 'none' , '' , ...SIZES_SIMPLE , '3xl' , isCustomLength ] } ] ,
958
980
/**
959
981
* Brightness
960
982
* @see https://tailwindcss.com/docs/brightness
@@ -1170,6 +1192,7 @@ export function getDefaultConfig() {
1170
1192
'move' ,
1171
1193
'help' ,
1172
1194
'not-allowed' ,
1195
+ isCustomValue ,
1173
1196
] ,
1174
1197
} ,
1175
1198
] ,
0 commit comments