@@ -7,6 +7,7 @@ const OVERFLOW = ['auto', 'hidden', 'visible', 'scroll'] as const
7
7
const LENGTH = [ isLength ] as const
8
8
const LENGTH_WITH_AUTO = [ 'auto' , isLength ] as const
9
9
const INTEGER = [ isInteger ] as const
10
+ const INTEGER_WITH_AUTO = [ 'auto' , isInteger ] as const
10
11
const ANY = [ isAny ] as const
11
12
const POSITIONS = [
12
13
'bottom' ,
@@ -43,6 +44,7 @@ const BLEND_MODES = [
43
44
] ,
44
45
} ,
45
46
] as const
47
+ const ALIGN = [ 'start' , 'end' , 'center' , 'between' , 'around' , 'evenly' ] as const
46
48
47
49
export function getDefaultConfig ( ) {
48
50
return {
@@ -281,12 +283,12 @@ export function getDefaultConfig() {
281
283
* Grid Column Start
282
284
* @see https://tailwindcss.com/docs/grid-column
283
285
*/
284
- [ { start : [ 'auto' , isInteger ] } ] ,
286
+ [ { start : INTEGER_WITH_AUTO } ] ,
285
287
/**
286
288
* Grid Column End
287
289
* @see https://tailwindcss.com/docs/grid-column
288
290
*/
289
- [ { end : [ 'auto' , isInteger ] } ] ,
291
+ [ { end : INTEGER_WITH_AUTO } ] ,
290
292
] ,
291
293
row : [
292
294
/**
@@ -298,12 +300,12 @@ export function getDefaultConfig() {
298
300
* Grid Row Start
299
301
* @see https://tailwindcss.com/docs/grid-row
300
302
*/
301
- [ { start : [ 'auto' , isInteger ] } ] ,
303
+ [ { start : INTEGER_WITH_AUTO } ] ,
302
304
/**
303
305
* Grid Row End
304
306
* @see https://tailwindcss.com/docs/grid-row
305
307
*/
306
- [ { end : [ 'auto' , isInteger ] } ] ,
308
+ [ { end : INTEGER_WITH_AUTO } ] ,
307
309
] ,
308
310
auto : [
309
311
/**
@@ -339,7 +341,7 @@ export function getDefaultConfig() {
339
341
* Justify Content
340
342
* @see https://tailwindcss.com/docs/justify-content
341
343
*/
342
- [ 'start' , 'end' , 'center' , 'between' , 'around' , 'evenly' ] ,
344
+ ALIGN ,
343
345
/**
344
346
* Justify Items
345
347
* @see https://tailwindcss.com/docs/justify-items
@@ -356,7 +358,7 @@ export function getDefaultConfig() {
356
358
* Align Content
357
359
* @see https://tailwindcss.com/docs/align-content
358
360
*/
359
- [ 'center' , 'start' , 'end' , 'between' , 'around' , 'evenly' ] ,
361
+ ALIGN ,
360
362
/**
361
363
* Content
362
364
* @see https://tailwindcss.com/docs/just-in-time-mode#content-utilities
@@ -382,7 +384,7 @@ export function getDefaultConfig() {
382
384
* Place Content
383
385
* @see https://tailwindcss.com/docs/place-content
384
386
*/
385
- [ { content : [ 'center' , 'start' , 'end' , 'between' , 'around' , 'evenly' , 'stretch' ] } ] ,
387
+ [ { content : [ ... ALIGN , 'stretch' ] } ] ,
386
388
/**
387
389
* Place Items
388
390
* @see https://tailwindcss.com/docs/place-items
@@ -559,14 +561,14 @@ export function getDefaultConfig() {
559
561
* Max-Height
560
562
* @see https://tailwindcss.com/docs/max-height
561
563
*/
562
- [ { h : [ 'full' , 'screen' , isLength ] } ] ,
564
+ [ { h : LENGTH } ] ,
563
565
] ,
564
566
h : [
565
567
/**
566
568
* Height
567
569
* @see https://tailwindcss.com/docs/height
568
570
*/
569
- [ 'auto' , isLength ] ,
571
+ LENGTH_WITH_AUTO ,
570
572
] ,
571
573
// Typography
572
574
font : [
0 commit comments