Destructure defaultTheme

This commit is contained in:
Oliver Davies 2019-05-10 22:10:58 +01:00
parent 0c13530233
commit 06596d1b18

View file

@ -1,4 +1,4 @@
let defaultTheme = require('tailwindcss/defaultTheme') const { fontFamily, spacing } = require('tailwindcss/defaultTheme')
module.exports = { module.exports = {
theme: { theme: {
@ -42,7 +42,7 @@ module.exports = {
md: '0 0 10px 0 rgba(0,0,0,0.1)' md: '0 0 10px 0 rgba(0,0,0,0.1)'
}, },
fontFamily: { fontFamily: {
sans: ['Proxima Nova', ...defaultTheme.fontFamily.sans] sans: ['Proxima Nova', ...fontFamily.sans]
}, },
fontSize: { fontSize: {
'2xs': '.625rem' // 10px '2xs': '.625rem' // 10px
@ -59,7 +59,7 @@ module.exports = {
} }
}, },
plugins: [ plugins: [
require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }), require('tailwindcss-spaced-items')({ values: spacing }),
require('tailwindcss-visuallyhidden')() require('tailwindcss-visuallyhidden')()
] ]
} }