Style

Riferimento visivo di font, colori, spacing, text-* e heading. Stesse scale del progetto.

Fonts

CSS: --font-title / --font-body · classi: font-title / font-body · Gutenberg: Anton / Outfit

Anton --font-title font-title Titoli sezione / hero (.section-title, .servizio-hero__title)

ROYALFIT

Outfit --font-body font-body Testo body, UI, bottoni, breadcrumb

Allenati con metodo, energia e professionisti.

Font size

Gutenberg Font size (XS–XXL) = utility .text-* = var(--text-*).

XS text-xs --text-xs --wp--preset--font-size--xs 11px · Tag, meta, label piccole

The quick brown fox jumps over the lazy dog.

S text-s --text-s --wp--preset--font-size--s 13px · Bottoni, breadcrumb, UI compact

The quick brown fox jumps over the lazy dog.

M text-m --text-m --wp--preset--font-size--m 16px · Body default

The quick brown fox jumps over the lazy dog.

L text-l --text-l --wp--preset--font-size--l 18px · Lead / testo enfatizzato

The quick brown fox jumps over the lazy dog.

XL text-xl --text-xl --wp--preset--font-size--xl 24px · Sottotitoli, card title

The quick brown fox jumps over the lazy dog.

XXL text-xxl --text-xxl --wp--preset--font-size--xxl 40px · Display medio (non hero)

The quick brown fox jumps over the lazy dog.

Headings

Blocco Heading H1–H4 in Gutenberg, oppure classi .h1–.h4 su qualsiasi elemento.

H1 <h1> .h1 clamp(2rem, 5vw, 3.5rem) · Titolo pagina / sezione (.section-title)

Esempio titolo H1

H2 <h2> .h2 clamp(1.8rem, 3.5vw, 2.6rem) · Sottosezioni (.servizio-heading)

Esempio titolo H2

H3 <h3> .h3 1.5rem · Titoli card / blocchi

Esempio titolo H3

H4 <h4> .h4 1.15rem · Titoli minori

Esempio titolo H4

Colors

--bg Background · #080808
--bg2 Background Soft · #111111
--bg3 Background 3 · #181818
--accent Accent · #E30613
--accent2 Accent 2 · #B50510
--white White · #ffffff
--gray Gray · #888888
--gray-light Gray Light · #cccccc

Spacing scale

CSS var(--space-*) · Gutenberg preset --wp--preset--spacing--* · stessi valori.

--space-xs XS · 8px
--space-s S · 16px
--space-m M · 24px
--space-l L · 40px
--space-xl XL · 80px
--space-xxl XXL · 120px

Utility classes

Usale su WH Container / blocchi (Additional CSS class). Esempio: mt-m py-xl

mt-* — margin-top

mt-xs mt-s mt-m mt-l mt-xl mt-xxl

mb-* — margin-bottom

mb-xs mb-s mb-m mb-l mb-xl mb-xxl

my-* — margin-block (top+bottom)

my-xs my-s my-m my-l my-xl my-xxl

mx-* — margin-inline (left+right)

mx-xs mx-s mx-m mx-l mx-xl mx-xxl

pt-* — padding-top

pt-xs pt-s pt-m pt-l pt-xl pt-xxl

pb-* — padding-bottom

pb-xs pb-s pb-m pb-l pb-xl pb-xxl

py-* — padding-block

py-xs py-s py-m py-l py-xl py-xxl

px-* — padding-inline

px-xs px-s px-m px-l px-xl px-xxl

Gutenberg preset

Nel pannello Margin/Padding del blocco trovi gli stessi step (XS→XXL). Equivalgono alle utility.

--wp--preset--spacing--xs = 8px
--wp--preset--spacing--s = 16px
--wp--preset--spacing--m = 24px
--wp--preset--spacing--l = 40px
--wp--preset--spacing--xl = 80px
--wp--preset--spacing--xxl = 120px