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
Go to Marketplace → Pages → Craft.
Insert the Style Guide page.
Customize the theme or palette variables on Global Root.
Map Craft semantic variables to the theme.
Build with semantic variables and composite Tokens.
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:
Copy the template structure when creating a page.
Duplicate the template section and name it for its content, such as
Hero.Design the section using Craft variables and Tokens.
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
Cardscontaining severalCarditems.Prefix a Box using the
sectionelement withSection, such asSection 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.

Related
Craft – Follow the universal specification
Craft changelog – Review changes to the standard
Marketplace – Access Craft Library and other resources
Contributing to the Marketplace – Submit Craft resources
Anatomy of the Webstudio builder – Understand the Builder interface
Last updated
Was this helpful?
