Extend default Themes with additional colors #779
Answered
by
saadeghi
LeonWehrhahn
asked this question in
Q&A
-
|
Is it possible to extend existing themes with additional colors? For example, I would like to add an accent-2, accent-2-focus, accent-2-content. Something like this: daisyui: {
themes: [
{
light: {
...require("daisyui/src/colors/themes")["[data-theme=light]"],
info: "#bfdbfe",
"base-300": "#eff6ff"
},
dark: {
...require("daisyui/src/colors/themes")["[data-theme=dark]"],
info: "#3b82f6",
"base-300": "#2a303c",
//Additional colors
"accent-2": "#2a303c",
"accent-2-focus": "#2a303c",
"accent-2-content": "#2a303c",
}
}, "retro", "cyberpunk"],
} |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
May 5, 2022
Replies: 1 comment 1 reply
-
|
See this: #653 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See this: #653 (comment)