mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Note new matchUtilities API design
This commit is contained in:
parent
cc4d1d2658
commit
f9707015f8
@ -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…
x
Reference in New Issue
Block a user