Built by @meimakes
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.
- π΅ 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
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
# Clone into your Hugo site's themes directory
git clone https://github.com/meimakes/loficode-hugo-theme.git themes/loficode
# Or add as a Git submodule
git submodule add https://github.com/meimakes/loficode-hugo-theme.git themes/loficodeAdd the theme to your hugo.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 = "meimakes"
twitter = "meimakes"
# linkedin = "your-linkedin-username"
# email = "your-email@example.com"
# 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# Create your first post
hugo new posts/my-first-post.mdhugo server -Dcontent/
βββ _index.md # Homepage content
βββ about.md # About page
βββ contact.md # Contact page
βββ posts/ # Blog posts
βββ post-1.md
βββ post-2.md
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.
LofiCode supports multiple social media platforms with beautiful icons. Add any combination of the following to your hugo.toml:
- GitHub -
github = "your-username" - Twitter/X -
twitter = "your-username" - LinkedIn -
linkedin = "your-linkedin-username" - Email -
email = "your-email@example.com" - Mastodon -
mastodon = "https://mastodon.social/@yourusername" - YouTube -
youtube = "https://youtube.com/@yourusername" - Instagram -
instagram = "your-instagram-username" - Facebook -
facebook = "your-facebook-username"
[params.social]
github = "meimakes"
twitter = "meimakes"
linkedin = "your-linkedin-username"
email = "contact@example.com"Only the platforms you configure will be displayed. The theme automatically handles the appropriate URL formatting and icons for each platform.
The theme uses CSS custom properties for easy customization. Override these in your own CSS:
:root {
--accent-primary: #FF006B;
--accent-secondary: #00CED1;
--accent-tertiary: #FF7F50;
/* ... more variables */
}---
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
---Add cozy breaks in your content:
{{< coffee-break title="Take a Break" >}}
Time for a coffee break! β Grab your favorite mug and enjoy a moment of calm.
{{< /coffee-break >}}LofiCode is built mobile-first and looks great on:
- π± Mobile phones (320px+)
- π± Tablets (768px+)
- π» Laptops (1024px+)
- π₯οΈ Desktops (1200px+)
- Optimized CSS with minimal dependencies
- Lazy loading for images
- Efficient JavaScript with no heavy frameworks
- Fast search implementation
- Optimized web fonts
- Hugo Extended v0.112.0 or later
- Node.js (for development tools)
# Clone the repository
git clone https://github.com/meimakes/loficode-hugo-theme.git
cd loficode-hugo-theme
# Install dependencies (if any)
npm install
# Run Hugo server
hugo server -DThe ambient sounds included with this theme are provided under Creative Commons licenses:
- Soft Rain Loop by _lynks - Freesound - License: Creative Commons 0
- Fire.wav by TheBoatman - Freesound - License: Attribution 4.0
- Cafe 1 by Rylius - Freesound - License: Attribution 4.0
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.
- Follow the existing code style
- Test your changes thoroughly
- Update documentation as needed
- Ensure accessibility standards are maintained
This theme is released under the MIT License.
Made with β and π for the Hugo community.