Skip to content

Commit f970701

Browse files
committed
Note new matchUtilities API design
1 parent cc4d1d2 commit f970701

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/jit/lib/setupContext.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,19 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs
530530
}
531531
},
532532
matchUtilities: function (utilities, options) {
533+
// TODO: Redesign this API to work like this so it's more end-user friendly
534+
// matchUtilities({
535+
// animate: (value, { includeRules }) => {
536+
// let { name: animationName } = parseAnimationValue(value)
537+
538+
// if (keyframes[animationName] !== undefined) {
539+
// includeRules(keyframes[animationName])
540+
// }
541+
542+
// return { animation: value }
543+
// },
544+
// }, { values: [...], variants: [lol], ...otherStuff })
545+
533546
let defaultOptions = {
534547
variants: [],
535548
respectPrefix: true,

0 commit comments

Comments
 (0)