Add beets.css customizing Sphinx theme "pydata"

- Set static path and css file in Sphinx config.
- Codebox style to black/white
- Secondary color to beetroot red
- Inline code color to beetroot green
- Leave primary color (pydata teal), difficult to read with beetroot
  green. Works well with beetroot red actually.
- Leave some notes on colors in beets.css for reference.
This commit is contained in:
J0J0 Todos 2023-10-23 10:42:49 +02:00
parent c1e2b34aa2
commit af6258301c
2 changed files with 15 additions and 0 deletions

12
docs/_static/beets.css vendored Normal file
View file

@ -0,0 +1,12 @@
html[data-theme="light"] {
--pst-color-secondary: #a23632;
}
html[data-theme="light"] {
--pst-color-inline-code: #a23632;
}
/* beetroot red: #a23632 */
/* beetroot green: #1B5801 */
/* beetroot green light: rgb(27, 150, 50) */
/* pydata teal (primary): #126A7E */
/* pydata violet (secondary): #7D0E70 */

View file

@ -66,6 +66,9 @@ html_theme_options = {
"logo": {
"text": "beets",
},
"pygment_light_style": "bw",
}
html_title = "beets"
html_logo = "_static/beets_logo.png"
html_static_path = ['_static']
html_css_files = ['beets.css']