LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

liquid-theme-standards

CSS, JavaScript, and HTML coding standards for Shopify Liquid themes. Covers BEM naming inside stylesheet tags, design tokens, CSS custom properties, Web Components for themes, defensive CSS, and progressive enhancement. Use when writing CSS/JS/HTML in .liquid files or theme asset files.

109stars15forksUpdated 6/18/2026
Web Development#css#frontend#bem#shopify#web-components#design-tokens#liquid

Security Assessment

Safe(100/100)
Security Score100/100

About liquid-theme-standards

This skill provides comprehensive coding standards for CSS, JavaScript, and HTML within Shopify Liquid themes. It addresses the common challenges developers face when writing frontend code in .liquid files, particularly around the limitations of Liquid template processing within stylesheet tags, maintaining consistent naming conventions, and building maintainable theme code without external dependencies. The skill ensures developers understand where Liquid can and cannot be used, preventing common mistakes that lead to broken styles or non-functional dynamic values.

The skill covers five core areas: BEM (Block Element Modifier) naming conventions for consistent CSS class structures, design token systems using CSS custom properties to avoid hardcoded values, proper usage of stylesheet and style tags in Liquid, defensive CSS practices for handling edge cases, and progressive enhancement principles that prioritize semantic HTML. It includes specific guidance on CSS nesting depth, specificity targets, and the strategic use of Web Components for theme functionality. The standards emphasize native browser APIs over external JavaScript libraries, ensuring themes remain lightweight and performant.

This skill is essential for Shopify theme developers, frontend engineers working on e-commerce platforms, and teams maintaining or building custom Shopify storefronts. It's particularly valuable when writing component-level styles in section files, creating reusable UI patterns across themes, or refactoring legacy theme code to modern standards. The guidelines help teams establish consistent code quality, reduce technical debt, and build themes that are easier to maintain and scale over time.

FAQ

Can I use Liquid variables inside {% stylesheet %} tags?

No. The {% stylesheet %} tag does not process Liquid syntax. For dynamic values that need Liquid variables (like colors from theme settings), use inline style attributes with CSS custom properties or use the {% style %} tag instead.

What specificity level should I target for CSS selectors?

Aim for 0 1 0 (single class selector) wherever possible, with a maximum of 0 4 0 for complex parent-child relationships. Never use ID selectors or !important declarations. Avoid element selectors in favor of classes for better maintainability.

When should I create a new BEM block versus extending an existing one?

Create a new BEM block when a component could function as a standalone entity or be reused elsewhere. Use element naming (.block__element) for parts that are tightly coupled to their parent and wouldn't make sense independently. Keep nesting to a single element level only.

Are external JavaScript libraries allowed in Shopify themes following these standards?

No. These standards require using native browser APIs only, without external dependencies. This keeps themes lightweight, improves performance, and reduces maintenance overhead from third-party library updates.

How should I handle dynamic spacing and colors in my theme?

Always use CSS custom properties (design tokens) for spacing, colors, typography, and other design values. Never hardcode these values directly in your CSS. Define a consistent scale in :root and reference these variables throughout your stylesheets. For dynamic values from Shopify settings, pass them as inline CSS custom properties on HTML elements.

All Files

3 files
references/css-patterns.md4.2 KB
View
references/javascript-patterns.md6.5 KB
View
SKILL.md11.8 KB
View

Install liquid-theme-standards

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

benjaminsehl/liquid-skills

Related Skills

parallel-web

45,195

create-blazor-project

5,423

od-contribute

96,513

redesign-existing-projects

96,513