For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use Craft

Apply the Craft specification in a Webstudio project.

Use the Craft Style Guide as a starting point, then map its semantic variables and composite Tokens to your project.

Get started

  1. Go to Marketplace → Pages → Craft.

  2. Insert the Style Guide page.

  3. Customize the theme or palette variables on Global Root.

  4. Map Craft semantic variables to the theme.

  5. Build with semantic variables and composite Tokens.

  6. Document project extensions in the Style Guide.

Use the page template

The Craft Style Guide includes a page template with navigation, a main region, sections, containers, and a footer:

  1. Copy the template structure when creating a page.

  2. Duplicate the template section and name it for its content, such as Hero.

  3. Design the section using Craft variables and Tokens.

  4. Duplicate the clean template section for the next section.

Maintain the Style Guide

Use Style Guide as the page name. Prefix Tokens used only to present the Style Guide with two underscores, such as __badge or __outline. Do not use these presentation Tokens on the published site.

Name Navigator items

Use title case and semantic labels in the Navigator.

  • Give Box, Slot, HTML Embed, and Collection instances names that describe their purpose.

  • Name containers after their content rather than position or appearance.

  • Use a plural parent and singular children for repeated content, such as Cards containing several Card items.

  • Prefix a Box using the section element with Section, such as Section Hero.

  • Keep one HTML Embed instance responsible for one purpose, and begin its code with a comment describing that purpose.

Recommended page structure:

Use Craft Library

Craft Library is a collection of section templates built to Craft standards and available in the Marketplace.

Templates must avoid unexplained hardcoded design values. They must consume documented Craft variables or documented extensions so that a section adapts when inserted into another conforming project.

Craft Library in the Webstudio Marketplace
Craft Library in the Marketplace

Last updated

Was this helpful?