diff --git a/src/index.js b/src/index.js index 0bdccc140..5995b2fa8 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ import path from 'path' import _ from 'lodash' import postcss from 'postcss' -import stylefmt from 'stylefmt' +import perfectionist from 'perfectionist' import registerConfigAsDependency from './lib/registerConfigAsDependency' import substituteTailwindPreflightAtRule from './lib/substituteTailwindPreflightAtRule' @@ -41,7 +41,15 @@ const plugin = postcss.plugin('tailwind', config => { substituteResponsiveAtRules(lazyConfig), substituteScreenAtRules(lazyConfig), substituteClassApplyAtRules(lazyConfig), - stylefmt, + perfectionist({ + cascade: false, + colorShorthand: false, + indentSize: 2, + maxSelectorLength: 1, + maxValueLength: false, + trimLeadingZero: false, + trimTrailingZeros: false, + }), ] ) })