mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Rename styles to theme
This commit is contained in:
parent
3fbd6b300a
commit
efc7927078
@ -439,7 +439,7 @@ ul {
|
||||
*::after {
|
||||
border-width: 0;
|
||||
border-style: solid;
|
||||
border-color: config('styles.borderColors.default', currentColor);
|
||||
border-color: config('theme.borderColors.default', currentColor);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -763,7 +763,7 @@ module.exports = {
|
||||
'lg': '992px',
|
||||
'xl': '1200px',
|
||||
},
|
||||
styles: styles,
|
||||
theme: styles,
|
||||
variants: {
|
||||
appearance: ['responsive'],
|
||||
backgroundAttachment: ['responsive'],
|
||||
|
||||
@ -49,11 +49,11 @@ import whitespace from './plugins/whitespace'
|
||||
import width from './plugins/width'
|
||||
import zIndex from './plugins/zIndex'
|
||||
|
||||
function loadPlugins({ styles, variants, corePlugins }, plugins) {
|
||||
function loadPlugins({ theme, variants, corePlugins }, plugins) {
|
||||
return Object.keys(plugins)
|
||||
.filter(plugin => corePlugins[plugin] !== false)
|
||||
.map(plugin => plugins[plugin]({
|
||||
values: styles[plugin],
|
||||
values: theme[plugin],
|
||||
variants: variants[plugin],
|
||||
}))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user