Skip to main content

A clean, modern MkDocs theme built with TailwindCSS and Doom One dark mode

Project description

mkdocs-cwd

A clean, modern MkDocs theme built with TailwindCSS. Features a Doom One dark mode, full-text search, responsive layout, and BEM-structured CSS.

Features

  • TailwindCSS via Play CDN with custom color palette
  • Doom One dark mode — toggle with button, respects system preference, persisted in localStorage
  • Full-text search — lunr.js powered, Ctrl+K / Cmd+K shortcut, keyboard navigation, highlighted snippets
  • Responsive — collapsible sidebar on mobile, three-column layout on desktop (sidebar / content / table of contents)
  • Table of contents — right sidebar with scroll-spy highlighting
  • Prev / Next navigation between pages
  • Syntax highlighting — highlight.js with GitHub Light / Atom One Dark themes
  • Inter + JetBrains Mono fonts
  • BEM-structured CSS — all styles use Block Element Modifier naming, no inline utility classes

Installation

pip install mkdocs-cwd

Usage

Set the theme in your mkdocs.yml:

site_name: My Docs
theme:
  name: cwd

plugins:
  - search

The search plugin is required for the search modal to work.

Dark mode

Dark mode uses the Doom One color palette from Doom Emacs. It toggles via:

  • The moon/sun button in the header
  • System preference (prefers-color-scheme: dark)
  • Persisted in localStorage across sessions

Color reference

Role Light Dark (Doom One)
Background #ffffff #282c34
Elevated surface #f8fafc #23272e
Border #e2e8f0 #3f444a
Body text #475569 #bbc2cf
Muted text #94a3b8 #5B6268
Headings #0f172a #DFDFDF
Links #4f46e5 #51afef
Inline code #4338ca #4db5bd
Highlights #e0e7ff #ECBE7B

Customization

Override any template by creating a custom_dir alongside the theme:

theme:
  name: cwd
  custom_dir: overrides/

Then place partial templates in overrides/ to extend or replace blocks.

Development

git clone https://github.com/catwatchdog/mkdocs-cwd.git
cd mkdocs-cwd
pip install -e .

Screenshot

mkdocs-cwd screenshot.jpeg

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_cwd-0.1.3.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_cwd-0.1.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_cwd-0.1.3.tar.gz.

File metadata

  • Download URL: mkdocs_cwd-0.1.3.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mkdocs_cwd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1b9634e10a7a585e24445ca5e619361e159f8d09aab6350d011203862d399afa
MD5 c86985eb9fe69a472c7b7521dc03971e
BLAKE2b-256 4098c70f961f08729031faef206a0e2654f4b5f27c1a71a44d5ef89d69a772c1

See more details on using hashes here.

File details

Details for the file mkdocs_cwd-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_cwd-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mkdocs_cwd-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8390f1e212ed042fa89bb2e838a03a61540dec4202777797d0a742824e02e15
MD5 cf178a996601f3251f4272e3f677e055
BLAKE2b-256 10132824789ecbaf2edc8308edd9f4436a08b1aca4f2780271a79a6aa6103a6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page