A modern, performant Hugo theme designed for parenting blogs, family websites, and lifestyle content. Built with Tailwind CSS and Alpine.js for a beautiful, responsive experience.
- Modern Design: Clean, professional layout with smooth gradients and animations
- Fully Responsive: Mobile-first design that looks great on all devices
- Build-Time Tailwind CSS: Pre-compiled, tree-shaken CSS (~32KB vs ~300KB CDN)
- Alpine.js: Lightweight interactivity for navigation and UI components
- Blog Ready: Full blog support with categories, tags, and author profiles
- SEO Optimized: Schema.org structured data, Open Graph, and Twitter Cards
- Performance Focused: Lazy loading, optimized scroll handlers, CLS prevention
- Customizable Homepage: Data-driven sections (hero, features, resources, CTA)
- Icon Library: Built-in SVG icon partials
cd your-hugo-site/themes
git clone https://github.com/manisuec/sprout-hugo-theme.gitcd your-hugo-site
git submodule add https://github.com/manisuec/sprout-hugo-theme.git themes/sprout-hugo-themeAdd to your hugo.toml:
[module] [[module.imports]] path = "github.com/manisuec/sprout-hugo-theme"
Then run:
hugo mod get -u
The theme uses build-time Tailwind CSS for optimal performance. Install dependencies:
cd themes/sprout-hugo-theme
npm installFor development (watch mode):
npm run watch:css
For production:
npm run build:css
Add the theme to your site's hugo.toml:
theme = "sprout-hugo-theme"
baseURL = "https://example.com" languageCode = "en-us" title = "Your Site Title" theme = "sprout-hugo-theme" [pagination] pagerSize = 6 [params] description = "Your site description" logo = "/images/logo.png" [params.contact] email = "[email protected]" address = "Your Address" [params.socials] facebook = "https://facebook.com/yourpage" twitter = "https://twitter.com/yourhandle" instagram = "https://instagram.com/yourprofile" pinterest = "https://pinterest.com/yourprofile" youtube = "https://youtube.com/@yourchannel" # Optional: Newsletter integration (Mailerlite) [params.mailerlite] apiKey = "your-api-key" groupId = "your-group-id" [taxonomies] tag = "tags" category = "categories" [markup] [markup.tableOfContents] endLevel = 3 ordered = false startLevel = 2 [markup.goldmark] [markup.goldmark.renderer] unsafe = true [menu] [[menu.main]] name = "About" url = "/about" weight = 1 [[menu.main]] name = "Blog" url = "/posts/" weight = 2
The homepage is driven by front matter data:
--- title: "Home" hero: badge: "Your Badge Text" title: prefix: "Your Title" highlight: "Highlighted Part" description: "Your hero description" primaryCta: "Primary Button" secondaryCta: "Secondary Button" trustIndicators: - icon: "shield-check" text: "Expert Verified" - icon: "users" text: "Community Driven" image: main: "https://example.com/image.jpg" alt: "Image description" features: headline: "Features Headline" subheadline: "Features description" items: - title: "Feature 1" description: "Feature description" icon: "baby" - title: "Feature 2" description: "Feature description" icon: "heart" resources: headline: "Resources Headline" subheadline: "Resources description" ctaText: "View All" cta: headline: "CTA Headline" subheadline: "CTA description" ---
--- title: "Your Post Title" date: 2024-01-20 draft: false description: "Post description for SEO and previews" categories: - "Category Name" tags: - tag1 - tag2 titleImage: "https://example.com/featured-image.jpg" author: name: "Author Name" role: "Author Role" avatar: "https://example.com/avatar.jpg" bio: "Author bio" --- Your markdown content here...
--- title: "About Us" layout: "list" badge: "Our Story" subtitle: "Your tagline here" image: "https://example.com/about-image.jpg" values: headline: "Our Values" items: - title: "Value 1" description: "Description" icon: "shield-check" - title: "Value 2" description: "Description" icon: "heart" cta: headline: "Join Our Community" description: "CTA description" buttonText: "Subscribe" --- Your about page content here...
The theme includes these built-in SVG icons (use in front matter):
| Icon | Description |
|---|---|
baby |
Baby/child icon |
brain |
Brain/intelligence icon |
heart |
Heart/love icon |
heart-handshake |
Partnership/support icon |
shield-check |
Verified/secure icon |
stethoscope |
Medical/health icon |
users |
Community/people icon |
utensils-crossed |
Food/nutrition icon |
facebook |
Facebook social icon |
twitter |
Twitter/X social icon |
instagram |
Instagram social icon |
pinterest |
Pinterest social icon |
youtube |
YouTube social icon |
linkedin |
LinkedIn social icon |
whatsapp |
WhatsApp social icon |
The theme includes comprehensive SEO support:
- Organization: Site-wide organization data
- WebSite: Search engine site information
- BlogPosting: Article structured data for posts
- BreadcrumbList: Navigation breadcrumbs
- Dynamic og:title, og:description, og:image
- Twitter card support (summary_large_image)
- Article metadata (published time, author, tags)
The theme is optimized for Core Web Vitals:
- Build-time CSS: Tree-shaken Tailwind (~32KB vs ~300KB CDN)
- Lazy Loading: Below-fold images use
loading="lazy" - Priority Hints: Hero images use
fetchpriority="high" - Scroll Optimization: Throttled handlers with
requestAnimationFrame - CLS Prevention: Fixed navbar height, image aspect ratios
- Resource Hints: DNS prefetch and preconnect for external resources
# Build minified CSS for production npm run build:css # Watch CSS changes during development npm run watch:css # Run both CSS watcher and Hugo server npm run dev # Full production build npm run build
# Start CSS watcher in one terminal npm run watch:css # Start Hugo server in another terminal cd exampleSite hugo server --themesDir ../.. --theme sprout-hugo-theme
Or use the combined command:
npm run dev
# Build CSS and Hugo site npm run build # Or manually npm run build:css hugo --minify
Modify colors in tailwind.config.js:
module.exports = { theme: { extend: { colors: { primary: { 50: '#ecfdf5', // ... customize your primary color palette 600: '#059669', }, accent: { // ... customize your accent color palette } } } } }
After changing colors, rebuild CSS:
npm run build:css
Create new icon partials in layouts/partials/icons/:
<!-- layouts/partials/icons/custom-icon.html --> <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"> <!-- Your SVG path --> </svg>
Then use in front matter: icon: "custom-icon"
- Hugo Extended v0.112.0 or later
- Node.js 16+ (for building Tailwind CSS)
- npm or yarn
sprout-hugo-theme/
├── assets/
│ ├── css/
│ │ └── tailwind.css # Tailwind input file
│ └── scss/
│ └── main.scss # Custom SCSS styles
├── layouts/
│ ├── _default/
│ │ ├── baseof.html # Base template
│ │ ├── single.html # Single post template
│ │ └── list.html # List template
│ ├── partials/
│ │ ├── icons/ # SVG icon partials
│ │ ├── schema/ # Schema.org templates
│ │ ├── navbar.html
│ │ ├── footer.html
│ │ ├── hero.html
│ │ └── opengraph.html
│ └── posts/
│ └── list.html # Blog listing template
├── static/
│ └── css/
│ └── styles.css # Generated Tailwind CSS
├── exampleSite/ # Demo site
├── package.json # NPM scripts
└── tailwind.config.js # Tailwind configuration
MIT License - see LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Built with Hugo
- Styled with Tailwind CSS
- Interactivity by Alpine.js
- Icons from Lucide