Fix style

This commit is contained in:
Adam Wathan 2021-04-02 14:12:47 -04:00
parent f97456483c
commit 7afeeb7084
59 changed files with 84 additions and 143 deletions

View file

@ -1,13 +1,12 @@
const flattenColorPalette = require('../../lib/util/flattenColorPalette').default
const withAlphaVariable = require('../../lib/util/withAlphaVariable').default
const toColorValue = require('../../lib/util/toColorValue').default
const { asColor, nameClass } = require('../pluginUtils')
module.exports = function ({ matchUtilities, jit: { theme } }) {
let colorPalette = flattenColorPalette(theme.stroke)
module.exports = function ({ matchUtilities, theme }) {
let colorPalette = flattenColorPalette(theme('stroke'))
matchUtilities({
stroke: (modifier, { theme }) => {
stroke: (modifier) => {
let value = asColor(modifier, colorPalette)
if (value === undefined) {