Merge pull request #697 from tailwindcss/rename-config-to-theme
Remove config() function in favor of theme()
This commit is contained in:
commit
43ea7311d5
4 changed files with 9 additions and 9 deletions
|
|
@ -4,8 +4,8 @@ import functions from 'postcss-functions'
|
|||
export default function(config) {
|
||||
return functions({
|
||||
functions: {
|
||||
config: (path, defaultValue) => {
|
||||
return _.get(config, _.trim(path, `'"`), defaultValue)
|
||||
theme: (path, defaultValue) => {
|
||||
return _.get(config.theme, _.trim(path, `'"`), defaultValue)
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ ul {
|
|||
*::after {
|
||||
border-width: 0;
|
||||
border-style: solid;
|
||||
border-color: config('theme.borderColor.default', currentColor);
|
||||
border-color: theme('borderColor.default', currentColor);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue