Skip to main content

Design System

STYLE GUIDE

Logo

Client-First foundations for Webstudio

Global Styles

Edit these tokens once to update the full project.

Headings
heading-style-h1

Heading 1

heading-style-h2

Heading 2

heading-style-h3

Heading 3

heading-style-h4

Heading 4

heading-style-h5
Heading 5
heading-style-h6
Heading 6
Text Sizes
text-size-large

Large body text for introductions and important supporting copy. Every text size references a CSS variable.

text-size-medium

Medium body text for featured explanations and lead paragraphs.

text-size-regular

Regular body text is the default reading size throughout the website.

text-size-small

Small text is used for secondary information, metadata, and form help.

text-size-tiny

Tiny text is reserved for labels and compact interface details.

Rich Text

Rich text heading

A rich text block includes paragraphs, bold text, emphasis, and inline links.

  • Unordered list item
  • Reusable editorial spacing
  • Accessible default contrast
A consistent system helps every page feel related.
Typography Utilities

Global Client-First utility classes for intentional text variations. Keep semantic heading and paragraph styles as the default, then add one utility only when the design calls for it.

Text Weights
text-weight-xbold

Extra bold text

text-weight-bold

Bold text

text-weight-semibold

Semibold text

text-weight-normal

Normal text

text-weight-light

Light text

Text Alignment
text-align-left

Left-aligned text

text-align-center

Center-aligned text

text-align-right

Right-aligned text

Text Styles
text-style-allcaps

All caps text

text-style-italic

Italic text

text-style-link

Styled text link

text-style-muted

Muted supporting text

text-style-nowrap

This sentence stays on one line and truncates

text-style-quote

A clear system makes every page easier to build.

text-style-strikethrough

Deprecated text

text-style-2lines

This longer example demonstrates a reusable two-line clamp for cards and compact summaries where consistent heights matter across a responsive grid.

text-style-3lines

This longer example demonstrates a reusable three-line clamp for editorial previews and content cards while keeping the overall layout orderly and predictable.

Text Colors
text-color-primary

Primary text

text-color-secondary

Secondary text

text-color-alternate

Alternate text

Colors

Semantic tokens keep the palette flexible for each client.

primary
Primary
secondary
Secondary
tertiary
Tertiary
accent
Accent
success
Success
danger
Danger
Background Colors
background-color-primaryPrimary
background-color-secondarySecondary
background-color-lightLight
background-color-darkDark
background-color-neutralNeutral
Background Images

Each class includes cover sizing, centered positioning, and no-repeat. Replace the matching root variable when final project imagery is available.

background-image-1
background-image-2
background-image-3

Effects

Box Shadows

A reusable elevation scale for cards, menus, and overlays. Each class reads from a project-wide root variable.

shadow-xxsmall
shadow-xsmall
shadow-small
shadow-medium
shadow-large
shadow-xlarge
shadow-xxlarge
Buttons

Apply the structural button class first, then add one appearance variant and an optional size variant. The base class owns shape and spacing; combo classes own color or special behavior.

Button Variants
buttonis-primary
buttonis-secondary
buttonis-primaryis-small
buttonis-tertiary
buttonis-outline
Form Elements
Icons
icon-1x1-small
icon-1x1-medium
icon-1x1-large
Containers and Max Widths
container-large
container-medium
max-width-large
max-width-medium
max-width-small
Utility Classes

Each spacing utility is one global token. No combo class is required.

Padding
padding-global
padding-sectionpadding-small
padding-sectionpadding-medium
padding-sectionpadding-large
padding-sectionpadding-xlarge
Margin Bottom
margin-bottom-xxsmall
margin-bottom-xsmall
margin-bottom-small
margin-bottom-medium
margin-bottom-large
margin-bottom-xlarge
margin-bottom-xxlarge
margin-bottom-huge
Margin Top
margin-top-small
margin-top-medium
margin-top-large
margin-top-xlarge
margin-top-xxlarge
margin-top-huge
Margin Left and Right
margin-left-small
margin-left-medium
margin-left-large
margin-left-xlarge
margin-right-small
margin-right-medium
margin-right-large
margin-right-xlarge
Display and Alignment
display-blockdisplay-inline-flextext-align-lefttext-align-centertext-align-righthide

Interaction and forms

Reusable hover, focus, pressed, disabled, loading, and validation styles.

Buttons

button is-primary
button is-secondary
button is-tertiary
button is-outline
button is-large
button is-small
button is-icon
button is-loading
button :disabled
button is-full-width

Form states

form-label + form-input + form-help-text

We will only use this for the example.

form-input aria-invalid + form-error-message

Please enter a valid value.

form-success-message

Your changes were saved.

Practical utilities

Global classes for links, layout, media, color, and accessible navigation.

Links and accessibility

nav-link + footer-link
skip-link + visually-hidden

The skip link appears when keyboard focused. A visually hidden span can provide a screen-reader label.

Accessible helper text

Layout and media

container-small + align-center
Centered small container
max-width-full + overflow-hidden + position-relative
Full width utility stack
aspect-ratio-square
aspect-ratio-landscape
aspect-ratio-portrait
aspect-ratio-video

image-cover · image-contain · image-full-width Apply these to real images; aspect ratio controls the wrapper.

Semantic feedback colors

background-color-successSuccess
background-color-warningWarning
background-color-dangerDanger

hide-tablet · hide-mobile-landscape · hide-mobile-portrait Visibility utilities apply below their named breakpoints.

Image fit, borders, and responsive visibility

image-cover
Blue circle on an abstract background
image-contain
Contained blue circle illustration
image-full-width
Full-width blue circle illustration
border-color-primary
border-color-secondary

hide-tablet Hidden at tablet and smaller.

hide-mobile-landscape Hidden at mobile landscape and smaller.

hide-mobile-portrait Hidden at mobile portrait.

Component patterns

Examples combine shared tokens with reusable component classes.

content-header_component

Page introduction

Use the content header to keep a heading, description, and action aligned.

See button examples
card_component + badge_component
Featured

Card heading

A card can hold content and an action without setting a fixed height.

View details
alert_component
Helpful notice

This pattern can be paired with semantic success, warning, or danger colors.

button-group_component
empty-state_component

No results yet

Try a different search or create your first item.

dialog_component

Dialog shell

Use this style with a real accessible dialog interaction when building a modal.

nav_component
footer_component