Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimalistic Hugo blog theme built on Tailwind CSS, optimized for Chinese characters and other languages.
Theme Tokiwa is a minimalistic blog theme for the Hugo static site generator, built on Tailwind CSS and optimized for Chinese characters while supporting other languages. It is named after Tokiwa-iro, the main color tone used for the site. The theme was created by heyeshuang and is based on Jim Frenette's Hugo Starter Theme and Tailwind Toolbox's Minimalist-Blog. A live demo is hosted at https://heysh.xyz/hugo-theme-tokiwa/. The source code is available on GitHub and licensed under MIT.
Theme Tokiwa is a Hugo blog theme that takes Markdown content and a hugo.toml configuration and renders a minimalistic blog with a side menu, post list, tags, social links, and fuzzy search. It is built on the Hugo static site generator and styled with Tailwind CSS. The theme is especially designed to render Chinese characters well, using fonts like Noto Serif CN, and includes optional KaTeX math support, Disqus comments, and Google Analytics.
useChineseFonts parameter to load Noto Serif CN and other fonts tuned for CJK typography.npm run dev for unminified output with sourcemaps; npm run build produces minified CSS and JavaScript into the theme's dist folder.bannerFont config parameter lets you set any font for the site title; the exampleSite includes an exampleFont placeholder.disqusShortname, Google Analytics (Universal or GA4) via googleAnalytics, and KaTeX math rendering when math = true.[social] section.hugo mod get.[menu] section.math = true to render LaTeX-style math in KaTeX.bannerFont, toggle Chinese fonts, and configure social media links in the side menu.Install the theme either by adding it as a Git submodule (git submodule add) or as a Hugo module (hugo mod get), then copy the exampleSite configuration into your own hugo.toml. The config file accepts parameters for Disqus, Google Analytics, math support, Chinese fonts, banner font, menu items, and social links. For development, run npm install and npm run dev inside the theme folder; for production, run npm run build.
Yes. Theme Tokiwa is released under the MIT license, so you can use, modify, and redistribute it freely, including for commercial projects.
Yes. Set disqusShortname and googleAnalytics in your hugo.toml, and make sure env = "production" so they load on the live site. Google Analytics v4 identifiers (starting with G-) are supported in Hugo v0.82 and later.
Yes. Although it is especially optimized for Chinese characters, the theme works well with other languages. You can disable the Chinese-specific fonts by setting useChineseFonts = false.
The theme uses fuse.js for fuzzy search. The theme's documentation links to a Chinese blog post explaining how to set it up. The search is client-side and does not require a server.
The banner originally used a free commercial font called 杨任东竹石体, but it was replaced with an exampleFont in the exampleSite to avoid licensing concerns. For Chinese body text, Noto Serif CN is used under the OFL 1.1 license.
