public/tailwind.config.js

77 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-04-07 12:21:17 -04:00
module.exports = {
darkMode: 'class',
purge: ['./src/**/*.md', './_includes/**/*.liquid'],
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: "black",
2021-04-07 18:18:16 -04:00
p: {
color: "black",
},
},
},
2021-04-07 12:21:17 -04:00
dark: {
css: {
color: "white",
a: {
color: "#9ECE6A",
"&:hover": {
color: "#9ECE6A",
},
},
h1: {
color: "white",
},
h2: {
color: "white",
},
h3: {
color: "white",
},
h4: {
color: "white",
},
h5: {
color: "white",
},
h6: {
color: "white",
},
th: {
color: "white",
},
strong: {
color: "white",
},
"blockquote p": {
color: "white",
},
2021-04-08 16:29:59 -04:00
p: {
color: "white",
},
2021-04-07 12:21:17 -04:00
code: {
color: "white",
},
figcaption: {
color: theme("colors.gray.500"),
},
"::selection": {
2021-04-08 16:29:59 -04:00
color: "white",
2021-04-07 12:21:17 -04:00
},
},
}
})
},
},
variants: {
extend: {
typography: ['dark']
}
},
plugins: [
require('@tailwindcss/typography')
],
}