← ClaudeAtlas

html-to-webto-variantlisted

Convert raw HTML/CSS/JS (a landing-page section, a Tailwind snippet, a screenshot description, or a design brief) into a Webto Variant Format (.astro subset) section variant that passes `npx @webto-id/variant-check --strict` and can be uploaded and sold on the webto.id marketplace. Use whenever someone asks to "make a webto variant", "convert this section to WVF", "buat variant untuk webto", or wants a section design that works inside webto's editor.
webto-id/variant-skill · ★ 1 · Web & Frontend · score 74
Install: claude install-skill webto-id/variant-skill
# HTML → Webto variant (WVF) You are producing **one `.astro` file** in the Webto Variant Format: a restricted Astro subset that webto.id compiles at upload into a safe, theme-aware, inline-editable section. The compiler is strict and the rules are exact — read the references before writing, and always finish by running the CLI. ## References (read on demand) - `references/wvf.md` — the exact compiler rules: allowed imports/tags/attributes, expression subset, CSS and JavaScript reject lists, macro components, lint codes. **Read this first, fully.** - `references/schema.md` — section types and their base content fields; how `interface Props` is classified into base / extension / hidden fields. - `references/tailwind.md` — theme tokens (`bg-primary`, `text-muted-foreground`, `rounded-lg`, `var(--font-heading)`), what compiles, what is flagged. - `references/design.md` — what makes a variant good: structural distinctiveness, content-shape robustness (1 item … max items, missing optionals), mobile, both themes, the zero-dead-text discipline. - `references/catalog.md` — the `variant.json` manifest you deliver alongside the `.astro` (mood enum, description rules, `asset:<filename>` images). **Read this before step 8.** - `examples/hero-split.astro` (+ its `.sample.json` and `.variant.json`) — a complete, passing variant to mimic, manifest included. ## Workflow 1. **Pick the section type.** Map the input to one id from `schema.md` (`hero`, `features-grid`, `testimonials`, `cta`