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
is-section-hero
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

Form
my-token

Radix

Accordion

Yes. It adheres to the WAI-ARIA design pattern.

Navigation Menu
Sheet

Must be on 767 or lower to see it.

Utility

my-token

Slots

my-slot

Custom

Card

Heading text you can edit

Paragraph text you can edit

Featured Logo
badge
Badge
Table

Lorem

Free
$20
$999

Usage

1
Unlimited
Unlimited
2 GB
20 GB
Unlimited
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-0); --foreground-secondary: var(--gray-11); --foreground-accent: var(--blue-6); --foreground-muted: var(--gray-1); --foreground-border: rgba(255, 255, 255, 0.1); --background-primary: var(--gray-11); --background-secondary: rgba(255, 255, 255, 0.1); --background-tertiary: var(--gray-0); --background-accent: var(--blue-6); --background-card: var(--blue-11); --background-tertiary: var(--gray-0); --gap-m: var(--size-fluid-4); --size-lg: 1246px; --spacing-default: var(--size-fluid-3); --blue-6: #0328ee; --blue-7: #031FB4; --blue-11: #010d50; --blue-12: #010725; --gray-11: #0b0921; --gray-8: #353447; --gray-4: #23213b; --gray-3: #1c1b2d; --gray-1: #d9d9d9; --gray-0: #ffffff;

👇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.

Logo