Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 703 Bytes

File metadata and controls

36 lines (24 loc) · 703 Bytes

Add your own CSS rules

To customize the look of your site further, you can customize your CSS stylesheets, as described in the ReadTheDocs Docs.

First, create a CSS file and place it in _static/custom.css. An example CSS file to change the color of the top-level headers might look like this.

h1 {
    color: #003B71 !important;
}

You also need these two lines in your conf.py file


````{tab-item} conf.py
:sync: conf.py

```python
html_static_path = ["_static"]
html_css_files = ["custom.css"]
```

````

````{tab-item} _config.yml
:sync: _config.yml

Not needed for Jupyter Book.

````