Update tailwind.config.js

This commit is contained in:
MacRimi 2025-02-14 19:44:52 +01:00 committed by GitHub
parent 61473ac038
commit e89da522e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,8 +69,39 @@ module.exports = {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme("colors.foreground"),
a: {
color: theme("colors.primary.DEFAULT"),
"&:hover": {
color: theme("colors.primary.DEFAULT"),
},
},
h1: {
color: theme("colors.foreground"),
},
h2: {
color: theme("colors.foreground"),
},
h3: {
color: theme("colors.foreground"),
},
strong: {
color: theme("colors.foreground"),
},
code: {
color: theme("colors.foreground"),
},
figcaption: {
color: theme("colors.muted.foreground"),
},
},
},
}),
},
},
plugins: [require("tailwindcss-animate")],
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
}