Add basic set of opacity utilities

This commit is contained in:
Adam Wathan 2017-09-03 18:26:59 -04:00
parent afc99c45e2
commit 2d41a67b29
7 changed files with 125 additions and 3 deletions

10
src/generators/opacity.js Normal file
View file

@ -0,0 +1,10 @@
import _ from 'lodash'
import defineClass from '../util/defineClass'
export default function ({ opacity }) {
return _.map(opacity, (value, modifier) => {
return defineClass(`opacity-${modifier}`, {
'opacity': value,
})
})
}