@@ -2,7 +2,7 @@ const _ = require('lodash')
22
33module . exports = function ( options = { } ) {
44 return function ( { addUtilities, config, e } ) {
5- let { counts, widths, rules, variants } = _ . defaults ( options , {
5+ let { counts, gaps , widths, rules, variants } = _ . defaults ( options , {
66 counts : [ 1 , 2 , 3 ] ,
77 rules : {
88 colors : config ( 'borderColors' ) ,
@@ -17,6 +17,10 @@ module.exports = function (options = {}) {
1717 [ `.${ e ( `col-count-${ count } ` ) } ` ] : { 'column-count' : count } ,
1818 } ) )
1919
20+ gaps = _ . map ( gaps , ( gap , name ) => ( {
21+ [ `.${ e ( `col-gap${ getName ( name ) } ` ) } ` ] : { 'column-gap' : gap } ,
22+ } ) )
23+
2024 widths = _ . map ( widths , ( width , name ) => ( {
2125 [ `.${ e ( `col-w-${ name } ` ) } ` ] : { 'column-width' : width } ,
2226 } ) )
@@ -30,6 +34,7 @@ module.exports = function (options = {}) {
3034 } ) )
3135
3236 addUtilities ( counts , variants )
37+ addUtilities ( gaps , variants )
3338 addUtilities ( widths , variants )
3439 addUtilities ( ruleColors , variants )
3540 addUtilities ( ruleWidths , variants )
0 commit comments