Shopify Skeleton Theme

A minimal, carefully structured Shopify theme designed to help you quickly get started. Designed with modularity, maintainability, and Shopify's best practices in mind.

License CIarrow-up-right

Getting started

Prerequisites

Before starting, ensure you have the latest Shopify CLI installed:

If you use VS Code:

Clone

Clone this repository using Git or Shopify CLI:

git clone [email protected]:Shopify/skeleton-theme.git
# or
shopify theme init

Preview

Preview this theme using Shopify CLI:

Theme architecture

To learn more, refer to the theme architecture documentationarrow-up-right.

Templates

Templatesarrow-up-right control what's rendered on each type of page in a theme.

The Skeleton Theme scaffolds JSON templatesarrow-up-right to make it easy for merchants to customize their store.

None of the template types are required, and not all of them are included in the Skeleton Theme. Refer to the template types referencearrow-up-right for a full list.

Sections

Sectionsarrow-up-right are Liquid files that allow you to create reusable modules of content that can be customized by merchants. They can also include blocks which allow merchants to add, remove, and reorder content within a section.

Sections are made customizable by including a {% schema %} in the body. For more information, refer to the section schema documentationarrow-up-right.

Blocks

Blocksarrow-up-right let developers create flexible layouts by breaking down sections into smaller, reusable pieces of Liquid. Each block has its own set of settings, and can be added, removed, and reordered within a section.

Blocks are made customizable by including a {% schema %} in the body. For more information, refer to the block schema documentationarrow-up-right.

Schemas

When developing components defined by schema settings, we recommend these guidelines to simplify your code:

  • Single property settings: For settings that correspond to a single CSS property, use CSS variables:

For CSS and JavaScript, we recommend using the {% stylesheet %}arrow-up-right and {% javascript %}arrow-up-right tags. They can be included multiple times, but the code will only appear once.

critical.css

The Skeleton Theme explicitly separates essential CSS necessary for every page into a dedicated critical.css file.

Contributing

We're excited for your contributions to the Skeleton Theme! This repository aims to remain as lean, lightweight, and fundamental as possible, and we kindly ask your contributions to align with this intention.

Visit our CONTRIBUTING.mdarrow-up-right for a detailed overview of our process, guidelines, and recommendations.

License

Skeleton Theme is open-sourced under the MIT License.

Last updated