Overview
Horizon uses a powerful color scheme system that allows you to define multiple color palettes and apply them to different sections of your store. Each color scheme contains 30+ color definitions for comprehensive theming.Color Scheme Structure
Each color scheme is defined insettings_schema.json with the following properties:
Core Colors
Main background color for the section
- Supports alpha transparency
- Used for page and section backgrounds
Primary text color
- Used for body text and paragraphs
- CSS variable:
--color-foreground
Heading text color
- Used for H1-H6 elements
- CSS variable:
--color-foreground-heading
Primary accent color
- Used for links and interactive elements
- CSS variable:
--color-primary
Hover state for primary color
- CSS variable:
--color-primary-hover
Border color for elements
- CSS variable:
--color-border
Shadow color for depth effects
- Used with opacity for drop shadows
- CSS variable:
--color-shadow
Button Colors
Primary Button
Primary button background color
Primary button text color
Primary button border color
Primary button background on hover
Primary button text color on hover
Primary button border on hover
Secondary Button
Secondary button background color
Secondary button text color
Secondary button border color
Secondary button background on hover
Secondary button text color on hover
Secondary button border on hover
Form Input Colors
Input field background color
Input field text color
Input field border color
Input field background on hover/focus
Variant Picker Colors
Default State
Variant button background
Variant button text
Variant button border
Hover State
Variant button background on hover
Variant button text on hover
Variant button border on hover
Selected State
Selected variant button background
Selected variant button text
Selected variant button border
Selected variant button background on hover
Selected variant button text on hover
Selected variant button border on hover
Default Color Schemes
Horizon includes 6 pre-configured color schemes:Scheme 1 - Clean White
Scheme 1 - Clean White
Background:
#ffffff (White)Text: #000000 (Black)Primary: #000000 (Black)Perfect for clean, minimal designs with high contrast.Scheme 2 - Soft Gray
Scheme 2 - Soft Gray
Background:
#f5f5f5 (Light Gray)Text: #000000 (Black)Primary: #000000 (Black)Subtle background for sections that need slight separation.Scheme 3 - Natural Green
Scheme 3 - Natural Green
Background:
#eef1ea (Light Green)Text: #000000 (Black)Primary: #000000 (Black)Organic, nature-inspired palette.Scheme 4 - Sky Blue
Scheme 4 - Sky Blue
Background:
#e1edf5 (Light Blue)Text: #000000 (Black)Primary: #1d3686 (Deep Blue)Calm, trustworthy palette with blue accents.Scheme 5 - Dark Mode
Scheme 5 - Dark Mode
Background:
#333333 (Dark Gray)Text: #ffffff (White)Primary: #ffffff (White)High-contrast dark theme for modern designs.Scheme 6 - Transparent Overlay
Scheme 6 - Transparent Overlay
Background:
rgba(0,0,0,0) (Transparent)Text: #ffffff (White)Primary: #ffffff (White)For overlaying content on images or videos.CSS Variables
Color schemes are converted to CSS custom properties at runtime:CSS Variables
Using Color Schemes
In Sections
Apply color schemes to sections using thecolor_scheme setting:
Section Schema
In Liquid
Apply the color scheme class to your section:Apply Color Scheme
Access Specific Colors
You can also access color scheme values directly:Access Colors
Creating Custom Color Schemes
Configure Colors
Customize all 30+ color values to match your brand
- Start with core colors (background, foreground)
- Define button states (normal and hover)
- Set input field colors
- Configure variant picker colors
Adaptive Opacity
Horizon automatically adjusts opacity values based on background brightness:Adaptive Opacity
Best Practices
Maintain Contrast
Maintain Contrast
Ensure sufficient contrast between text and background colors:
- WCAG AA: Minimum 4.5:1 for body text
- WCAG AAA: Minimum 7:1 for body text
- Test with tools like WebAIM Contrast Checker
Test Interactive States
Test Interactive States
Always define hover states for interactive elements:
- Buttons should have visible hover effects
- Links should change on hover
- Inputs should indicate focus state
Consider Transparency
Consider Transparency
Use alpha transparency strategically:
- Overlay text needs solid backgrounds or sufficient contrast
- Transparent backgrounds work well for overlays
- Test on various image backgrounds
Brand Consistency
Brand Consistency
Align color schemes with your brand:
- Use your brand’s primary color for primary buttons
- Match background colors to your brand aesthetic
- Maintain consistency across all schemes
Example Configuration
Custom Color Scheme
Related Pages
Theme Settings
Configure global theme settings
Typography
Customize fonts and text styles