-
So, like, with Tailwind if you want to add a custom font family you can spread it into the config, is it possible to do that with daisyUI? With Tailwind: module.exports = {
theme: {
fontFamily: {
'sans': ['ui-sans-serif', 'system-ui', ...],
'serif': ['ui-serif', 'Georgia', ...],
'mono': ['ui-monospace', 'SFMono-Regular', ...],
'display': ['Oswald', ...],
'body': ['"Open Sans"', ...],
}
}
} Anyone got an example of how to do it with daisyUI?? |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Jan 14, 2022
Replies: 1 comment 6 replies
-
I think you can require a theme like this, then spread it and change some values: const {
"[data-theme=dark]": darkTheme,
} = require("daisyui/src/colors/themes");
module.exports = {
//...
daisyui: {
themes: [
{
dark: {
...darkTheme,
primary: "#FF0000",
},
},
],
},
}; UPDATE: |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
spences10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can require a theme like this, then spread it and change some values:
UPDATE:
daisyui/colors/themes
file is now moved todaisyui/src/colors/themes