@@ -2,6 +2,7 @@ import _ from 'lodash'
22import postcss from 'postcss'
33import applyClassPrefix from '../util/applyClassPrefix'
44import responsive from '../util/responsive'
5+ import hoverable from '../util/hoverable'
56
67import lists from '../generators/lists'
78import appearance from '../generators/appearance'
@@ -56,47 +57,47 @@ export default function(config) {
5657 nodes : _ . flatten ( [
5758 // The `lists` module needs to be first to allow overriding the margin and
5859 // padding values that it sets with other utilities.
59- lists ( unwrappedConfig ) ,
60- appearance ( unwrappedConfig ) ,
61- backgroundColors ( unwrappedConfig ) ,
62- backgroundPosition ( unwrappedConfig ) ,
63- backgroundSize ( unwrappedConfig ) ,
64- borderColors ( unwrappedConfig ) ,
65- borderRadius ( unwrappedConfig ) ,
66- borderStyle ( unwrappedConfig ) ,
67- borderWidths ( unwrappedConfig ) ,
68- cursor ( unwrappedConfig ) ,
69- display ( unwrappedConfig ) ,
70- flexbox ( unwrappedConfig ) ,
71- float ( unwrappedConfig ) ,
72- fonts ( unwrappedConfig ) ,
73- fontWeights ( unwrappedConfig ) ,
74- height ( unwrappedConfig ) ,
75- leading ( unwrappedConfig ) ,
76- margin ( unwrappedConfig ) ,
77- maxHeight ( unwrappedConfig ) ,
78- maxWidth ( unwrappedConfig ) ,
79- minHeight ( unwrappedConfig ) ,
80- minWidth ( unwrappedConfig ) ,
81- negativeMargin ( unwrappedConfig ) ,
82- opacity ( unwrappedConfig ) ,
83- overflow ( unwrappedConfig ) ,
84- padding ( unwrappedConfig ) ,
85- pointerEvents ( unwrappedConfig ) ,
86- position ( unwrappedConfig ) ,
87- resize ( unwrappedConfig ) ,
88- shadows ( unwrappedConfig ) ,
89- textAlign ( unwrappedConfig ) ,
90- textColors ( unwrappedConfig ) ,
91- textSizes ( unwrappedConfig ) ,
92- textStyle ( unwrappedConfig ) ,
93- tracking ( unwrappedConfig ) ,
94- userSelect ( unwrappedConfig ) ,
95- verticalAlign ( unwrappedConfig ) ,
96- visibility ( unwrappedConfig ) ,
97- whitespace ( unwrappedConfig ) ,
98- width ( unwrappedConfig ) ,
99- zIndex ( unwrappedConfig ) ,
60+ responsive ( lists ( unwrappedConfig ) ) ,
61+ responsive ( appearance ( unwrappedConfig ) ) ,
62+ responsive ( hoverable ( backgroundColors ( unwrappedConfig ) ) ) ,
63+ responsive ( backgroundPosition ( unwrappedConfig ) ) ,
64+ responsive ( backgroundSize ( unwrappedConfig ) ) ,
65+ responsive ( hoverable ( borderColors ( unwrappedConfig ) ) ) ,
66+ responsive ( borderRadius ( unwrappedConfig ) ) ,
67+ responsive ( borderStyle ( unwrappedConfig ) ) ,
68+ responsive ( borderWidths ( unwrappedConfig ) ) ,
69+ responsive ( cursor ( unwrappedConfig ) ) ,
70+ responsive ( display ( unwrappedConfig ) ) ,
71+ responsive ( flexbox ( unwrappedConfig ) ) ,
72+ responsive ( float ( unwrappedConfig ) ) ,
73+ responsive ( fonts ( unwrappedConfig ) ) ,
74+ responsive ( hoverable ( fontWeights ( unwrappedConfig ) ) ) ,
75+ responsive ( height ( unwrappedConfig ) ) ,
76+ responsive ( leading ( unwrappedConfig ) ) ,
77+ responsive ( margin ( unwrappedConfig ) ) ,
78+ responsive ( maxHeight ( unwrappedConfig ) ) ,
79+ responsive ( maxWidth ( unwrappedConfig ) ) ,
80+ responsive ( minHeight ( unwrappedConfig ) ) ,
81+ responsive ( minWidth ( unwrappedConfig ) ) ,
82+ responsive ( negativeMargin ( unwrappedConfig ) ) ,
83+ responsive ( opacity ( unwrappedConfig ) ) ,
84+ responsive ( overflow ( unwrappedConfig ) ) ,
85+ responsive ( padding ( unwrappedConfig ) ) ,
86+ responsive ( pointerEvents ( unwrappedConfig ) ) ,
87+ responsive ( position ( unwrappedConfig ) ) ,
88+ responsive ( resize ( unwrappedConfig ) ) ,
89+ responsive ( shadows ( unwrappedConfig ) ) ,
90+ responsive ( textAlign ( unwrappedConfig ) ) ,
91+ responsive ( hoverable ( textColors ( unwrappedConfig ) ) ) ,
92+ responsive ( textSizes ( unwrappedConfig ) ) ,
93+ responsive ( hoverable ( textStyle ( unwrappedConfig ) ) ) ,
94+ responsive ( tracking ( unwrappedConfig ) ) ,
95+ responsive ( userSelect ( unwrappedConfig ) ) ,
96+ responsive ( verticalAlign ( unwrappedConfig ) ) ,
97+ responsive ( visibility ( unwrappedConfig ) ) ,
98+ responsive ( whitespace ( unwrappedConfig ) ) ,
99+ responsive ( width ( unwrappedConfig ) ) ,
100+ responsive ( zIndex ( unwrappedConfig ) ) ,
100101 ] ) ,
101102 } )
102103
@@ -105,7 +106,7 @@ export default function(config) {
105106 }
106107
107108 const tailwindClasses = postcss . root ( {
108- nodes : [ ...container ( unwrappedConfig ) , responsive ( utilities ) ] ,
109+ nodes : [ ...container ( unwrappedConfig ) , ... utilities . nodes ] ,
109110 } )
110111
111112 applyClassPrefix ( tailwindClasses , _ . get ( unwrappedConfig , 'options.prefix' , '' ) )
0 commit comments