mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
12 lines
317 B
JavaScript
12 lines
317 B
JavaScript
import _ from 'lodash'
|
|
import defineClass from '../util/defineClass'
|
|
import hoverable from '../util/hoverable'
|
|
|
|
export default function ({ backgrounds }) {
|
|
return hoverable(_.map(backgrounds.colors, (color, className) => {
|
|
return defineClass(`bg-${className}`, {
|
|
'background-color': color,
|
|
})
|
|
}))
|
|
}
|