Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Created July 24, 2021 17:13
Show Gist options
  • Save MaxySpark/58a83900959c152a2c1927577999921c to your computer and use it in GitHub Desktop.
Save MaxySpark/58a83900959c152a2c1927577999921c to your computer and use it in GitHub Desktop.
React Tailwind
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
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: []
};
@MaxySpark
Copy link
Author

MaxySpark commented Jul 24, 2021

npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment