Zensical Docs Theme
This theme provides a pre-built solution for documenting any Drupal project, using Drupal's official colors and fonts. It supports dark mode, social media link previews, and multilingual content, with an option for image galleries and slideshows. The theme can be easily integrated into your project and deployed using GitLab Pages, ensuring your documentation looks professional and accessible.
A ready-made theme for the documentation of any project on drupal.org, built with Zensical and published with GitLab Pages on git.drupalcode.org. Copy it into your repository, replace four placeholders, write your pages in Markdown, push – and your project has documentation in Drupal colours.
It started as the documentation theme of Default Content Locale Extended and the Drupal CMS German Installer. See it in action: dcle documentation, dcgi documentation.
Features
- Drupal colours and typefaces: Drupal Blue, Dark Blue, Navy and Yellow, Noto Sans and Outfit. Contrast meets WCAG AA.
- Dark mode without a light flash: the preferred colour scheme applies before the first paint.
- Link previews for Facebook, Mastodon, LinkedIn and others: Open Graph and Twitter tags, a preview image per page if you like, and a script that renders preview images in the same design.
- English and German with a language selector that leads to the same page in the other language. One language works too.
- Screenshots, galleries and slideshows with a lightbox: keyboard, buttons and swipe; works without JavaScript as a plain gallery.
- GitLab Pages job for a project of its own, or for a module or theme that includes the Drupal GitLab CI templates – with the settings that keep CSpell, ESLint and Stylelint away from the documentation.
- No third-party requests: the typefaces are downloaded at build time and served with the documentation.
Getting started
- Download the repository and copy its files into the root of your project.
- Replace
PROJECT_NAME,PROJECT_SLUG,BRANCHandPAGES_DOMAINin the configuration. - Write your pages in
docs/en/anddocs/de/. - Build locally with
bash scripts/build-docs.sh, then push.
The README (English) and README.de.md (German) explain every step, including how to add the theme to an existing module or theme without breaking its pipeline.
Requirements
- Python 3 and
pip install zensical - For the preview images: Playwright
- A project on drupal.org (for GitLab Pages)
License and trademark
The code is licensed under the GPL, version 2 or later, like Drupal itself. The Drupal drop used as the logo of the documentation is a trademark of Dries Buytaert; see the Drupal trademark policy. The typefaces Noto Sans and Outfit are licensed under the SIL Open Font License and are not part of the repository.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | First release: Drupal-styled Zensical documentation with dark mode, link previews, EN/DE and GitLab Pages. | Oct 2, 2026 |