mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Rename modules to variants
This commit is contained in:
parent
c56ae6c6b4
commit
d98e97f3ec
@ -764,7 +764,7 @@ module.exports = {
|
||||
'xl': '1200px',
|
||||
},
|
||||
styles: styles,
|
||||
modules: {
|
||||
variants: {
|
||||
appearance: ['responsive'],
|
||||
backgroundAttachment: ['responsive'],
|
||||
backgroundColors: ['responsive', 'hover', 'focus'],
|
||||
|
||||
@ -49,12 +49,12 @@ import whitespace from './plugins/whitespace'
|
||||
import width from './plugins/width'
|
||||
import zIndex from './plugins/zIndex'
|
||||
|
||||
function loadPlugins({ styles, modules }, plugins) {
|
||||
function loadPlugins({ styles, variants }, plugins) {
|
||||
return Object.keys(plugins)
|
||||
.filter(plugin => modules[plugin] !== false)
|
||||
.filter(plugin => variants[plugin] !== false)
|
||||
.map(plugin => plugins[plugin]({
|
||||
values: styles[plugin],
|
||||
variants: modules[plugin],
|
||||
variants: variants[plugin],
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user