Skip to content

notableadii/hydrogen-theme

 
 

Repository files navigation

⚡️ Hydrogen Theme

Build status License: MIT

Hydrogen Theme is a framework for building unparalleled performant storefronts on Shopify and Online Store 2.0.

Features

Requirements

Directory Structure

This theme leverages the default Shopify theme folder structure and introduces the following directories, some of which have special behaviors.

└── hydrogen-theme
    └── frontend
        ├── entrypoints
        │   └── # only Vite entry files here
        ├── islands
        │   └── # the interactive islands in your theme
        ├── lib
        │   └── # theme specific libraries
        └── styles
            └── # the styles of your theme

Setup

# Make sure to install the dependencies
pnpm install

Development Server

# Launch the Shopify and Vite servers in parallel
pnpm dev -- --store johns-apparel --live-reload full-page

Production

# Bundle your theme's assets and upload your local theme files to Shopify
pnpm run deploy --store johns-apparel

Checkout Shopify CLI commands for themes for more information.

Hydration Directives

The following hydration strategies are available (borrowed from Astro).

<is-land client:visible>This is an island.</is-land>

Thanks

We would like to specifically thank the following projects for the inspiration and help regarding the creation of hydrogen-theme:

License

This project is licensed under the MIT License.

About

A port of Hydrogen's default template to Shopify OS 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Liquid 81.5%
  • JavaScript 17.3%
  • CSS 1.2%