GoogleChromeLabs / postcss-jit-props

A CSS custom property helper based on PostCSS. Supply a pool of variables and this plugin will add them to the stylesheet as they are used.
https://stackblitz.com/edit/jit-open-props?file=postcss.config.js
Apache License 2.0
210 stars 9 forks source link

Is -& or -@ suffix? #3

Closed equinusocio closed 2 years ago

equinusocio commented 2 years ago

I see in the doc this passage:

Javascript and JSON must use the -& suffix on their custom property name in order for jit-props to find associated @keyframes

But in the documentation example -@ is used instead:

require('postcss-jit-props')({
      '--fade-in-@': '@keyframes fade-in {to { opacity: 1 }}',
})
argyleink commented 2 years ago

thanks yo!