mkdocs-sorrow-theme 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. mkdocs_sorrow_theme-0.1.0/.gitignore +4 -0
  2. mkdocs_sorrow_theme-0.1.0/LICENSE +22 -0
  3. mkdocs_sorrow_theme-0.1.0/PKG-INFO +105 -0
  4. mkdocs_sorrow_theme-0.1.0/README.md +84 -0
  5. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/404.html +12 -0
  6. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/__init__.py +0 -0
  7. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/css/bootstrap.min.css +6 -0
  8. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/css/bootstrap.min.css.map +1 -0
  9. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/css/mkdocs.min.css +2 -0
  10. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/css/sorrow-highlight.css +150 -0
  11. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/css/sorrow-ui.css +2710 -0
  12. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/css/sorrow.css +132 -0
  13. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/img/favicon.ico +0 -0
  14. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/js/bootstrap.bundle.min.js +7 -0
  15. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/js/bootstrap.bundle.min.js.map +1 -0
  16. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/js/jquery-3.3.1.slim.min.js +2 -0
  17. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/assets/js/mkdocs.js +1 -0
  18. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/base.html +95 -0
  19. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/main.html +1 -0
  20. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/mkdocs_theme.yml +10 -0
  21. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/content.html +5 -0
  22. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/dropdown-menu.html +25 -0
  23. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/header.html +44 -0
  24. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/menu.html +29 -0
  25. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/preview.html +22 -0
  26. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/sidebar.html +40 -0
  27. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/modules/source.html +33 -0
  28. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/search.html +22 -0
  29. mkdocs_sorrow_theme-0.1.0/mkdocs_sorrow_theme/searchbox.html +6 -0
  30. mkdocs_sorrow_theme-0.1.0/pyproject.toml +36 -0
@@ -0,0 +1,4 @@
1
+ site/
2
+ .venv/
3
+ dist/
4
+ __pycache__/
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Muhamad Salman
4
+ Copyright (c) 2024 Dracula Theme
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.5
2
+ Name: mkdocs-sorrow-theme
3
+ Version: 0.1.0
4
+ Summary: MkDocs theme in the Omarchy Sorrow palette
5
+ Project-URL: Homepage, https://github.com/MHS-20/sorrow-mkdocs-theme
6
+ Project-URL: Repository, https://github.com/MHS-20/sorrow-mkdocs-theme
7
+ Project-URL: Issues, https://github.com/MHS-20/sorrow-mkdocs-theme/issues
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: dark,mkdocs,mkdocs-theme,omarchy,sorrow,theme
11
+ Classifier: Environment :: Web Environment
12
+ Classifier: Framework :: MkDocs
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Documentation
16
+ Classifier: Topic :: Software Development :: Documentation
17
+ Classifier: Topic :: Text Processing :: Markup :: HTML
18
+ Requires-Python: >=3.9
19
+ Requires-Dist: mkdocs<2,>=1.6.1
20
+ Description-Content-Type: text/markdown
21
+
22
+ <p align="center">
23
+ <img src="https://raw.githubusercontent.com/MHS-20/sorrow-mkdocs-theme/main/assets/sorrow-title.png" alt="Sorrow" width="600">
24
+ </p>
25
+
26
+ <p align="center">
27
+ <a href="https://pypi.org/project/mkdocs-sorrow-theme/"><img src="https://img.shields.io/pypi/v/mkdocs-sorrow-theme" alt="PyPI version"></a>
28
+ </p>
29
+
30
+ # mkdocs-sorrow-theme
31
+
32
+ An MkDocs theme in the palette inspired from Omarchy **Solitude** theme. It is based on
33
+ the [Dracula theme for MkDocs](https://github.com/dracula/mkdocs): it keeps
34
+ Dracula's layout and replaces its colors and code highlighting.
35
+
36
+ <p align="center">
37
+ <img src="https://raw.githubusercontent.com/MHS-20/sorrow-mkdocs-theme/main/assets/screenshot.png" alt="Sorrow theme screenshot" width="800">
38
+ </p>
39
+
40
+ ## Install
41
+
42
+ ```sh
43
+ pip install mkdocs-sorrow-theme
44
+ ```
45
+
46
+ Then, in `mkdocs.yml`:
47
+
48
+ ```yaml
49
+ theme:
50
+ name: sorrow
51
+ favicon: assets/favicon.ico # optional; defaults to the Sorrow icon
52
+ logo: assets/logo.png # optional sidebar logo
53
+ ```
54
+
55
+ `highlightjs` (default `true`) and `hljs_languages` control highlight.js.
56
+ There is no footer and no option to load other highlight styles.
57
+
58
+ ## How it works
59
+
60
+ The Dracula templates and layout assets are copied into this package rather
61
+ than inherited with `extends: dracula`, because MkDocs copies every file of a
62
+ parent theme into the built site. Copying lets the theme leave out Dracula's
63
+ highlight stylesheet, logo, favicon, footer and color tokens.
64
+
65
+ - `base.html` and `modules/`: Dracula's templates. The sidebar divider uses
66
+ the sidebar color, the favicon defaults to the Sorrow icon, and
67
+ the footer is removed. CSS classes use the prefix `sorrow-` instead of
68
+ `drac-`.
69
+ - `assets/css/sorrow-ui.css`, `assets/css/mkdocs.min.css`: Dracula's
70
+ stylesheets without its color tokens; admonition tints read the tokens.
71
+ - `assets/css/sorrow.css`: the color tokens.
72
+ - `assets/css/sorrow-highlight.css`: highlight.js colors following Omarchy's
73
+ syntax mapping (`default/themed/helix.toml.tpl`).
74
+
75
+ ## Palette
76
+
77
+ | Token | Sorrow key | Color |
78
+ | --- | --- | --- |
79
+ | `--black` (sidebar, code) | `dark_background` | `#0c0e10` |
80
+ | `--blackSecondary` (page) | `background` | `#101315` |
81
+ | `--greyTernary` (text) | `foreground` | `#cacccc` |
82
+ | `--white` | `yellow` | `#d9dbdc` |
83
+ | `--grey` | `selection` | `#3d1621` |
84
+ | `--greySecondary` | `muted` | `#4b4e55` |
85
+ | `--purple` | `accent` | `#7a1a2c` |
86
+ | `--cyan` | `cyan` | `#943a4c` |
87
+ | `--green` | `green` | `#9fa5a9` |
88
+ | `--orange` | `bright_yellow` | `#c9c2b4` |
89
+ | `--pink` | `magenta` | `#a8495b` |
90
+ | `--red` | `bright_red` | `#a82a3c` |
91
+ | `--yellow` | `yellow` | `#d9dbdc` |
92
+
93
+ The four reds are darker than the Sorrow originals. Lighter and translucent
94
+ variants are derived with `color-mix()`.
95
+
96
+ ## Develop
97
+
98
+ ```sh
99
+ uv venv && uv pip install -e .
100
+ uv run mkdocs serve
101
+ ```
102
+
103
+ ## Credits
104
+
105
+ Released under the MIT License. Built on the MIT-licensed [Dracula theme for MkDocs](https://github.com/dracula/mkdocs).
@@ -0,0 +1,84 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/MHS-20/sorrow-mkdocs-theme/main/assets/sorrow-title.png" alt="Sorrow" width="600">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <a href="https://pypi.org/project/mkdocs-sorrow-theme/"><img src="https://img.shields.io/pypi/v/mkdocs-sorrow-theme" alt="PyPI version"></a>
7
+ </p>
8
+
9
+ # mkdocs-sorrow-theme
10
+
11
+ An MkDocs theme in the palette inspired from Omarchy **Solitude** theme. It is based on
12
+ the [Dracula theme for MkDocs](https://github.com/dracula/mkdocs): it keeps
13
+ Dracula's layout and replaces its colors and code highlighting.
14
+
15
+ <p align="center">
16
+ <img src="https://raw.githubusercontent.com/MHS-20/sorrow-mkdocs-theme/main/assets/screenshot.png" alt="Sorrow theme screenshot" width="800">
17
+ </p>
18
+
19
+ ## Install
20
+
21
+ ```sh
22
+ pip install mkdocs-sorrow-theme
23
+ ```
24
+
25
+ Then, in `mkdocs.yml`:
26
+
27
+ ```yaml
28
+ theme:
29
+ name: sorrow
30
+ favicon: assets/favicon.ico # optional; defaults to the Sorrow icon
31
+ logo: assets/logo.png # optional sidebar logo
32
+ ```
33
+
34
+ `highlightjs` (default `true`) and `hljs_languages` control highlight.js.
35
+ There is no footer and no option to load other highlight styles.
36
+
37
+ ## How it works
38
+
39
+ The Dracula templates and layout assets are copied into this package rather
40
+ than inherited with `extends: dracula`, because MkDocs copies every file of a
41
+ parent theme into the built site. Copying lets the theme leave out Dracula's
42
+ highlight stylesheet, logo, favicon, footer and color tokens.
43
+
44
+ - `base.html` and `modules/`: Dracula's templates. The sidebar divider uses
45
+ the sidebar color, the favicon defaults to the Sorrow icon, and
46
+ the footer is removed. CSS classes use the prefix `sorrow-` instead of
47
+ `drac-`.
48
+ - `assets/css/sorrow-ui.css`, `assets/css/mkdocs.min.css`: Dracula's
49
+ stylesheets without its color tokens; admonition tints read the tokens.
50
+ - `assets/css/sorrow.css`: the color tokens.
51
+ - `assets/css/sorrow-highlight.css`: highlight.js colors following Omarchy's
52
+ syntax mapping (`default/themed/helix.toml.tpl`).
53
+
54
+ ## Palette
55
+
56
+ | Token | Sorrow key | Color |
57
+ | --- | --- | --- |
58
+ | `--black` (sidebar, code) | `dark_background` | `#0c0e10` |
59
+ | `--blackSecondary` (page) | `background` | `#101315` |
60
+ | `--greyTernary` (text) | `foreground` | `#cacccc` |
61
+ | `--white` | `yellow` | `#d9dbdc` |
62
+ | `--grey` | `selection` | `#3d1621` |
63
+ | `--greySecondary` | `muted` | `#4b4e55` |
64
+ | `--purple` | `accent` | `#7a1a2c` |
65
+ | `--cyan` | `cyan` | `#943a4c` |
66
+ | `--green` | `green` | `#9fa5a9` |
67
+ | `--orange` | `bright_yellow` | `#c9c2b4` |
68
+ | `--pink` | `magenta` | `#a8495b` |
69
+ | `--red` | `bright_red` | `#a82a3c` |
70
+ | `--yellow` | `yellow` | `#d9dbdc` |
71
+
72
+ The four reds are darker than the Sorrow originals. Lighter and translucent
73
+ variants are derived with `color-mix()`.
74
+
75
+ ## Develop
76
+
77
+ ```sh
78
+ uv venv && uv pip install -e .
79
+ uv run mkdocs serve
80
+ ```
81
+
82
+ ## Credits
83
+
84
+ Released under the MIT License. Built on the MIT-licensed [Dracula theme for MkDocs](https://github.com/dracula/mkdocs).
@@ -0,0 +1,12 @@
1
+ {% extends "base.html" %}
2
+
3
+ {% block content %}
4
+ <section class="p-md-5 section-content">
5
+ <article>
6
+ <p></p>
7
+ <h1>404</h1>
8
+ <hr>
9
+ <p><strong>Page not found</strong></p>
10
+ </article>
11
+ </section>
12
+ {% endblock %}