Skill / SKILL.md

Drupal Vite Theme

grasmash/drupal-claude-skills

Patterns and pitfalls for a fast custom Drupal 10/11 theme built with Vite + Tailwind CSS v4 + Single Directory Components (SDC) via the drupal/vite module. Use when creating or changing a Vite-built theme, editing vite.config.js, *.libraries.yml with `vite:` keys, Tailwind v4 `@theme`/tokens/preflight, SDC component CSS, content-hashed dist assets or the Vite manifest; when a cold render is slow or 504s ("gateway timeout cold, fine after retries", "works for anonymous, hangs for logged-in"), assets 404 after a deploy, a JS/CSS fix "works locally but not in prod", styles silently vanish (tokens resolve to nothing, images cropped wrong, list bullets gone), or committed dist drifts from a fresh build. Covers the drupal/vite dev-server probe, `version:`/`preprocess:` rules, anti-monolith bundling, owning the markup, View Transitions + Speculation Rules instead of a JS framework.
1 views 85 repository starsUpdated Nov 28, 2026
Overview

Patterns and pitfalls for a fast custom Drupal 10/11 theme built with Vite + Tailwind CSS v4 + Single Directory Components (SDC) via the drupal/vite module. Use when creating or changing a Vite-built theme, editing vite.config.js, *.libraries.yml with `vite:` keys, Tailwind v4 `@theme`/tokens/preflight, SDC component CSS, content-hashed dist assets or the Vite manifest; when a cold render is slow or 504s ("gateway timeout cold, fine after retries", "works for anonymous, hangs for logged-in"), assets 404 after a deploy, a JS/CSS fix "works locally but not in prod", styles silently vanish (tokens resolve to nothing, images cropped wrong, list bullets gone), or committed dist drifts from a fresh build. Covers the drupal/vite dev-server probe, `version:`/`preprocess:` rules, anti-monolith bundling, owning the markup, View Transitions + Speculation Rules instead of a JS framework.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/grasmash/drupal-claude-skills' skill-source

Use the complete skill-source/skills/drupal-vite-theme directory with your client’s skill installer.

  • skills/drupal-vite-theme

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/drupal-vite-theme

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
1 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
231dc8743f202057c4f1bcf2c27b6d1c7135574de0a769e8cc34204026719ea7
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills