Skip to main content

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 in settings_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:
Background: #ffffff (White)Text: #000000 (Black)Primary: #000000 (Black)Perfect for clean, minimal designs with high contrast.
Background: #f5f5f5 (Light Gray)Text: #000000 (Black)Primary: #000000 (Black)Subtle background for sections that need slight separation.
Background: #eef1ea (Light Green)Text: #000000 (Black)Primary: #000000 (Black)Organic, nature-inspired palette.
Background: #e1edf5 (Light Blue)Text: #000000 (Black)Primary: #1d3686 (Deep Blue)Calm, trustworthy palette with blue accents.
Background: #333333 (Dark Gray)Text: #ffffff (White)Primary: #ffffff (White)High-contrast dark theme for modern designs.
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 the color_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
This ensures consistent visual contrast regardless of color scheme.

Best Practices

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
Always define hover states for interactive elements:
  • Buttons should have visible hover effects
  • Links should change on hover
  • Inputs should indicate focus state
Use alpha transparency strategically:
  • Overlay text needs solid backgrounds or sufficient contrast
  • Transparent backgrounds work well for overlays
  • Test on various image backgrounds
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

Theme Settings

Configure global theme settings

Typography

Customize fonts and text styles