drupal-vite-theme
IndexedPatterns 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.
Install
$ npx skills add https://github.com/grasmash/drupal-claude-skills --skill drupal-vite-theme
The skills CLI downloads the skill from GitHub when you run the command, so what you get may have changed since the scan.
Scan
The scan flagged nothing in SKILL.md when it was last read. It doesn’t read the skill’s other files, and a clean scan doesn’t prove a skill is safe.
Copies
No other indexed repository has this exact folder.