Skip to content

Commit

Permalink
fix: saadeghi#762, feat: darkTheme config now can be false to dis…
Browse files Browse the repository at this point in the history
…able `prefers-color-scheme: dark`
  • Loading branch information
saadeghi authored and ImgBotApp committed Jun 5, 2023
1 parent 73457cb commit 29a27f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/colors/functions.js
Expand Up @@ -272,6 +272,9 @@ module.exports = {
},
});
}
}
else if (config("daisyui.darkTheme") === false ) {
// disables prefers-color-scheme: dark
} else {
if (themeOrder[0] != "dark" && themeOrder.includes("dark")) {
addBase({
Expand Down

0 comments on commit 29a27f0

Please sign in to comment.