HugoStarter

loficode-hugo-theme — Hugo Starter Template

By madebydia

LofiCode is a Hugo blog theme with a lo-fi retro visual style, featuring an ambient sound player, light/dark mode toggle, live search, and table of contents, suitable for personal developers or creators building an atmospheric blog.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

3 previews
Desktop homepage1 / 3
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 3

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-03View source

What stands out

A quick read of the recorded project description.

01

Built-in ambient sound player with cafe, rain, and fireplace sound effects, toggleable and volume-adjustable

02

Automatic light/dark mode detection with manual switching

03

Site-wide live search and automatic table of contents generation

04

Code block syntax highlighting with copy function, reading time shown with coffee cup icons

05

SPA-style page navigation, mobile-first responsive layout

06

Supports GitHub, Twitter/X, LinkedIn, Email, Mastodon, YouTube, Instagram, Facebook social links

Template Details

LofiCode is a Hugo theme released by author @madebydia, positioned as a blog template for developers and creators. Visually, it uses warm gradients, retro typography, and subtle animations to create a lo-fi atmosphere; functionally, it offers automatic light/dark mode detection and manual switching, site-wide live search, automatic table of contents generation, code block highlighting and copying, reading time indicated by coffee cups, and SPA-style page navigation. The theme includes an ambient sound player with three sound effects: cafe, rain, and fireplace, which can be toggled and volume-adjusted via a bottom control bar. The content structure is based on the content directory with home, about, contact, and posts article directories, supporting front matter settings for subtitle, tags, featured flag, and mood badge, and provides a coffee-break shortcode for inserting break reminder blocks in the body. Social links support GitHub, Twitter/X, LinkedIn, Email, Mastodon, YouTube, Instagram, and Facebook, displaying only configured platforms. The theme uses CSS custom properties for color management, which can be overridden in custom CSS. Development and building require Hugo Extended 0.112.0 or higher, and the README also lists Node.js as a development tool dependency. The theme code is MIT licensed, but the built-in ambient sounds are from Freesound, using Creative Commons 0 and Attribution 4.0 licenses respectively; demo images, fonts, icons, and other third-party assets need separate license verification.

HugoLauncher

Is it right for your project?

Use Cases

  • Building a personal tech blog with a lo-fi retro atmosphere
  • Creating a personal site with about and contact pages for developers or creators
  • Providing ambient sound and light/dark toggle on reading pages for an immersive reading experience
  • Publishing technical content that requires live search, table of contents, and code highlighting

Suitable For

  • Developers using Hugo who want to quickly apply a ready-made blog theme
  • Personal bloggers or creators who prefer a retro lo-fi visual style
  • Static sites needing front-end features like ambient sound player, light/dark mode, and live search
  • Users who can verify third-party asset licenses and adjust color schemes themselves

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Clone the repository or add it as a Git submodule to the themes/loficode directory of your Hugo site

  2. 2

    Set theme = "loficode" in hugo.toml, and configure params.author, params.profile, params.social, and menu.main as needed

  3. 3

    Create posts with hugo new posts/my-first-post.md, and preview locally with hugo server -D

  4. 4

    The build environment requires Hugo Extended 0.112.0 or higher; the README also lists Node.js as a development tool dependency

  5. 5

    The theme code is MIT licensed, but the built-in ambient sounds are from Freesound (CC0 and Attribution 4.0); demo images, fonts, icons, and other third-party assets need license verification per their respective terms

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license in the public repository; the free scope is the code of this version, not external services or third-party assets.

Must comply with when using

  • Free use, modification, commercial use, and distribution of this version's code are permitted.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as-is; warranties and liability limitations are governed by the original license and applicable law.

Additional costs & items to verify

  • The built-in ambient sound effects are not under the MIT license but use Creative Commons 0 and Attribution 4.0 licenses respectively. If redistributing or commercially using these audio files, comply with the corresponding CC terms; Attribution 4.0 requires crediting the original author.
  • The Fire.wav fireplace sound effect is provided by TheBoatman under CC Attribution 4.0; attribution to the original author must be retained when used, and it cannot be treated solely under the MIT license.
  • The Cafe 1 cafe sound effect is provided by Rylius under CC Attribution 4.0; attribution to the original author must be retained when used, and it cannot be treated solely under the MIT license.
  • Building and running require Hugo Extended 0.112.0 or higher; the standard Hugo version may not build this theme properly.
  • The README lists Node.js as a development tool dependency; if related development tools are needed, a Node.js environment must be installed separately.
  • Demo images, fonts, icons, and other third-party assets need license verification per their respective terms; they cannot be judged solely by the code's MIT license.
  • External services such as domain, hosting, database, payment, or AI may incur additional charges.
View Original Text Basis

Permission is hereby granted, free of charge

Original License Text

The ambient sounds included with this theme are provided under Creative Commons licenses:

Original README

- **Fire.wav** by TheBoatman - [Freesound](https://freesound.org/s/347706/) - License: Attribution 4.0

Original README

- **Cafe 1** by Rylius - [Freesound](https://freesound.org/s/165280/) - License: Attribution 4.0

Original README

- Hugo Extended v0.112.0 or later

Original README

- Node.js (for development tools)

Original README
https://github.com/madebydia/loficode-hugo-theme/blob/main/LICENSEhttps://github.com/madebydia/loficode-hugo-theme/blob/main/README.md

Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
Hugo Themes
Documentation and maintenance reference score
More documented · 87 / 100
Technologies
Hugo
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2026-06-25
Screenshot last checked
2026-10-03

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Hugo as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: [email protected] · 2026-10-04

Inspect the recorded source material

SHA-256: 6e6f9b49a59fcba7a3bc994e86d9f9a991701af04e04b6aa874a3b8fa224b13e

2026-10-03T20:33:31.985Z

Source file / repository
# LofiCode Hugo Theme

Built by [@madebydia](https://x.com/madebydia)

A cozy, lo-fi inspired Hugo theme perfect for developers and creatives who want to create a warm, inviting blog with a retro aesthetic and modern functionality.

![LofiCode Theme Screenshot](https://raw.githubusercontent.com/madebydia/loficode-hugo-theme/main/images/screenshot.png)

## ✨ Features

- **🎵 Ambient Sounds**: Built-in ambient sound player with coffee shop, rain, and fireplace sounds
- **🌙 Dark/Light Mode**: Automatic theme detection with manual toggle
- **📱 Fully Responsive**: Beautiful on all devices from mobile to desktop
- **🔍 Live Search**: Real-time search functionality across all posts
- **📖 Table of Contents**: Auto-generated TOC for blog posts
- **🎨 Syntax Highlighting**: Beautiful code blocks with copy functionality
- **☕ Coffee Theme**: Reading time displayed with coffee cups
- **🚀 SPA Navigation**: Smooth single-page app experience
- **♿ Accessible**: WCAG compliant with proper ARIA labels
- **⚡ Performance**: Optimized for speed and SEO

## 🎨 Design Philosophy

LofiCode embraces the cozy, nostalgic feeling of lo-fi aesthetics while maintaining modern web standards. The theme features:

- Warm, gradient backgrounds reminiscent of sunset vaporwave
- Retro-inspired typography with modern readability
- Subtle animations and hover effects
- Coffee-themed reading indicators
- Ambient sound integration for a cozy coding atmosphere

## 🚀 Quick Start

### 1. Install the Theme

```bash
# Clone into your Hugo site's themes directory
git clone https://github.com/madebydia/loficode-hugo-theme.git themes/loficode

# Or add as a Git submodule
git submodule add https://github.com/madebydia/loficode-hugo-theme.git themes/loficode
```

### 2. Configure Your Site

Add the theme to your `hugo.toml`:

```toml
theme = "loficode"

[params]
  description = "Your site description"

  [params.author]
    name = "Your Name"
    image = "images/profile.png"

  # Profile section
  [params.profile]
    name = "Your Name"
    tagline = "Your tagline here"
    photo = "/images/profile.png"

  # Social links - Supported platforms: github, twitter, linkedin, email, mastodon, youtube, instagram, facebook
  [params.social]
    github = "madebydia"
    twitter = "madebydia"
    # linkedin = "your-linkedin-username"
    # email = "[email protected]"
    # mastodon = "https://mastodon.social/@yourusername"
    # youtube = "https://youtube.com/@yourusername"
    # instagram = "your-instagram-username"
    # facebook = "your-facebook-username"

# Navigation menu
[[menu.main]]
  name = "About"
  url = "/about/"
  weight = 10

[[menu.main]]
  name = "Contact"
  url = "/contact/"
  weight = 20
```

### 3. Create Content

```bash
# Create your first post
hugo new posts/my-first-post.md
```

### 4. Run Your Site

```bash
hugo server -D
```

## 📁 Content Structure

```
content/
├── _index.md          # Homepage content
├── about.md           # About page
├── contact.md         # Contact page
└── posts/             # Blog posts
    ├── post-1.md
    └── post-2.md
```

## 🎵 Ambient Sounds

The theme includes three ambient sound options:

- **☕ Coffee Shop**: Gentle café ambience
- **🌧️ Rain**: Soft rain sounds
- **🔥 Fireplace**: Crackling fire

Sounds can be toggled on/off and volume adjusted via the bottom control bar.

## 🔗 Social Links

LofiCode supports multiple social media platforms with beautiful icons. Add any combination of the following to your `hugo.toml`:

### Supported Platforms

- **GitHub** - `github = "madebydia"`
- **Twitter/X** - `twitter = "your-username"`
- **LinkedIn** - `linkedin = "your-linkedin-username"`
- **Email** - `email = "[email protected]"`
- **Mastodon** - `mastodon = "https://mastodon.social/@yourusername"`
- **YouTube** - `youtube = "https://youtube.com/@yourusername"`
- **Instagram** - `instagram = "your-instagram-username"`
- **Facebook** - `facebook = "your-facebook-username"`

### Configuration Example

```toml
[params.social]
  github = "madebydia"
  twitter = "madebydia"
  linkedin = "your-linkedin-username"
  email = "[email protected]"
```

Only the platforms you configure will be displayed. The theme automatically handles the appropriate URL formatting and icons for each platform.

## 🎨 Customization

### Colors and Themes

The theme uses CSS custom properties for easy customization. Override these in your own CSS:

```css
:root {
  --accent-primary: #FF006B;
  --accent-secondary: #00CED1;
  --accent-tertiary: #FF7F50;
  /* ... more variables */
}
```

### Front Matter Options

```yaml
---
title: "Your Post Title"
subtitle: "Optional subtitle"
date: 2025-01-01
tags: ["hugo", "theme", "lofi"]
featured: true  # Highlights the post
mood: "cozy"    # Adds a mood badge
---
```

### Shortcodes

#### Coffee Break

Add cozy breaks in your content:

```markdown
{{< coffee-break title="Take a Break" >}}
Time for a coffee break! ☕ Grab your favorite mug and enjoy a moment of calm.
{{< /coffee-break >}}
```

## 📱 Responsive Design

LofiCode is built mobile-first and looks great on:

- 📱 Mobile phones (320px+)
- 📱 Tablets (768px+)
- 💻 Laptops (1024px+)
- 🖥️ Desktops (1200px+)

## ⚡ Performance

- Optimized CSS with minimal dependencies
- Lazy loading for images
- Efficient JavaScript with no heavy frameworks
- Fast search implementation
- Optimized web fonts

## 🔧 Development

### Prerequisites

- Hugo Extended v0.112.0 or later
- Node.js (for development tools)

### Local Development

```bash
# Clone the repository
git clone https://github.com/madebydia/loficode-hugo-theme.git
cd loficode-hugo-theme

# Install dependencies (if any)
npm install

# Run Hugo server
hugo server -D
```

## 🎵 Sound Credits

The ambient sounds included with this theme are provided under Creative Commons licenses:

- **Soft Rain Loop** by _lynks - [Freesound](https://freesound.org/s/595717/) - License: Creative Commons 0
- **Fire.wav** by TheBoatman - [Freesound](https://freesound.org/s/347706/) - License: Attribution 4.0
- **Cafe 1** by Rylius - [Freesound](https://freesound.org/s/165280/) - License: Attribution 4.0

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

### Development Guidelines

1. Follow the existing code style
2. Test your changes thoroughly
3. Update documentation as needed
4. Ensure accessibility standards are maintained

## 📄 License

This theme is released under the [MIT License](LICENSE).

---

Made with ☕ and 💜 for the Hugo community.
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.

hugo-xmin

hugo-xmin

hugo-xmin is an extremely minimal Hugo theme written by Yihui Xie for template beginners. HTML and CSS total about 140 lines, with no external dependencies, and it uses the MIT license.

Hugo · Starter

hugo-theme-gallery

hugo-theme-gallery

A Hugo Extended photo gallery theme that organizes images with Page Bundles, automatically generating album lists and gallery pages with a Justified layout and PhotoSwipe lightbox.

Hugo · Starter

reveal-hugo

reveal-hugo

reveal-hugo is a Hugo theme that converts Markdown content into Reveal.js-based HTML presentations. It supports slide separation with `---`, shortcodes for fragments, slides, sections, notes, Markdown, and MathJax, and organizes content as root or section presentations with order controlled by weight.

Hugo · Starter

anatole

anatole

Anatole is a minimalistic two-column Hugo theme ported from farbox-theme-Anatole, featuring dark mode, multilingual and RTL support, and optional portfolio, comments, analytics, KaTeX, and Mermaid integrations. It suits personal blogs, portfolios, or documentation sites built with Hugo.

Hugo · Starter

hugo-theme-diary

hugo-theme-diary

A Hugo diary-style theme ported from the Hexo theme Journal, with a grid homepage for essays and daily notes. It supports six languages, dark mode, table-of-contents scroll positioning, reading time, code highlighting, and configurable sidebar, fonts, and colors.

Hugo · Starter

risotto

risotto

risotto is a minimalist, responsive Hugo theme inspired by terminal ricing aesthetics. It uses semantic HTML and pure CSS with no JavaScript, and its layout relies on CSS Grid for native responsiveness without manual breakpoints.

Hugo · Starter