Skip to content

Commit

Permalink
Note new matchUtilities API design
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed May 7, 2021
1 parent cc4d1d2 commit f970701
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/jit/lib/setupContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,19 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
}
},
matchUtilities: function (utilities, options) {
// TODO: Redesign this API to work like this so it's more end-user friendly
// matchUtilities({
// animate: (value, { includeRules }) => {
// let { name: animationName } = parseAnimationValue(value)

// if (keyframes[animationName] !== undefined) {
// includeRules(keyframes[animationName])
// }

// return { animation: value }
// },
// }, { values: [...], variants: [lol], ...otherStuff })

let defaultOptions = {
variants: [],
respectPrefix: true,
Expand Down

0 comments on commit f970701

Please sign in to comment.