
Liquid Theme Standards
Coding standards for Shopify Liquid themes covering BEM naming, design tokens, defensive CSS, and Web Components.
- skills.sh installs
- 3.2K
- GitHub stars
- 123
- last updated
- Aug 21, 2026
What it does
- Covers CSS, JavaScript, and HTML conventions for theme code in
.liquidfiles and theme asset files - Specifies where styles live:
{% stylesheet %}for scoped CSS,{% style %}for Liquid-driven values, andassets/*.cssfor shared styles - Enforces BEM naming, single-level elements, specificity limits of
0 1 0to0 4 0, and no IDs, element selectors, or!important - Designed for theme developers who write CSS, JS, and HTML inside Liquid templates and need consistent, progressive-enhancement patterns
Install
$ npx -y skills add benjaminsehl/liquid-skills --skill liquid-theme-standards -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
CSS, JS & HTML Standards for Shopify Liquid Themes
Core Principles
- Progressive enhancement — semantic HTML first, CSS second, JS third
- No external dependencies — native browser APIs only for JavaScript
- Design tokens — never hardcode colors, spacing, or fonts
- BEM naming — consistent class naming throughout
- 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 |
Critical: {% stylesheet %} does NOT process Liquid. Use inline style attributes for dynamic values:
{%- comment -%} Do: inline variables {%- endcomment -%}
<div
class="hero"
style="--bg-color: {{ section.settings.bg_color }}; --padding: {{ section.settings.padding }}px;"
>
{%- comment -%} Don't: Liquid inside stylesheet {%- endcomment -%}
{% stylesheet %}
.hero { background: {{ section.settings.bg_color }}; } /* Won't work */
{% endstylesheet %}
Details
- Repository
- github.com/benjaminsehl/liquid-skills
- Category
- Frontend & UI Code
More from benjaminsehl/liquid-skills
All 3Similar to Liquid Theme Standards
More Frontend & UI Code
shopify-liquid-themesSkillbenjaminsehl/liquid-skills4K installsShopify Liquid theme code generator with schema JSON, LiquidDoc headers, translation keys, and CSS/JS patterns.
shopify-theme-development-guidelinesSkillmindrally/skills940 installsExpert Shopify theme guidance covering Liquid, Online Store 2.0 structure, and performance standards.
liquid-skillsPluginanthropics/claude-plugins-official47.9K starsLiquid language fundamentals, CSS/JS/HTML coding standards, and WCAG accessibility patterns for Shopify themes
cssSkillmindrally/skills1.3K installsGuidelines for modern CSS layout, naming, theming, and maintainable stylesheet architecture.
shopify-liquidSkillshopify/shopify-ai-toolkit13.1K installsThis is a comprehensive Shopify theme development skill that enforces best practices through a search-then-validate workflow. Every response must search the Liq
liquid-theme-a11ySkillbenjaminsehl/liquid-skills3.1K installsAccessible Shopify Liquid theme patterns covering WCAG 2.2 for product cards, carousels, cart drawers, forms, and modals.