Created
July 24, 2021 17:13
-
-
Save MaxySpark/58a83900959c152a2c1927577999921c to your computer and use it in GitHub Desktop.
React Tailwind
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
@import 'tailwindcss/base'; | |
@import 'tailwindcss/components'; | |
@import 'tailwindcss/utilities'; |
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
const defaultTheme = require('tailwindcss/defaultTheme'); | |
module.exports = { | |
mode: 'jit', | |
purge: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], | |
theme: { | |
extend: { | |
fontWeight: ['hover', 'focus'], | |
fontFamily: { | |
sans: ['Inter var', ...defaultTheme.fontFamily.sans], | |
}, | |
}, | |
}, | |
variants: {}, | |
plugins: [] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9