Skip to content

Commit

Permalink
Adding TailwindCSS (and craco to configure create react app)
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Oct 24, 2023
1 parent e564673 commit 4b87606
Show file tree
Hide file tree
Showing 7 changed files with 501 additions and 18 deletions.
23 changes: 23 additions & 0 deletions web/craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const defaultTheme = require('tailwindcss/defaultTheme')

module.exports = {
style: {
postcss: {
plugins: {
'postcss-import': {},
tailwindcss: {},
autoprefixer: {},
},
},
},
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
},
},
devServer: {
allowedHosts: ['localhost'],
},
}
Loading

0 comments on commit 4b87606

Please sign in to comment.