Skip to content

Commit

Permalink
Fix tiny Tailwind config details (#82)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
mqp committed Apr 20, 2022
1 parent abf9d30 commit bf408d9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const defaultTheme = require('tailwindcss/defaultTheme')

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

1 comment on commit bf408d9

@vercel
Copy link

@vercel vercel bot commented on bf408d9 Apr 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

manifold-og-image – ./og-image/

manifold-og-image.vercel.app
manifold-og-image-git-main-mantic.vercel.app
manifold-og-image-mantic.vercel.app

Please sign in to comment.