Skip to content

Commit

Permalink
Switch to accessible-pygments themes
Browse files Browse the repository at this point in the history
These are better colors overall and also cater to color accessibility
requirements.
  • Loading branch information
pradyunsg committed Jan 10, 2025
1 parent 191a106 commit be0072d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies = [
"sphinx >= 6.0,<9.0",
"sphinx-basic-ng >= 1.0.0.beta2",
"pygments >= 2.7",
"accessible-pygments >= 0.0.5",
]

license = { file = "LICENSE" }
Expand Down
2 changes: 1 addition & 1 deletion src/furo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def setup(app: sphinx.application.Sphinx) -> Dict[str, Any]:
app.require_sphinx("6.0")

app.add_config_value(
"pygments_dark_style", default="native", rebuild="env", types=[str]
"pygments_dark_style", default="a11y-dark", rebuild="env", types=[str]
)

app.add_html_theme("furo", str(THEME_PATH))
Expand Down
2 changes: 1 addition & 1 deletion src/furo/theme/furo/theme.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[theme]
inherit = basic-ng
stylesheet = styles/furo.css
pygments_style = tango
pygments_style = a11y-light
# sidebar-start
sidebars =
sidebar/brand.html,
Expand Down

0 comments on commit be0072d

Please sign in to comment.