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.
---
import Wordmark from '@vivla-cms/ds/primitives/Wordmark.astro'
---
<Wordmark class="w-64 text-on-surface" /> 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.
---
import Wordmark from '@vivla-cms/ds/primitives/Wordmark.astro'
---
<div class="flex flex-wrap items-end gap-8">
<Wordmark class="w-16 text-on-surface" />
<Wordmark class="w-28 text-on-surface" />
<Wordmark class="w-48 text-on-surface" />
<Wordmark class="w-96 max-w-full text-on-surface" />
</div> 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 ---
import Wordmark from '@vivla-cms/ds/primitives/Wordmark.astro'
---
<div class="flex flex-col gap-2">
<code class="font-mono text-small text-on-surface-subtle">sin clearspace</code>
<div class="outline outline-dashed outline-line"><Wordmark class="block w-56 text-on-surface" /></div>
</div>
<div class="flex flex-col gap-2">
<code class="font-mono text-small text-on-surface-subtle">clearspace</code>
<div class="outline outline-dashed outline-line"><Wordmark clearspace class="block w-56 text-on-surface" /></div>
</div> 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
| 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
- apps/web/src/pages/dev/kit.astro ×3
- apps/web/src/layouts/chrome/Footer.astro ×2
- apps/web/src/layouts/chrome/Nav.astro ×2
- packages/cms-blocks/src/renderers/ComparisonTable.astro ×2
- apps/web/src/layouts/chrome/menu/MenuTopbar.astro ×1
- apps/web/src/sections/listing/ListingShare.astro ×1
- packages/cms-blocks/src/renderers/Chapter/wordmark.astro ×1
- packages/cms-blocks/src/renderers/Hero/cover.astro ×1
- packages/cms-blocks/src/renderers/Hero/home.astro ×1
- packages/cms-blocks/src/renderers/Hero/studio.astro ×1