Saltar al contenido
DS

Componentes · Texto

Logotipo <Wordmark>

El logotipo de VIVLA en el color del texto: nunca se redibuja ni se recolorea con un código de color.

import Wordmark from '@vivla-cms/ds/primitives/Wordmark.astro'

Ejemplos

En cada tema

El logotipo es currentColor: espresso sobre claro, blanco sobre oscuro, porque sigue a text-on-surface. Nunca se recolorea con un código de color, nunca se redibuja ni se cambia el espaciado de las letras.

Escala con el ancho

Se dimensiona con el ancho (w-*); el alto sigue la proporción (1920 × 501). Del favicon a la portada, el mismo dibujo.

Espacio de seguridad

clearspace añade alrededor el margen mínimo que dibuja Foundations (3,25 % del ancho por lado). Crece con el logo. La caja punteada solo marca el límite para verlo aquí.

sin clearspace
clearspace

Con nombre o decorativo

Por defecto es una imagen llamada «VIVLA». Dentro de un enlace que ya tiene nombre (el inicio de la cabecera), usa decorative para no repetirlo.

Props

Props de Wordmark
Prop Valores Por defecto Para qué
label string 'VIVLA' Accessible name when the logo carries meaning (default "VIVLA").
decorative boolean false Hide it from assistive tech when adjacent text already names the brand.
clearspace boolean false Pad the logo with its minimum clear space (3.25 % of the width per side).

Notas del código

El comentario de cabecera de Wordmark.astro, tal cual (en inglés, como el código): si cambia el código, cambia esto.

the official VIVLA logotype, inline and in currentColor. Geometry is copied verbatim from the brand pack (assets/logo/vivla-logotipo-{black,white}.svg, same paths as assets/vivla-wordmark.svg); only the fill changed to currentColor, so the colour always comes from a role utility on the element or an ancestor (text-on-surface, text-accent…). Never recolour it with a hex, never redraw or re-kern it. It scales with width (w-*); height follows the 1920 × 501.48 viewBox.

<Wordmark class="w-40 text-on-surface" />                  // role="img", name "VIVLA"
<a href="/" aria-label="VIVLA, inicio"><Wordmark decorative class="w-32" /></a>

Ink (Figma Foundations): espresso on light, white on dark — it follows text-on-surface. clearspace adds the minimum clear space Foundations draws around the logotype (220 × 68 box, 7.15 px inset = 3.25 % of the box width). It widens the viewBox by that margin, so the space scales with the logo at any size. Opt-in: layouts that already leave room do not need it.

<Wordmark clearspace class="w-56 text-on-surface" />

Use decorative whenever the surrounding element already carries the accessible name (a home link with aria-label, a heading that spells it). Inline markup on purpose (no ?raw import) so it renders the same in every Astro context: apps/web pages, cms-blocks renderers, the hero.

Dónde se usa

15 veces en 10 archivos de la web y los bloques del CMS.

Ver los archivos
esc