Dark mode for existing Alabaster project

84 views
Skip to first unread message

castania pilonga

unread,
Nov 23, 2023, 11:50:30 AM11/23/23
to sphinx-users
Hi,

I don't know much about Sphinx. Is there any way to convert an existing Alabaster project into "dark mode"?

Thank you!

castania pilonga

unread,
Jan 16, 2024, 11:46:23 AMJan 16
to sphinx-users
I guess it's not that easy and I will have to configure everything manually. Still I'd like to try, but don't know how.

What file should I edit? I cannot find where colors are configured.

Thanks

jdsalaro

unread,
Jan 16, 2024, 11:38:55 PMJan 16
to sphinx-users


Castania,

learning from the theme's CSS is a good start https://github.com/sphinx-doc/alabaster/blob/master/alabaster/static/alabaster.css_t#L63

Make additions and replacements as desired in the `custom.css` file on the `static` folder of the template.

The keywords you're looking for are "how to customise Sphinx themes" or "Sphinx custom CSS" as in https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html

Cheers,

Jayson 

castania pilonga

unread,
Jan 17, 2024, 2:33:10 PMJan 17
to sphinx-users
Thank you!
Reply all
Reply to author
Forward
0 new messages