Closed chrismurrph closed 3 years ago
Can you post the full content of the tailwind.config.js? Which version of tailwind do you use?
Here is an example how to set the darkmode
// tailwind.config.js
module.exports = {
darkMode: 'media',
// ...
}
module.exports = {
mode: 'jit'
purge: [],
darkMode: false,
theme: {
fontFamily: {
sans: ['Nunito Sans', 'sans-serif'],
serif: ['Lora', 'serif']
},
extend: {
colors: {
'dark-navy': {
'500': '#002838',
'400': '#163343'
},
'annotation-orange': {
'500': '#d77951'
}
},
spacing: {
'104': "28rem",
'112': "32rem",
'120': "36rem",
'128': "40rem"
}
},
},
variants: {
extend: {
backgroundColor: ['active', 'checked'],
borderColor: ['active', 'checked']
},
},
plugins: [],
}
As for which version of tailwind:
"tailwindcss": "^2.2.7"
from the package.json
the comma at line 2
mode: 'jit',
@chrismurrph I'm assuming that the above fixed this, can I close?
Yes sure. Thanks for helping me.
yarn shadow-cljs server yarn run v1.22.11
I got the same for
purge:
. This is when reading from filetailwind.config.js
.