Closed azzamsa closed 4 years ago
Definitely yes!
Actually it has been possible to do it for a few days, since we've merged hooks on master.
You could use the `load-hook' to set an arbitrary CSS. I'm wondering if we need another hook that runs after the page has loaded.
Testing is welcome!
Also see #102.
I don't use dark color schemes any more, but ideally Next would somehow support the prefers-color-scheme media query. It should be possible to disable your custom CSS if the current page makes use of it.
Thanks for the link!
Anouther resource worth taking a look at is https://github.com/alphapapa/solarized-everything-css There is a theme folder in there where they generate a couple of different themes like dracula and solarized.
Thanks for sharing!
Found some more dark theme resources, https://github.com/RaitaroH/DarkWeb and https://openusercss.org/
Seems Next does support prefers-color-scheme
.
With the help of @document
CSS rules and this piece of code ( https://github.com/atlas-engineer/next/issues/478#issuecomment-548615154 ) should make for a working solution.
It's just that I couldn't make @document
rules work
See also #478 for some examples.
+1 for something like dark reader!
Yes, it was automatically closed by GitHub :-D
We now have a dark mode! Please see our article at https://nyxt.atlas.engineer/article/dark-mode.org
Simple, just enable dark-mode.
How??
M-x =dark-mode= make sure you are running a very recent version, at most two days old.
Thanks! Looks like the linux download is too old then. nyxt-linux-2-pre-release-3-13-gccde4fba.tar.xz
It will be updated tomorrow :-)
how to have it enable by default?
@kurokirasama, something like
(define-configuration web-buffer
((default-modes (append '(dark-mode) %slot-default%))))
This adds dark-mode
to the list of default modes of every buffer. When you create new buffers, they enable their default-modes
(including dark-mode
you added) automatically.
As a set of alternative solutions for dark mode (yes, I'm obsessed about it):
GTK_THEME
to some dark variant before starting Nyxt. E.g. GTK_THEME=Adwaita:dark nyxt
. This will force all the WebKit interfaces and dark-mode-enabled websites to render in dark.thanks!!
Hi
is there any plan to support dark mode for website ala stylish or ala dark reader ?
Since I think its a very basic need for average users.
Thanks