diff --git a/docs/_static/custom.css b/docs/_static/custom.css new file mode 100644 index 00000000..311281f1 --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,9 @@ +.highlight .gd { color: #A40000 !important; } +.highlight .gi { color: #116600 !important; } + +@media (prefers-color-scheme: dark) { + body:not([data-theme="light"]) .highlight .gd { color: #FF6B6B !important; } + body:not([data-theme="light"]) .highlight .gi { color: #69DB7C !important; } +} +body[data-theme="dark"] .highlight .gd { color: #FF6B6B !important; } +body[data-theme="dark"] .highlight .gi { color: #69DB7C !important; } diff --git a/docs/conf.py b/docs/conf.py index ae35e7b3..6f4ab95e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,6 +60,8 @@ # a list of builtin themes. # html_logo = "_static/logo.svg" +html_static_path = ["_static"] +html_css_files = ["custom.css"] html_theme = "furo" html_theme_options = { "dark_css_variables": {