mkdocs-sorrow-theme
An MkDocs theme in the palette inspired from Omarchy Solitude theme. It is based on the Dracula theme for MkDocs: it keeps Dracula's layout and replaces its colors and code highlighting.
Install
pip install mkdocs-sorrow-theme
Then, in mkdocs.yml:
theme:
name: sorrow
favicon: assets/favicon.ico # optional; defaults to the Sorrow icon
logo: assets/logo.png # optional sidebar logo
highlightjs (default true) and hljs_languages control highlight.js.
There is no footer and no option to load other highlight styles.
How it works
The Dracula templates and layout assets are copied into this package rather
than inherited with extends: dracula, because MkDocs copies every file of a
parent theme into the built site. Copying lets the theme leave out Dracula's
highlight stylesheet, logo, favicon, footer and color tokens.
base.htmlandmodules/: Dracula's templates. The sidebar divider uses the sidebar color, the favicon defaults to the Sorrow icon, and the footer is removed. CSS classes use the prefixsorrow-instead ofdrac-.assets/css/sorrow-ui.css,assets/css/mkdocs.min.css: Dracula's stylesheets without its color tokens; admonition tints read the tokens.assets/css/sorrow.css: the color tokens.assets/css/sorrow-highlight.css: highlight.js colors following Omarchy's syntax mapping (default/themed/helix.toml.tpl).
Palette
| Token | Sorrow key | Color |
|---|---|---|
--black (sidebar, code) |
dark_background |
#0c0e10 |
--blackSecondary (page) |
background |
#101315 |
--greyTernary (text) |
foreground |
#cacccc |
--white |
yellow |
#d9dbdc |
--grey |
selection |
#3d1621 |
--greySecondary |
muted |
#4b4e55 |
--purple |
accent |
#7a1a2c |
--cyan |
cyan |
#943a4c |
--green |
green |
#9fa5a9 |
--orange |
bright_yellow |
#c9c2b4 |
--pink |
magenta |
#a8495b |
--red |
bright_red |
#a82a3c |
--yellow |
yellow |
#d9dbdc |
The four reds are darker than the Sorrow originals. Lighter and translucent
variants are derived with color-mix().
Develop
uv venv && uv pip install -e .
uv run mkdocs serve
Credits
Released under the MIT License. Built on the MIT-licensed Dracula theme for MkDocs.
Metadata
Release files for mkdocs-sorrow-theme 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_sorrow_theme-0.1.0.tar.gz | 276.6 kB | Without provenance | Details for mkdocs_sorrow_theme-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_sorrow_theme-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_sorrow_theme-0.1.0-py3-none-any.whl |
Total release size: 561.4 kB
Release files / mkdocs_sorrow_theme-0.1.0.tar.gz
| Download URL | mkdocs_sorrow_theme-0.1.0.tar.gz |
|---|---|
| Size | 276.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09a13c543e5519405ef686b7a2d16cc5e5a3cf978a9d097292dc45d908c618a6
|
|
BLAKE2b-256 checksum How to use checksums |
8ccd869308aeb531f825f161df416111e1e4e23053c1238d22f7e2425d1c4a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.0.r7665.g54abf72","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mkdocs_sorrow_theme-0.1.0-py3-none-any.whl
| Download URL | mkdocs_sorrow_theme-0.1.0-py3-none-any.whl |
|---|---|
| Size | 284.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a789dcb87d8646510b3a3d1e6e876720dd70e6d1faac8e0c6a9e946db9044aa
|
|
BLAKE2b-256 checksum How to use checksums |
d8b3453e675f795d4dbfc420411dd6662e8d51714fa84ffab69d278dad528d9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.0.r7665.g54abf72","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for mkdocs-sorrow-theme 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.