Fix tailwind setup

- Adopted postcss and tailwind config to new version
- renamed colors bluegray->slate etc to not have custom
  definitions (hope to reduce migration next time)
- tailwind now doesn't build the complete css anymore, so the
  `dev-ui-build` script must compile both
This commit is contained in:
eikek
2021-12-20 23:03:05 +01:00
parent e9d5377a45
commit f5e375614f
50 changed files with 592 additions and 626 deletions

View File

@ -3,26 +3,17 @@
const colors = require('tailwindcss/colors')
module.exports = {
darkMode: 'class', // or 'media' or 'class'
content: [ "./src/main/elm/**/*.elm",
"./src/main/styles/keep.txt",
"../restserver/src/main/templates/*.html"
],
variants: {
extend: {
backgroundOpacity: ['dark']
}
},
purge: false,
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
colors: {
bluegray: colors.blueGray,
warmgray: colors.warmGray,
amber: colors.amber,
orange: colors.orange,
teal: colors.teal,
lime: colors.lime,
lightblue: colors.sky
}
}
},
plugins: [
require('@tailwindcss/forms')
]