Introduction
Horizon is Shopify’s flagship theme that showcases the latest Liquid Storefronts features, including the revolutionary theme blocks architecture. Built with modern web standards and performance at its core, Horizon represents a new generation of first-party Shopify themes.Core Philosophy
Horizon is built on four foundational principles:Web-native in its purest form
Web-native in its purest form
Themes run on the evergreen web. Horizon leverages the latest web browsers to their fullest, while maintaining support for older browsers through progressive enhancement—not polyfills.
Lean, fast, and reliable
Lean, fast, and reliable
Functionality and design defaults to “no” until it meets this requirement. Code ships on quality. Themes must be built with purpose and shouldn’t support every feature in Shopify unnecessarily.
Server-rendered
Server-rendered
HTML must be rendered by Shopify servers using Liquid. Business logic and platform primitives such as translations and money formatting don’t belong on the client. Async and on-demand rendering of parts of the page is OK, but used sparingly as progressive enhancement.
Functional, not pixel-perfect
Functional, not pixel-perfect
The Web doesn’t require each page to be rendered pixel-perfect by each browser engine. Using semantic markup, progressive enhancement, and clever design ensures themes remain functional regardless of the browser.
Directory Structure
Horizon follows the standard Shopify theme structure with enhanced organization:Horizon contains 94 theme blocks, 41 sections, and 93 snippets, making it one of the most comprehensive Shopify themes available.
Key Components
Sections
Sections are the building blocks of Shopify pages. Horizon includes both static and dynamic sections:Layout Sections
_blocks.liquid- Universal block containerhero.liquid- Hero banners with mediacarousel.liquid- Product/content carousels
Content Sections
featured-product.liquid- Product showcasescollection-list.liquid- Collection gridsmedia-with-content.liquid- Rich media sections
Header/Footer
header-group.json- Header section groupfooter-group.json- Footer section groupheader-announcements.liquid- Announcement bars
Page-Specific
main-product.liquid- Product pagemain-collection.liquid- Collection pagemain-blog.liquid- Blog listing
Blocks
Theme blocks (prefixed with_) are reusable components that can be added to sections:
blocks/_heading.liquid
Snippets
Snippets are reusable Liquid templates for common functionality:section.liquid- Universal section wrappergroup.liquid- Block group containerbento-grid.liquid- Advanced grid layoutsbackground-media.liquid- Media background handlercart-products.liquid- Cart product rendering
Templates
Horizon uses JSON templates exclusively for maximum flexibility:templates/index.json
Rendering Architecture
Section Rendering Flow
Horizon uses a sophisticated rendering pattern:Snippet Rendering
Captured content is passed to reusable snippets:
{% render 'section', section: section, children: children %}Example: Blocks Section
sections/_blocks.liquid
Layout System
Main Layout
Thetheme.liquid layout file provides the HTML structure:
layout/theme.liquid
The
{% sections 'header-group' %} and {% sections 'footer-group' %} tags enable section groups, a powerful Liquid Storefronts feature.Asset Management
Horizon uses a modular asset architecture:- CSS
- JavaScript
- Images
base.css- Core styles and CSS variables- Component-specific stylesheets loaded per section
- Scoped styles using
{% stylesheet %}tags in snippets
Performance Optimizations
Server-Side Rendering
All HTML is rendered server-side using Liquid, ensuring:- Fast initial page loads
- SEO-friendly content
- No client-side hydration overhead
Progressive Enhancement
Minimal JavaScript
JavaScript is used sparingly:- Web Components for complex interactions
- Native browser APIs over libraries
- Vanilla JS, no framework dependencies
Next Steps
Theme Structure
Explore sections, blocks, snippets, and templates in detail
Liquid Storefronts
Learn about modern Liquid features and APIs
Theme Blocks
Deep dive into the theme blocks architecture
Getting Started
Start building with Horizon