Skip to content

Commit

Permalink
Update theme toggle and tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Jan 17, 2024
1 parent ce1cf05 commit 7069a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion islands/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function ThemeToggle() {

const handleThemeChange = () => {
const storedTheme = localStorage.getItem("selectedTheme");
const newTheme = storedTheme === "cmyk" ? "night" : "cmyk";
const newTheme = storedTheme === "dracula" ? "nord" : "dracula";
document.documentElement.setAttribute("data-theme", newTheme);
localStorage.setItem("selectedTheme", newTheme);
updateMarkdownTheme(newTheme);
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default {
plugins: [daisyui],
daisyui: {
log: false,
themes: ["night", "cmyk"],
themes: ["dracula", "nord"],
},
} satisfies Config;
} satisfies Config;

0 comments on commit 7069a4d

Please sign in to comment.