novel
novel copied to clipboard
Thinking about adding a dark mode?
Is it possible to consider adding a dark mode switch, which could be great for writers used to writing in dark mode?
Yeah I tried adding that before, unfortunately we're blocked by Tailwind Typography not supporting dark mode with prose-invert
: https://github.com/tailwindlabs/tailwindcss-typography/issues/228
cc: @adamwathan
I've been able to implement dark-mode in tailwind with the typography plugin with just prose dark:prose-invert
.
@notjustinshaw 👀 that's awesome! Feel free to make a PR to add dark mode to Novel! 😄
I could get darkmode to work, I'm using cookies to store current mode
I could get darkmode to work, I'm using cookies to store current mode
this dark mode ui looks in consistent , that toggle button size is large , continue writing icon missing etc also y store in cookie ? i think it is better to store the theme state in local storage than cookies
Yeah, I fixed all the issues you mentioned in the above commits already. 😁
Why cookies: it's hard to manage global state in server components, local storage could be done but this was a very straightforward approach, so I went with it
Yeah, I fixed all the issues you mentioned in the above commits already. 😁
Why cookies: it's hard to manage global state in server components, local storage could be done but this was a very straightforward approach, so I went with it
Ne olduğunu anlamayan yine ben
Dark mode is now live!! #80