Skip to content

Dracula Theme for MkDocs

Steps

To implement Dracula theme, do the following:

cd docs
mkdir theme
cd theme
mkdir assets
cd assets

Navigate to the mkdocs_pymdownx_material_extras repo and download the following files:

Replace the current fields in mkdocs.yml with the following:

Theme:
    scheme: dracula
    primary: deep purple
    accent: deep purple
custom_dir: <theme root directory>
Plugins:
    - mkdocs_pymdownx_material_extras

Add mkdocs_pymdownx_material_extras>=1.0 to requirements.txt

Run mkdocs serve to confirm the theme works. Once confirmed, run git commit to push to Cloudflare Pages (CI/CD).

References

https://github.com/facelessuser/mkdocs_pymdownx_material_extras

https://github.com/facelessuser/pymdown-extensions/pull/857#issuecomment-602085247