Open-source project
panr/hugo-theme-terminal avatar
panr/hugo-theme-terminal

hugo-theme-terminal has three install routes, and two of them ignore the v4 tag

A simple, retro theme for Hugo

2,833 stars864 forksCSSMIT

At a glance

What is it?
A retro Hugo theme whose palette comes from a separate Terminal.css generator and whose highlighting runs through Chroma with classes instead of inline styles. The Hugo Module route pins the v4 path while the clone and submodule routes take the default branch, package.json is six patch releases behind the newest tag, and the test script prints Test.
Who is it for?
Adopt hugo-theme-terminal if you want a retro Hugo theme whose palette is generated by Terminal.css, whose monospaced font is Fira Code, and whose highlighting runs through Chroma with classes rather than inline styles, and you are willing to commit a go.sum.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 64 days ago.
What is it written in?
Mainly CSS, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • panr/hugo-theme-terminal2,833 ★ · +19
Star history
Repository2026-10-042026-11-24
panr/hugo-theme-terminal2.8k2.8k

19 Stars in the last 51 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The module route pins v4, and the two git routes do not

There are three ways to install the theme, plus a manual download into `themes/terminal`. Only one of them names a version.

As a Hugo Module:

bash
# If this is the first time you're using Hugo Modules
# in your project. You have to initiate your own module before
# you fetch the theme module.
#
# hugo mod init [your website/module name]
hugo mod get github.com/panr/hugo-theme-terminal/v4

plus a `[[module.imports]]` entry in the config file pointing at the same `/v4` path.

As a local directory:

bash
git clone https://github.com/panr/hugo-theme-terminal.git themes/terminal

As a git submodule:

bash
git submodule add -f https://github.com/panr/hugo-theme-terminal.git themes/terminal

The module route is the only one that resolves a major version. The two git routes take whatever the default branch holds at that moment, which is the branch called master. So the three routes can hand you three different trees, and nothing on the page says the default branch is kept in step with the v4 line.

The module route has a second consequence worth knowing: the theme does not appear in your `themes` directory at all. You get the code as it was when you fetched it, and your local `go.sum` holds the references. That is why the configuration keys differ between the routes.

The module "terminal" not found error has a one-line fix

The failure mode between the routes is documented with its exact text:

bash
Error: module "terminal" not found; either add it as a Hugo Module or store it in "[...your custom path]/themes".: module does not exist

The fix is to remove `theme = "terminal"` from the config file.

That is not arbitrary. The key is what tells Hugo where to find a theme on disk, so it is required for the clone and submodule routes and wrong for the module route, where the theme is resolved through `[[module.imports]]` instead. The configuration example on the page says the same thing in a comment: add the key only if you keep the theme in the `themes` directory, and remove it if you use the theme as a remote Hugo Module.

Serving the site is then one command:

bash
hugo server -t terminal

with `localhost:1313` in the browser. The `-t` flag names the theme, and the page notes that changes go live from then on, so a browser refresh is not needed after each edit.

The theme states its own version requirement twice, in a warning at the top and again in the install section: at least Hugo Extended v0.90.x. Extended is the build with SCSS support, so a standard Hugo binary is the usual reason this theme will not render as documented.

noClasses = false is the switch the colour scheme hangs on

One configuration key carries the whole visual layer:

toml
baseurl = "/"
languageCode = "en-us"
# Add it only if you keep the theme in the `themes` directory.
# Remove it if you use the theme as a remote Hugo Module.
theme = "terminal"
pagination.pagerSize = 5

# Required for Chroma and the custom syntax highlighting.
[markup.highlight]
  noClasses = false

[params]

The comment marks `noClasses = false` as required for Chroma and the custom syntax highlighting, and the reason is mechanical. Hugo emits inline styles for highlighted code by default, which a stylesheet cannot override without fighting specificity. With classes instead, the theme's own duotone stylesheet can colour the tokens.

Everything else visual follows from separate pieces. Colour schemes are fully customisable and are generated by Terminal.css, a separate project with its own generator page. The default monospaced font is Fira Code. Highlighting itself is Chroma-based, described on the page as Chroma, Hugo's fast built-in highlighter, and the supported language list is Chroma's own. The theme is also described as fully responsive.

So the theme is really three independent parts: a palette generator, a font choice, and a class-based Chroma stylesheet. A site that gets one of them wrong can still override it without touching the others.

Two shortcodes, and one of them contains a media query that is not CSS

The built-in shortcodes are `image` and `code`, and both take positional-looking named properties.

`image` requires `src` and accepts `alt`, `position`, where left is the default and center and right are the alternatives, and `style`:

go
{{< image src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" >}}

`code` requires `language` and accepts `title` and `open`. Its example embeds a stylesheet, and the example is where the interesting detail is. It contains `@media (--phone)`, which is not valid CSS: a media feature needs a feature name and optionally a value, and `--phone` is a custom media query defined elsewhere, as generated by a build step. The same snippet nests a rule inside another rule, which is SCSS rather than plain CSS.

So the `code` shortcode's demonstration is an SCSS fragment using custom-media syntax, presented inside a block that a reader could reasonably take for plain CSS.

One smaller documentation detail: both shortcode examples are tagged as Go in the README, and Hugo shortcodes are not Go. The tag is harmless, and it is the language Hugo's own documentation uses for shortcode blocks.

The main menu does not nest, and the config example stops mid-word

The configuration section is short by design, with the theme described as requiring no advanced configuration. Two of its keys are documented inline as comments.

`contentTypeName` defaults to `posts` and is the directory name of the main content, which Hugo already defaults to `content/posts`. The list of that content shows up on the index page at `baseurl`. `showMenuItems` defaults to 2, and setting it to 0 leaves only the submenu trigger visible.

And then the limitation, stated as a note after the block: the main menu currently does not support nesting. For a site with a section hierarchy deeper than one level, that is the constraint to check before choosing the theme.

The example block itself ends unfinished. Its last line is the comment `# show selector to switch langua`, with no key, no value and the word cut off. So the page advertises a language switcher in the configuration without providing one.

For content structure, the post archetype is documented by example rather than inline: the default `post` file params are in `archetypes/posts.md` in the repository, and the tree also carries an `exampleSite/` directory, which is the usual place to look for a working configuration rather than the truncated block above.

npm test prints Test, and package.json still says 4.2.0

The npm manifest is where the housekeeping gets interesting, and none of it is load-bearing for a theme whose primary language is CSS.

The version field reads 4.2.0. The newest release tag is v4.2.6, with v4.2.5 and v4.2.4 both published on 2026-08-24. So the manifest in the repository is six patch releases behind its own tags, and the same manifest declares `main` as index.js, a file that is not in the tree listing.

The test script is `"test": "echo 'Test'"`, which prints the word Test and exits. There is no test suite behind it, so a passing test run tells you nothing.

The dependencies are stranger still. The only runtime dependency is `yarn` at ^1.22.10, so a published package would install the package manager as a library. There is also a non-standard `comments` key that maps `yarn`, `browserslist`, `clipboard`, `eslint-config-airbnb`, `eslint-config-prettier`, `eslint-plugin-jsx-a11y` and `husky` to the string `project`, which is not a field npm reads.

And both `package-lock.json` and `yarn.lock` are committed, for one project, alongside two Babel configurations in `.babelrc` and `babel.config.js`, plus `.eslintrc.yml`, `.stylelintrc.json` and `.prettierrc`.

No compilation step, and three partials are the extension points

Editing the theme splits cleanly by install route, and that is the most useful thing the last section tells you.

If the theme is a remote Hugo Module, so you have no theme files at all, you override styles by adding `static/style.css` in your own root directory and pointing the things you want to change at it. If you cloned or submoduled the theme, you edit the files in `themes/terminal` directly, and the page states that no compilation step is needed.

That last point is a consequence of the Hugo Modules split rather than a claim about tooling: the module route is consumed by Hugo as it is, while the git routes hand you plain files and templates.

Three extension points are documented as add-ons, each a partial you override: comments at `layouts/partials/comments.html`, an extended head at `layouts/partials/extended_head.html`, and an extended footer at `layouts/partials/extended_footer.html`. Everything else is a template or an asset in `layouts/` and `assets/`.

The rest of the tree explains the packaging: `theme.toml` for the theme metadata Hugo reads, `package.hugo.json` for the Hugo Modules manifest alongside a separate `package.json`, `go.mod` declaring the module path `github.com/panr/hugo-theme-terminal/v4` on Go 1.19, and `COMMUNITY-FEATURES.md` for community-submitted features. The README's own closing paragraph about ongoing development stops mid-sentence, after the author writes that some features were left out because they want to keep the theme small.

Editorial conclusion

Adopt hugo-theme-terminal if you want a retro Hugo theme whose palette is generated by Terminal.css, whose monospaced font is Fira Code, and whose highlighting runs through Chroma with classes rather than inline styles, and you are willing to commit a go.sum. Do not adopt it assuming the three documented install routes give you the same code: the Hugo Module route pins the /v4 path while the git clone and submodule routes take whatever the default branch holds, and the repository's own package.json is six patch releases behind its newest tag. Verify which route you use and what it resolves to, then confirm you have Hugo Extended 0.90.x or newer, since the theme states that requirement twice and a non-extended build is the usual reason it fails.

Frequently asked questions

What does hugo-theme-terminal require to run?

At least Hugo Extended v0.90.x, a requirement the README states twice. Colour schemes are generated by Terminal.css, Fira Code is the default monospaced font, and syntax highlighting is based on Chroma with `[markup.highlight] noClasses = false` required for the custom highlighting to apply.

How do you install hugo-theme-terminal as a Hugo Module?

Run `hugo mod get github.com/panr/hugo-theme-terminal/v4` and add a `[[module.imports]]` entry with `path = 'github.com/panr/hugo-theme-terminal/v4'` to your config file. If `hugo mod init` has not been run in your project, that has to come first. In this mode the theme does not appear in the themes directory and your local go.sum holds the references.

Why does Hugo report module "terminal" not found?

The error text is `Error: module "terminal" not found; either add it as a Hugo Module or store it in "[...your custom path]/themes".: module does not exist`. The fix is to remove `theme = "terminal"` from your config file, because that key is only for a theme kept in the themes directory.

Does the hugo-theme-terminal main menu support nesting?

No. The README states as a note that the main menu currently does not support nesting. It also documents `showMenuItems`, which defaults to 2 and, if set to 0, leaves only the submenu trigger visible.

Official sources

  1. Issues
  2. License: MIT
  3. panr/hugo-theme-terminal on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/panr-hugo-theme-terminal.svg)](https://hysenlabs.com/projects/panr-hugo-theme-terminal)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/panr-hugo-theme-terminal.svg)](https://hysenlabs.com/projects/panr-hugo-theme-terminal)

Was this useful?