Add tailwind config

This commit is contained in:
Kurt Hutten
2020-10-14 19:31:14 +11:00
parent 398ddc16eb
commit ca833ba18c
5 changed files with 281 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
const path = require('path')
module.exports = {
plugins: [
require('tailwindcss')(path.resolve(__dirname, '../tailwind.config.js')),
require('autoprefixer'),
],
}

View File

@@ -28,5 +28,10 @@
"react": "^16.13.1",
"react-dom": "^16.13.1",
"three": "^0.118.3"
},
"devDependencies": {
"autoprefixer": "9.8.6",
"postcss-loader": "4.0.2",
"tailwindcss": "^1.9.1"
}
}

View File

@@ -1,3 +1,16 @@
/**
* START --- TAILWIND GENERATOR EDIT
*
* `yarn rw generate util tailwind` placed these imports here
* to inject Tailwind's styles into your CSS.
* For more information, see: https://tailwindcss.com/docs/installation#add-tailwind-to-your-css
*/
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/**
* END --- TAILWIND GENERATOR EDIT
*/
button, input, label, textarea {
display: block;

14
web/tailwind.config.js Normal file
View File

@@ -0,0 +1,14 @@
module.exports = {
future: {
// removeDeprecatedGapUtilities: true,
// purgeLayersByDefault: true,
// defaultLineHeights: true,
// standardFontWeights: true
},
purge: [],
theme: {
extend: {}
},
variants: {},
plugins: []
}