liquid-theme-standards

Installation
Summary

CSS, JavaScript, and HTML standards for building Shopify Liquid themes with progressive enhancement and design tokens.

  • BEM naming convention with single-level element nesting, CSS custom properties for all design values, and logical properties for RTL support
  • Web Components pattern for component-scoped JavaScript using native browser APIs only; no external dependencies
  • Progressive enhancement: semantic HTML first, then CSS, then optional JavaScript enhancements
  • Defensive CSS practices including overflow handling, aspect ratio preservation, and reduced-motion support
  • Use jq for safe JSON edits in template and config files rather than string-based find-and-replace
SKILL.md

CSS, JS & HTML Standards for Shopify Liquid Themes

Core Principles

  1. Progressive enhancement — semantic HTML first, CSS second, JS third
  2. No external dependencies — native browser APIs only for JavaScript
  3. Design tokens — never hardcode colors, spacing, or fonts
  4. BEM naming — consistent class naming throughout
  5. Defensive CSS — handle edge cases gracefully

CSS in Liquid Themes

Where CSS Lives

Location Liquid? Use For
{% stylesheet %} No Component-scoped styles (one per file)
{% style %} Yes Dynamic values needing Liquid (e.g., color settings)
assets/*.css No Shared/global styles
Related skills
Installs
1.6K
GitHub Stars
107
First Seen
Feb 23, 2026