* prefix custom properties with tw- * prefix custom properties with tw- in tests * prefix gradient values in the defaultConfig * inline gradient-via-color * simplify --tw-tailwind-empty to --tw-empty * replace the long --tw-font-variant-numeric-... to the way shorter --tw-fvn-... * Rename --tw-box-shadow to --tw-shadow To match class name. * Rename font-variant-numeric variables * Remove 'transform' from transform variables * Shorten gradient variables * Fix style Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
18 lines
475 B
JavaScript
18 lines
475 B
JavaScript
import _ from 'lodash'
|
|
import nameClass from '../util/nameClass'
|
|
|
|
export default function () {
|
|
return function ({ addUtilities, theme, variants }) {
|
|
const utilities = _.fromPairs(
|
|
_.map(_.omit(theme('ringOpacity'), 'DEFAULT'), (value, modifier) => {
|
|
return [
|
|
nameClass('ring-opacity', modifier),
|
|
{
|
|
'--tw-ring-opacity': value,
|
|
},
|
|
]
|
|
})
|
|
)
|
|
addUtilities(utilities, variants('ringOpacity'))
|
|
}
|
|
}
|