/anglesite:design-import [Canva site URL or freedesignmd.com system URL]from anglesite
Imports design tokens (colors, fonts, spacing) and page layouts from a Canva site or freedesignmd system to build a matching Astro site.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Import design tokens (colors, fonts, spacing) and page layouts from a Canva published site or freedesignmd.com design system to build an Astro site that matches. Extracts the visual identity automatically so the owner doesn't have to describe it manually.
The design interview is a model-only skill with no slash command. Whenever the owner takes a "design it together" or "refine the design" option below, read and follow ${CLAUDE_PLUGIN_ROOT}/skills/design-interview/SKILL.md.
Before every tool call or command that will trigger a permission prompt, explain what you're about to do and why. The owner is non-technical.
If the owner provided a URL as an argument, use it. Otherwise ask:
"What's the URL of your design? I can import from a Canva site (
something.my.canva.site) or a freedesignmd system (freedesignmd.com/system/...)."
Normalize: strip trailing slashes, ensure https://. Store as SOURCE_URL.
Check the URL to determine the source:
freedesignmd — if SOURCE_URL contains freedesignmd.com/system/ or freedesignmd.com/pattern/:
Set SOURCE to freedesignmd. Skip directly to the freedesignmd path in Step 2.
Canva — if SOURCE_URL contains my.canva.site or canva.site:
Set SOURCE to canva. Continue to Step 0c.
Figma — if SOURCE_URL contains figma.com/design/ or figma.com/file/:
Tell the owner:
"I can't import from Figma yet. I can build your design with you instead — a short conversation about your brand, colors, and fonts. Want to do that?"
If yes, read and follow ${CLAUDE_PLUGIN_ROOT}/skills/design-interview/SKILL.md. Otherwise stop.
Claude Design / opendesign / open-design — if SOURCE_URL is a claude.ai share link, an opendesign localhost:8289 URL, or any other AI design-tool mockup URL:
Tell the owner:
"Those tools generate HTML mockups, not editable site content. Anglesite can't import them directly, but we can match the look. Two options:
- Export the design as a PNG or PDF and I'll pull the colors and fonts from that — say "let's design it together" and I'll walk you through it.
- If it's a hero image or graphic for a page, save it to
public/images/and I'll reference it from your site."
Then read ${CLAUDE_PLUGIN_ROOT}/docs/design-tools.md for the full workflow before responding to follow-ups. Stop and wait.
Unrecognized — if the URL doesn't match any pattern: Tell the owner:
"I don't recognize that link. Could you double-check the URL? It should be one of:
https://something.my.canva.sitefor a Canva sitehttps://freedesignmd.com/system/...for a freedesignmd design system"
Wait for a corrected URL.
Use Glob to check for src/content/config.ts or src/content.config.ts (Astro 5
moved the content config; either path means this is an Anglesite project).
If already scaffolded:
Read .site-config to load SITE_NAME (and OWNER_NAME if it happens to be set; do not prompt for it here — design import doesn't need it).
Check if src/design/design.json exists:
If it exists, ask the owner:
"You already have a design system set up. Would you like me to:
- Replace it entirely with the design from your Canva site
- Keep your current design and just import the page layouts"
Set DESIGN_MODE to replace or keep based on their answer.
If it does not exist, set DESIGN_MODE to replace.
If not scaffolded:
Tell the owner:
"I need to set up the basic project files first. This only takes a moment."
bash "${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh" --yes .
Ask only: "What should we call the site?" — that's SITE_NAME. Don't ask for the owner's name here; the design-import flow doesn't need it. It will be collected on-demand by skills that do (see "On-demand owner name" in ${CLAUDE_PLUGIN_ROOT}/skills/start/SKILL.md).
Save to .site-config using the Write tool:
SITE_TYPE=business
SITE_NAME=My Site
DEV_HOSTNAME=mysite.local
AI_MODEL=(write your actual model name here)
EXPLAIN_STEPS=true
npm install
Set DESIGN_MODE to replace.
Skip this step if SOURCE is freedesignmd — freedesignmd files are markdown, no browser needed. Read ${CLAUDE_PLUGIN_ROOT}/skills/design-import/browser-backend.md and follow it.
If SOURCE is freedesignmd, delegate to the freedesignmd skill: read and
follow ${CLAUDE_PLUGIN_ROOT}/skills/freedesignmd/SKILL.md. Pass the slug
extracted from SOURCE_URL (the segment after /system/ or /pattern/).
That skill handles fetching the DESIGN.md, writing it to src/design/DESIGN.md,
translating tokens to CSS custom properties, updating docs/brand.md, and
verifying the build.
When it returns, present results to the owner:
"I've imported the <system name> design system from freedesignmd:
- Tokens: colors, typography, and spacing applied to
src/styles/global.css- DESIGN.md: saved at
src/design/DESIGN.mdso I can keep new pages consistent- No images or pages were imported — freedesignmd is a design system catalog, not a page builder. If you want pages too, run
/anglesite:design-importwith a Canva URL, or build pages from scratch."
Skip to Step 8 (Commit). Steps 3–7 are Canva-specific.
Tell the owner:
"I'm going to open your Canva site in a browser and extract the design — colors, fonts, images, and page layouts. This takes about a minute."
Both backends share the same flags and produce identical JSON. Substitute the driver for the RENDER_BACKEND resolved in Step 1:
Extraction output goes to .anglesite/tmp/ (gitignored). Create it first:
mkdir -p .anglesite/tmp
If RENDER_BACKEND is safari (a visible Safari window will open):
node ${CLAUDE_PLUGIN_ROOT}/scripts/design-import/canva-safari.mjs --site "SOURCE_URL" > .anglesite/tmp/canva-extraction.json
If RENDER_BACKEND is playwright:
node ${CLAUDE_PLUGIN_ROOT}/scripts/design-import/canva-playwright.mjs --site "SOURCE_URL" > .anglesite/tmp/canva-extraction.json
If the Safari extraction fails (non-zero exit), fall back to the Playwright branch of Step 1 before giving up — a per-site rendering quirk in one browser often works in the other.
Read .anglesite/tmp/canva-extraction.json as EXTRACTION_RESULT. It contains:
pages — array of page objects, each with url and sections (text and image elements with bounds and font sizes)tokens.colors — mapped color roles (background, primary, accent, text)tokens.fonts — array of font names found in the designimages — array of image URLs and alt text, deduplicated across pagesnavigation — navigation links (label + path) extracted from the siteIf the extraction fails, tell the owner:
"I wasn't able to read the Canva site automatically. This sometimes happens with certain Canva templates. We can build the design together instead — just say "let's design it together"."
Stop and wait.
If extraction succeeds, present the inventory:
"Here's what I found on your Canva site:
Pages: N pages (list page names) Colors: N colors extracted (primary, accent, background, text) Fonts: font1, font2 Images: N images to download
I'll use these to build your website. Let me get started."
Skip this step if DESIGN_MODE is keep.
Read src/styles/global.css. Map the extracted tokens.colors roles to CSS custom
properties:
| Extracted role | CSS custom property |
|---|---|
| background | --color-bg |
| primary | --color-primary |
| accent | --color-accent |
| text | --color-text |
Update the values in global.css using the Edit tool. If additional color roles
were extracted (muted, surface), map them to --color-muted and --color-surface.
Tell the owner:
"I've applied your brand colors:
- Primary: [hex] (used for headings and buttons)
- Accent: [hex] (used for highlights and links)
- Background: [hex]
- Text: [hex]"
Map the extracted fonts to performant system font stacks per ADR-0005. Update
global.css:
--font-heading--font-bodyCommon mappings:
Georgia, 'Times New Roman', serifsystem-ui, -apple-system, sans-serif'SF Mono', 'Fira Code', monospaceTell the owner:
"Your Canva design uses [font1] for headings and [font2] for body text. I've mapped these to fast-loading system fonts that look similar — no extra downloads needed for your visitors."
Run the design axis inference script:
node ${CLAUDE_PLUGIN_ROOT}/scripts/design-import/infer-axes.mjs .anglesite/tmp/canva-extraction.json
This reads the extracted colors, fonts, and layout patterns to determine where the design falls on axes like warm/cool, minimal/detailed, modern/traditional.
Write the result to src/design/design.json.
Generate docs/design-rationale.md explaining the design decisions:
Tell the owner:
"I've saved your design system. It captures the look and feel of your Canva site so everything stays consistent as you add new pages."
For each page in EXTRACTION_RESULT, classify the sections using the layout heuristics script:
node ${CLAUDE_PLUGIN_ROOT}/scripts/design-import/layout-heuristics.mjs .anglesite/tmp/canva-extraction.json
This maps each extracted section to a semantic type: hero, feature-grid,
testimonial, content, gallery, cta, footer, or generic.
Tell the owner:
"I'm downloading images from your Canva site and optimizing them for fast loading."
mkdir -p public/images/design
For each image in EXTRACTION_RESULT:
curl -L -s -o "public/images/design/FILENAME" "IMAGE_URL"
Optimize with sharp-cli if over 500 KB:
npx sharp-cli -i "public/images/design/FILENAME" -o "public/images/design/FILENAME" --format webp --quality 80
Run the text hierarchy script to determine heading levels and body text from the extracted text elements:
node ${CLAUDE_PLUGIN_ROOT}/scripts/design-import/text-hierarchy.mjs .anglesite/tmp/canva-extraction.json
This uses font size, weight, and position to assign h1, h2, h3, p, and
other semantic roles to text blocks.
Create Astro pages from the classified sections. All pages use BaseLayout.
Homepage → src/pages/index.astro
Other pages → src/pages/<slug>.astro (slugified from the page name)
Map each classified section to semantic HTML:
| Section type | HTML output |
|---|---|
hero | <section class="hero"> with <h1>, tagline <p>, and CTA <a> button |
feature-grid | <section class="features"> with CSS Grid cards, each with heading and description |
testimonial | <blockquote> with quote text and <cite> for attribution |
content | Prose section with headings and paragraphs preserving hierarchy |
gallery | CSS Grid of <img> elements with alt text |
cta | <section class="cta"> with heading and button link |
footer | Fold content into BaseLayout footer (do not create a separate section) |
generic | <section> preserving the original content order |
Use local image paths (/images/design/filename.webp) for all images. Do not
reference any Canva URLs in the output (ADR-0008, ADR-0011).
Build site navigation from the extracted navigation links in EXTRACTION_RESULT. For
each link:
/about, /services)Update the navigation in src/layouts/BaseLayout.astro (or the equivalent
layout file) with the imported links.
If no navigation was extracted, build it from the list of generated pages.
Tell the owner:
"I'm building the site to make sure everything works correctly."
npm run build
If the build fails, fix the errors. Common issues:
After a clean build, check for remaining Canva URLs in the output:
grep -rE "my\.canva\.site|canva\.com" dist/ --include="*.html"
If any Canva URLs remain in the built output, find the source files and replace them with local paths. Rebuild until clean.
Tell the owner:
"I'm taking screenshots of the new site so you can compare it with your Canva original."
Start the dev server:
npm run dev -- --port 4321 &
Wait a few seconds for it to start, then run the comparison script, passing the
page paths you imported (defaults to / if omitted):
node ${CLAUDE_PLUGIN_ROOT}/scripts/design-import/comparison.mjs "SOURCE_URL" "http://localhost:4321" / /services /about
Save screenshots to docs/design-import/comparison/. Stop the dev server.
The comparison script uses Playwright for screenshots. If RENDER_BACKEND is
safari and Playwright is not installed, or the script fails for any other
reason, skip this step — it's helpful but not blocking.
Give the owner a plain-English summary:
"Your Canva design has been imported! Here's what I built:
Design system: Colors, fonts, and spacing extracted and applied Pages: N pages created (list them) Images: N images downloaded and optimized Navigation: Set up with links to all your pages
What's different from the Canva version:
- The layout uses clean, semantic HTML instead of Canva's absolute positioning. It's responsive and works on all screen sizes.
- Fonts are mapped to fast-loading system fonts that look similar to your Canva fonts.
- Any Canva-specific features (animations, embedded videos, forms) aren't carried over — we can add alternatives that work better for a real website.
Comparison screenshots are saved in
docs/design-import/comparison/so you can see the original and new version side by side."
If any pages failed to import, list them:
"I wasn't able to import [page names]. You can add these manually or I can help build them from scratch."
For any Canva-hosted features that couldn't be imported (forms, videos, animations), suggest alternatives:
/anglesite:contact/anglesite:bookingTell the owner:
"I'm saving all the changes so nothing gets lost."
git add -A
git commit -m "Import design from Canva (N pages, design system)"
Replace N with the actual number of pages created.
Read GITHUB_REPO from .site-config. If set, push to GitHub:
git push origin draft
If the push fails, log the issue but don't block the import.
Tell the owner:
"Your site is ready! Here's what you can do next:
- Publish it —
/anglesite:deployto put it online- Refine the design — ask me to adjust colors, fonts, or layout
- Improve SEO —
/anglesite:seoto optimize for search engines- Edit content — open Keystatic to update text and images in a visual editor
What would you like to do?"
Wait for the owner's response.
What SKILL.md sets; muted values are Claude Code's defaults
Use when the owner already has a design in Canva or a freedesignmd system and wants the site to match its colors, fonts, and layouts.
56 skills in this plugin
/add-storeAdd ecommerce to the site — picks and sets up a provider for physical goods, digital downloads, services, or software/animateDesign CSS animations: hover effects, scroll reveals, page transitions/backupBack up site changes to GitHub, or restore an earlier snapshot/bookingEmbed appointment scheduling (Cal.com or Calendly) into the site/business-infoCollect and display business hours, address, phone, and LocalBusiness JSON-LD/buy-buttonAdd a buy button to sell a product, service, or digital good (Stripe or Polar)npx claudepluginhub anglesite/anglesite-skills --plugin anglesiteOther plugins' skills for the same job