Componentes · Contenido
Ilustración <Illustration>
Las ilustraciones de marca: figuras, interior, ventana, mesa, playa, casa y globo, más las confirmaciones salto y postal.
import Illustration from '@vivla-cms/ds/primitives/Illustration.astro'Ejemplos
El set de ilustraciones
Los siete dibujos a mano alzada de Foundations (figuras, interior, ventana, mesa, playa, casa, globo) y las dos confirmaciones del hand-off (salto, postal). Van a tamaño mediano o grande y escalan con el ancho (w-*); nunca como icono.
---
import Illustration from '@vivla-cms/ds/primitives/Illustration.astro'
const names = ['figuras', 'interior', 'ventana', 'mesa', 'playa', 'casa', 'globo', 'salto', 'postal'] as const
---
{
names.map((name) => (
<figure class="flex flex-col items-start gap-3">
<Illustration name={name} class="h-48 w-auto" />
<figcaption class="font-mono text-small text-on-surface-muted">{name}</figcaption>
</figure>
))
} Un solo color, desde un rol
Por defecto text-on-surface, así que sigue al tema de la banda. Para recolorear pasa otro rol en class (text-accent).
---
import Illustration from '@vivla-cms/ds/primitives/Illustration.astro'
---
<Illustration name="globo" class="w-40" />
<Illustration name="globo" class="w-40 text-accent" />
<Illustration name="globo" class="w-40 text-on-surface-muted" /> Escala y accesibilidad
El alto sigue al ancho (cada SVG conserva la caja de Figma). Es decorativa por defecto; con alt pasa a ser una imagen con nombre.
---
import Illustration from '@vivla-cms/ds/primitives/Illustration.astro'
---
<div class="flex flex-wrap items-end gap-8">
<Illustration name="interior" class="w-24" />
<Illustration name="interior" class="w-48" />
<Illustration name="interior" alt="Un salón con chimenea" class="w-80" />
</div> Props
| Prop | Valores | Por defecto | Para qué |
|---|---|---|---|
| name * | figurasinteriorventanamesaplayacasaglobosaltopostal | — | — |
| alt | string | — | Accessible name; omit for a decorative drawing. |
Notas del código
El comentario de cabecera de Illustration.astro, tal cual (en inglés, como el código): si cambia el código, cambia esto.
the brand illustrations (Figma Foundations 284:11 «Set de ilustraciones»): freehand line drawing, vectorised as a single-colour fill, for brand scenes and moments at MEDIUM and LARGE sizes (never as an icon — icons are <Icon>, a 24 px stroke set).
<Illustration name="globo" class="w-64" /> // decorative
<Illustration name="interior" alt="Un salón con chimenea" class="w-96" /> The set (30/10/2026), one name per Foundations component:
| name | Figma | what it shows |
|----------|--------------------------|----------------------------------------|
| figuras | 348:11 Escenas | two people sitting, from behind |
| interior | 348:17 Escenas | a living room: chair, plants, rug |
| ventana | 500:75 Escenas | an open window over the sea |
| mesa | 503:60 Escenas | a table and chair under a vine |
| playa | 577:4 Escenas | a towel, a book and glasses on the sand|
| casa | 750:4 Escenas | a row of houses |
| globo | 348:28 Objetos | a globe |
| salto | hand-off 1607:8615 | two figures leaping into the sea, sun |
| postal | hand-off 1607:8617 | «I'd rather be here · my VIVLA home» | salto and postal are the two lead-dialog confirmations of the Web 2026 hand-off (ficha «Especificaciones» 1612:4201, 162 × 162; /listings «¿Qué casa buscas?» 1610:3299, 210 × 196). Figma carries them only as a pencil raster (the «Captura … 17.53.24» sheet, also loose on Foundations 284:11), so they are TRACED from that raster into the same single-colour fill — provisional until design adds the vectors to 284:11; replace the file, keep the name. postal has its English lettering drawn in.
One colour, from a role: the SVGs carry fill="currentColor" and the primitive sets text-on-surface (Figma's #1a1a1a / #111111 = content ink), so it follows the section theme; pass another role utility in class (text-accent, as the terracotta confirmations) to recolour. The viewBox is the drawing's own box (342 wide, as Foundations exports the component's vector — figuras 440 × 227, globo 296 × 328 from 25/10); it scales with width (w-*), height follows.
Decorative by default (aria-hidden); pass alt when the drawing carries meaning — it becomes role="img" with that name.
The files live in packages/design-system/illustrations/ (outside icons/, whose validator rejects fills) and are inlined at render time.
Dónde se usa
0 veces en 0 archivos de la web y los bloques del CMS.