-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Tailwind example to v2.0 (#19278)
- Bump the Tailwind version to v2.0 - Add necessary latest `postcss` and `autoprefixer` deps - Clean the tw config a bit - Add dark mode styles
- Loading branch information
Yuri Yakovlev
authored
Nov 20, 2020
1 parent
7782ba6
commit 0c38922
Showing
6 changed files
with
22 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
module.exports = { | ||
plugins: [ | ||
'tailwindcss', | ||
'postcss-flexbugs-fixes', | ||
[ | ||
'postcss-preset-env', | ||
{ | ||
autoprefixer: { | ||
flexbox: 'no-2009', | ||
}, | ||
stage: 3, | ||
features: { | ||
'custom-properties': false, | ||
}, | ||
}, | ||
], | ||
], | ||
plugins: ['tailwindcss', 'autoprefixer'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
module.exports = { | ||
future: { | ||
removeDeprecatedGapUtilities: true, | ||
purgeLayersByDefault: true, | ||
}, | ||
purge: ['./components/**/*.{js,ts,jsx,tsx}', './pages/**/*.{js,ts,jsx,tsx}'], | ||
darkMode: 'media', // 'media' or 'class' | ||
theme: { | ||
extend: { | ||
colors: { | ||
'accent-1': '#333', | ||
}, | ||
}, | ||
}, | ||
variants: {}, | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} |