Giter Site home page Giter Site logo

notableadii / hydrogen-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from montalvomiguelo/hydrogen-theme

0.0 0.0 0.0 712 KB

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

Home Page: https://montalvomiguelo.myshopify.com/

License: MIT License

JavaScript 17.33% CSS 1.15% Liquid 81.52%

hydrogen-theme's Introduction

⚡️ 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.

hydrogen-theme's People

Contributors

montalvomiguelo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.