Style Guide

Craft Version 1.0

Here is the community style guide according to Craft, the recommended starting point for Webstudio Projects. CSS variables containing colors, sizes, and more are on the Global Root.

Layout

section
container
grid

Grid quickly provides the properties to create a grid. Once added, switch over to Local and type in your template columns.

Note, grid turns into flex on 767. This is because grid children may use start/end columns and would require us to reset each one manually on mobile. By setting the parent to flex, those values are ignored.

Colors

Change these values on the Global Root. It's best practice to map semantic variables such as --foreground-primary to another variable such as --gray-10.

Foreground

--foreground-primary
--foreground-secondary
--foreground-accent
--foreground-muted
--foreground-border

Background

--background-primary
--background-secondary
--background-accent
--background-card

Other

--focus-color

Elements

heading-1|2|3|4|5|6

Heading 1 text
you can edit

Heading 2 text
you can edit

Heading 3 text
you can edit

Heading 4 text
you can edit

Heading 5 text
you can edit

Heading 6 text
you can edit

Paragraph text you can edit
that spans multiple lines

blockquote text you can edit
list
  • list-item text you can edit
  • List Item text you can edit
  • List Item text you can edit
separator

code
console.log("Hello World");

Forms

my-token

Radix

my-token

Utility

my-token

Slots

my-slot

Custom

Card
Arrow going up

Product Design

This is a template Figma file, turned into code using Anima. Learn more at AnimaApp.com

is-card-gallery
Book and plant

Product Design

This is a template Figma file, turned into code using Anima. Learn more at AnimaApp.com

is-card-testimonial

This is a template Figma file, turned into code using Anima. Learn more at AnimaApp.com

Picuture of Gemma
5 stars
Gemma Nolen
Google
my-token

Notes

Add notes for yourself or other creators that explain any nuances of the build.

The following CSS variables were the modifications or additions made to the default Craft variables, jyfi.

--foreground-primary: var(--gray-12); --foreground-secondary: var(--gray-0); --foreground-accent: var(--red-6): --foreground-muted: unset; --foreground-border: var(--foreground-primary); --background-primary: var(--gray-0); --background-secondary: var(--gray-3); --background-accent: var(--gray-12); --background-card: var(--background-primary); --focus-color: var(--red-6); --gap-xs: var(--size-1); --gap-m: var(--size-fluid-4); --gray-0: #FFFFFF; --gray-1: unset; --gray-2: unset; --gray-3: #F3F3F3; --gray-4: unset; --gray-5: unset; --gray-6: unset; --gray-7: unset; --gray-8: unset; --gray-9: unset; --gray-10: unset; --gray-11: unset; --gray-12: #2D2D2D; --green-0: unset; --green-1: unset; --green-2: unset; --green-3: unset; --green-4: unset; --green-5: unset; --green-6: #009379; --green-7: unset; --green-8: unset; --green-9: unset; --green-10: unset; --green-11: unset; --green-12: unset; --red-0: unset; --red-1: unset; --red-2: unset; --red-3: unset; --red-4: unset; --red-5: unset; --red-6: #FF6250; --red-7: unset; --red-8: unset; --red-9: unset; --red-10: unset; --red-11: unset; --red-12: unset; --pink-0: unset; --pink-1: unset; --pink-2: unset; --pink-3: unset; --pink-4: #F3AFA8; --pink-5: unset; --pink-6: unset; --pink-7: unset; --pink-8: unset; --pink-9: unset; --pink-10: unset; --pink-11: unset; --pink-12: unset; --yellow-0: unset; --yellow-1: unset; --yellow-2: unset; --yellow-3: unset; --yellow-4: #F7D684; --yellow-5: unset; --yellow-6: unset; --yellow-7: unset; --yellow-8: unset; --yellow-9: unset; --yellow-10: unset; --yellow-11: unset; --yellow-12: unset;

👇Template for new pages👇

When creating a new page, you can copy the "Page Wrapper" instance below (see navigator) and paste it on the new page. It contains the skeleton of a page, including a nav, footer, and section.

Lets create amazing games!

Ready to bring your game to life? Let’s create an amazing game together.

Credits