Note new matchUtilities API design
This commit is contained in:
parent
cc4d1d2658
commit
f9707015f8
1 changed files with 13 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue