1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografía typographyheadingoutline

Outlined Heading

Titular con texto hueco delimitado únicamente por contornos vectoriales sin relleno.

Vista Previa en Vivo

Outlined Heading

Uso

Copia y pega este código directamente en tu página de Astro:

astro
---
import { OutlinedHeading } from 'astro-component-kit';
---

<StrokeHeadingOutline>Content</StrokeHeadingOutline>
--- import { OutlinedHeading } from 'astro-component-kit'; --- <StrokeHeadingOutline>Content</StrokeHeadingOutline>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/lib/OutlinedHeading.astro:

astro
---
---
<h2 class="stroke-h"><slot /></h2>
<style>
  .stroke-h { font-size: 4rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 0.05em; transition: 0.3s; margin: 0; }
  .stroke-h:hover { -webkit-text-stroke-color: #6366f1; }
  @media (max-width: 768px) { .stroke-h { font-size: 2.5rem; } }
</style>
--- --- <h2 class="stroke-h"><slot /></h2> <style> .stroke-h { font-size: 4rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 0.05em; transition: 0.3s; margin: 0; } .stroke-h:hover { -webkit-text-stroke-color: #6366f1; } @media (max-width: 768px) { .stroke-h { font-size: 2.5rem; } } </style>

Información Rápida

Categoría
Tipografía
Nombre de archivo
OutlinedHeading.astro
Dependencias
Ninguna — Astro nativo + CSS puro
Etiquetas
typographyheadingoutline