Fix tiny Tailwind config details (#82)

* Fix Tailwind darkMode CSS pref

See https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration.

* Fix Tailwind 'purge' -> 'content'

See https://tailwindcss.com/docs/upgrade-guide#configure-content-sources.

* Remove additional cruft from Tailwind config

These literally weren't hurting anything but the upgrade guide
suggests toasting them, so might as well do it while I'm in here.
This commit is contained in:
Marshall Polaris 2022-04-19 19:41:24 -07:00 committed by GitHub
parent abf9d30ad2
commit bf408d9bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
const defaultTheme = require('tailwindcss/defaultTheme') const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = { module.exports = {
mode: 'jit', content: [
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], './pages/**/*.{js,ts,jsx,tsx}',
darkMode: false, // or 'media' or 'class' './components/**/*.{js,ts,jsx,tsx}',
],
theme: { theme: {
fontFamily: Object.assign( fontFamily: Object.assign(
{ ...defaultTheme.fontFamily }, { ...defaultTheme.fontFamily },
@ -18,9 +19,6 @@ module.exports = {
}, },
}, },
}, },
variants: {
extend: {},
},
plugins: [ plugins: [
require('@tailwindcss/forms'), require('@tailwindcss/forms'),
require('@tailwindcss/typography'), require('@tailwindcss/typography'),