Move screens into theme config

This commit is contained in:
Adam Wathan 2019-01-31 20:22:50 -05:00
parent f8ddb7696c
commit ec1bdd27ec
8 changed files with 72 additions and 44 deletions

View file

@ -24,7 +24,7 @@ function extractMinWidths(breakpoints) {
module.exports = function(options) {
return function({ addComponents, config }) {
const screens = _.get(options, 'screens', config('screens'))
const screens = _.get(options, 'screens', config('theme.screens'))
const minWidths = extractMinWidths(screens)