From 06596d1b18b8e2991137a88b9bece94ef43c05d1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 10 May 2019 22:10:58 +0100 Subject: [PATCH] Destructure defaultTheme --- tailwind.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 554e2a7..0d94e01 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,4 +1,4 @@ -let defaultTheme = require('tailwindcss/defaultTheme') +const { fontFamily, spacing } = require('tailwindcss/defaultTheme') module.exports = { theme: { @@ -42,7 +42,7 @@ module.exports = { md: '0 0 10px 0 rgba(0,0,0,0.1)' }, fontFamily: { - sans: ['Proxima Nova', ...defaultTheme.fontFamily.sans] + sans: ['Proxima Nova', ...fontFamily.sans] }, fontSize: { '2xs': '.625rem' // 10px @@ -59,7 +59,7 @@ module.exports = { } }, plugins: [ - require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }), + require('tailwindcss-spaced-items')({ values: spacing }), require('tailwindcss-visuallyhidden')() ] }