Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A clean, modern Hugo blog theme with Tailwind CSS, dark mode, TOC, code highlighting, and KaTeX support.
Void is a clean, modern Hugo blog theme built with Tailwind CSS, designed for personal blogs with a focus on content presentation and reading experience. It is developed by Daucloud and distributed under the MIT License, with a live example at Daucloud's Blog (https://www.daucloud.com/).
Void is a theme for the Hugo static site generator that transforms Markdown content and TOML configuration into a responsive static website. It ships as a Git repository that you add to your Hugo site via git submodule or direct download, and it provides templates, partials, and Tailwind CSS styling for blog posts, tags, and categories. The theme is built with a Tailwind v4 pipeline processed through Hugo assets, so you can develop with npm run dev and compile CSS with npm run build.
localStorage and respects the system preference when unset, and the theme is applied early enough to avoid a white flash on page load.$...$ and display math with $$...$$ are supported, including common macros such as \E, \Var, \argmax, and \argmin.callout shortcode (and fenced callout syntax) supports types info, tip, warning, danger, and neutral, with titles that accept inline Markdown and math.Void is aimed at personal bloggers and writers who want a distraction-free reading experience. It suits developers and technical bloggers who need highlighted code blocks with copy buttons and a collapsible TOC for long posts. Academics and math-heavy writers can use the KaTeX integration to include equations inline and in display mode, with macros like \argmax and \argmin ready to use. Hugo users who want a minimal, Tailwind-based theme with dark mode and little JavaScript overhead are the primary audience.
\E and \Var.npm run dev for live Tailwind CSS compilation, and editing partials like the header toggle icon size.To use Void, create a Hugo site (hugo new site mysite), add the theme as a git submodule (git submodule add https://github.com/Daucloud/hugo-theme-void themes/void), set theme = "void" in hugo.toml, and run hugo server -D. Configuration options include social links, avatar URL, main menu items with weights, table of contents start/end levels, and enabling raw HTML for KaTeX via markup.goldmark.renderer.unsafe = true. For development, cd themes/void && npm install and then npm run dev watches source files and rebuilds the CSS pipeline.
Yes. The theme is released under the MIT License, so you can use, modify, and redistribute it freely, including in commercial projects.
You can add it as a Git submodule with git submodule add https://github.com/Daucloud/hugo-theme-void themes/void, or download the latest release from the GitHub releases page and extract it into themes/void. Then set theme = "void" in your Hugo configuration.
Yes. A header icon toggles between light and dark modes, and the selection is stored in localStorage. The theme also respects the system color-scheme preference when you have not chosen a mode manually, and it avoids a flash of the wrong theme on initial load.
Yes. Void includes KaTeX support for $...$ inline math and $$...$$ display math, with common macros such as \E, \Var, \argmax, and \argmin predefined. You need to enable raw HTML in the Goldmark renderer to let KaTeX work inside Markdown.
You can adjust configuration in hugo.toml (social links, menu, TOC levels), edit partials such as the header to change the toggle icon size, or modify the Tailwind pipeline. The theme ships a Tailwind v4 setup via Hugo assets; run npm install and npm run dev inside themes/void for live CSS compilation.