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.
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.
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.
Paragraph text you can edit
that spans multiple lines
blockquote text you can edit
console.log("Hello World");
Must be on 767 or lower to see it.
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;
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.