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
color
default:"#FFFFFF"
Main background color for the section
- Supports alpha transparency
- Used for page and section backgrounds
color
default:"#000000"
Primary text color
- Used for body text and paragraphs
- CSS variable:
--color-foreground
color
default:"#000000"
Heading text color
- Used for H1-H6 elements
- CSS variable:
--color-foreground-heading
color
default:"#000F9F"
Primary accent color
- Used for links and interactive elements
- CSS variable:
--color-primary
color
default:"#000000"
Hover state for primary color
- CSS variable:
--color-primary-hover
color
default:"#E6E6E6"
Border color for elements
- CSS variable:
--color-border
color
default:"#000000"
Shadow color for depth effects
- Used with opacity for drop shadows
- CSS variable:
--color-shadow
Button Colors
Primary Button
color
default:"#000F9F"
Primary button background color
color
default:"#FFFFFF"
Primary button text color
color
default:"#000F9F"
Primary button border color
color
default:"#000F9F"
Primary button background on hover
color
default:"#FFFFFF"
Primary button text color on hover
color
default:"#000F9F"
Primary button border on hover
Secondary Button
color
default:"#FFFFFF"
Secondary button background color
color
default:"#000000"
Secondary button text color
color
default:"#000000"
Secondary button border color
color
default:"#FFFFFF"
Secondary button background on hover
color
default:"#000000"
Secondary button text color on hover
color
default:"#000000"
Secondary button border on hover
Form Input Colors
color
default:"#FFFFFF"
Input field background color
color
default:"#000000"
Input field text color
color
default:"#000000"
Input field border color
color
default:"#F5F5F5"
Input field background on hover/focus
Variant Picker Colors
Default State
color
default:"#FFFFFF"
Variant button background
color
default:"#000000"
Variant button text
color
default:"#E6E6E6"
Variant button border
Hover State
color
default:"#F5F5F5"
Variant button background on hover
color
default:"#000000"
Variant button text on hover
color
default:"#E6E6E6"
Variant button border on hover
Selected State
color
default:"#000000"
Selected variant button background
color
default:"#FFFFFF"
Selected variant button text
color
default:"#000000"
Selected variant button border
color
default:"#1A1A1A"
Selected variant button background on hover
color
default:"#FFFFFF"
Selected variant button text on hover
color
default:"#1A1A1A"
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
1
Open Theme Editor
Navigate to Online Store > Themes > Customize in your Shopify admin
2
Access Color Settings
Click Theme settings > Colors in the sidebar
3
Add New Scheme
Click Add color scheme to create a new palette
4
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
5
Apply to Sections
Use your new color scheme in any section with a color scheme picker
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