Saltar al contenido principal
← 🎨 CSS as a design systemΒ·MΓ³dulo B3 Β· LecciΓ³n 13
TareaQuick recap. Write CSS that uses all 4 B1-B3 fundamentals. Define :root with --gap: 12px. Apply box-sizing: border-box to *. Make .row a grid with grid-template-columns: 100px 100px 100px and gap: var(--gap). The 4 checks verify each.

Recap: Cascade, box, layout, grid

50 XP5 min
TeorΓ­a

Quick recap β€” Modules B1-B3

Box, layout engines, grid. The 4 things you write in every real stylesheet:

  1. `:root` custom properties β€” design tokens (--space-md, --color-bg) that flow through the cascade.
  2. `var(--token)` β€” consume the token. Browsers fall back to the second arg if undefined.
  3. `box-sizing: border-box` β€” width includes padding+border. Universal selector, once, on *.
  4. `display: grid` + `grid-template-columns` β€” the modern default. Flex is for one axis, grid for two.

If any feels random, redo B1-04 / B1-06 / B2-09 / B3-02 then come back.

πŸ”’

RegΓ­strate para empezar a programar

La teorΓ­a estΓ‘ abierta a todos. El editor, la vista previa y el check se desbloquean con una prueba gratis de 7 dΓ­as β€” se requiere tarjeta, cancela cuando quieras.

Registrarse β€” prueba gratis β†’

Las primeras 10 lecciones de cada ruta son gratis. No se necesita tarjeta.

← AnteriorSiguiente lecciΓ³n β†’

Recibe un consejo de Python o web al dΓ­a β€” por email

Corto, escrito a mano, sin spam. Anula la suscripciΓ³n en un clic.