Skip to content
npm ↗ GitHub ↗

Documentation

05/Structure

Section header

Numbered label, h2 title and paragraph. It's the piece that gives each section its editorial rhythm.

Basic

02/Servicios

Seis servicios.
Un solo equipo.

Cada proyecto se construye a la medida, con el mismo estándar de calidad.

HTML
<div class="cb-section-head">
  <div class="cb-label"><b>02/</b>Servicios</div>
  <h2 class="cb-h2">Seis servicios.<br>Un solo equipo.</h2>
  <p class="cb-lead">Cada proyecto se construye a la medida, con el mismo estándar de calidad.</p>
</div>

Centered

03/Proceso

Hecho con cuidado. Pensado para durar.

El párrafo se centra solo con el modificador.

HTML
<div class="cb-section-head cb-section-head--center">
  <div class="cb-label"><b>03/</b>Proceso</div>
  <h2 class="cb-h2">Hecho con cuidado. <em>Pensado para durar.</em></h2>
  <p class="cb-lead">El párrafo se centra solo con el modificador.</p>
</div>

Full section

cb-section provides 110px of vertical padding (80px on mobile) and the bottom line.

04/Contacto

¿Tienes un proyecto?

Cuéntanos qué necesitas.

HTML
<section class="cb-section">
  <div class="cb-wrap">
    <div class="cb-label"><b>04/</b>Contacto</div>
    <h2 class="cb-h2">¿Tienes un proyecto?</h2>
    <p class="cb-lead">Cuéntanos qué necesitas.</p>
  </div>
</section>

Classes and modifiers

ClassDescription
.cb-sectionSection with vertical padding and a bottom border. --flush removes the border.
.cb-wrapContainer utility: --cb-max width and 24px gutter (16px on mobile).
.cb-section-head--centerCenters the block and the paragraph.
.cb-labelUppercase label. b uses the accent color; the line is removed with --plain.
.cb-h2Title with clamp(30px, 4.6vw, 54px) and -0.05em tracking.
.cb-h3Card or block title, 17px.

Accessibility

  • Keep the heading order: h1 in the hero, h2 per section, h3 inside each section.