AnimatedLogo
Reveals any inline SVG logo with accessible, reduced-motion-aware animation.
- Frameworks
- Astro · React · Elements · Dioxus
- Registry
lumen add AnimatedLogo- Interaction
- Native markup
See it and copy it
Framework example
Choose Astro, React, Elements, or Dioxus to compare native usage against the shared visual output. Each example assumes the framework-level setup is already complete.
View AnimatedLogo code
Framework usage
Switch targets to compare the adapter code. This live preview runs the Astro example. Before copying an example, complete the matching framework setup; React, Elements, and Dioxus use their own behavior APIs.Width controls resize the preview container. Resize your browser to test viewport breakpoints.---
import { AnimatedLogo, Button } from '@santi020k/lumen-astro'
---
<section class="animated-logo-demo" data-animated-logo-demo>
<div class="animated-logo-demo__grid">
<figure>
<AnimatedLogo class="animated-logo-demo__lumen">
<svg
aria-labelledby="lumen-logo-title lumen-logo-description"
role="img"
viewBox="0 0 214.32 64"
xmlns="http://www.w3.org/2000/svg"
>
<title id="lumen-logo-title">Lumen UI</title>
<desc id="lumen-logo-description">The Lumen UI monogram and wordmark with a warm point of light.</desc>
<image href="/logo.svg" width="214.32" height="64" />
</svg>
</AnimatedLogo>
<figcaption>Generic reveal</figcaption>
</figure>
<figure>
<AnimatedLogo animation="sequence" class="animated-logo-demo__santi">
<svg
aria-label="Santi020k"
role="img"
viewBox="0 0 504 80"
xmlns="http://www.w3.org/2000/svg"
>
<g>
<rect
data-ui-logo-pop
fill="#5a0fdb"
height="80"
rx="18"
width="80"
>
</rect>
<path
d="M26 28 40 40 26 52"
data-ui-logo-draw
fill="none"
stroke="#fff"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="8"
style="--ui-logo-delay: 300ms; --ui-logo-path-length: 60;"
>
</path>
<line
data-ui-logo-draw
stroke="#fff"
stroke-linecap="round"
stroke-width="8"
style="--ui-logo-delay: 500ms; --ui-logo-path-length: 60;"
x1="48"
x2="62"
y1="52"
y2="52"
>
</line>
</g>
<text
data-ui-logo-reveal
fill="currentColor"
font-family='"Montserrat", "Avenir Next", "Segoe UI", sans-serif'
font-size="48"
font-weight="800"
letter-spacing="-0.04em"
style="--ui-logo-delay: 700ms;"
x="100"
y="56"
>
Santi<tspan fill="#713bf7" font-weight="700" letter-spacing="-0.02em">020k</tspan>
</text>
</svg>
</AnimatedLogo>
<figcaption>Sequenced layers</figcaption>
</figure>
</div>
<Button data-animated-logo-replay size="sm" variant="outline">
Replay animation
</Button>
</section>
<script>
for (const demo of document.querySelectorAll('[data-animated-logo-demo]')) {
const replayButton = demo.querySelector<HTMLButtonElement>('[data-animated-logo-replay]')
replayButton?.addEventListener('click', () => {
for (const logo of demo.querySelectorAll('[data-ui-animated-logo]')) {
logo.replaceWith(logo.cloneNode(true))
}
})
}
</script>
<style>
.animated-logo-demo {
display: grid;
gap: 1.25rem;
justify-items: start;
width: 100%;
}
.animated-logo-demo__grid {
display: grid;
gap: 1rem;
width: 100%;
}
figure {
align-items: center;
background: hsl(var(--surface-muted));
border: 1px solid hsl(var(--line));
border-radius: var(--ui-radius-lg);
color: hsl(var(--ink));
display: grid;
gap: 1rem;
justify-items: center;
margin: 0;
min-height: 12rem;
padding: 1.5rem;
}
figcaption {
color: hsl(var(--ink-muted));
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.animated-logo-demo__lumen {
height: 4rem;
max-width: 19rem;
}
.animated-logo-demo__santi {
height: 4.5rem;
max-width: 28rem;
width: 100%;
}
@media (min-width: 48rem) {
.animated-logo-demo__grid {
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
}
</style>import type { CSSProperties } from 'react'
import { AnimatedLogo, Button } from '@santi020k/lumen-react'
const exampleStyle0: CSSProperties & Record<`--${string}`, string | number> = { "--ui-logo-delay": "300ms", "--ui-logo-path-length": "60" }
const exampleStyle1: CSSProperties & Record<`--${string}`, string | number> = { "--ui-logo-delay": "500ms", "--ui-logo-path-length": "60" }
const exampleStyle2: CSSProperties & Record<`--${string}`, string | number> = { "--ui-logo-delay": "700ms" }
export const Example = () => (
<>
<section className="animated-logo-demo" data-animated-logo-demo>
<div className="animated-logo-demo__grid">
<figure>
<AnimatedLogo className="animated-logo-demo__lumen">
<svg
aria-labelledby="lumen-logo-title lumen-logo-description"
role="img"
viewBox="0 0 214.32 64"
xmlns="http://www.w3.org/2000/svg"
>
<title id="lumen-logo-title">Lumen UI</title>
<desc id="lumen-logo-description">The Lumen UI monogram and wordmark with a warm point of light.</desc>
<image href="/logo.svg" width="214.32" height="64" />
</svg>
</AnimatedLogo>
<figcaption>Generic reveal</figcaption>
</figure>
<figure>
<AnimatedLogo animation="sequence" className="animated-logo-demo__santi">
<svg
aria-label="Santi020k"
role="img"
viewBox="0 0 504 80"
xmlns="http://www.w3.org/2000/svg"
>
<g>
<rect
data-ui-logo-pop
fill="#5a0fdb"
height="80"
rx="18"
width="80"
>
</rect>
<path
d="M26 28 40 40 26 52"
data-ui-logo-draw
fill="none"
stroke="#fff"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="8"
style={exampleStyle0}
>
</path>
<line
data-ui-logo-draw
stroke="#fff"
stroke-linecap="round"
strokeWidth="8"
style={exampleStyle1}
x1="48"
x2="62"
y1="52"
y2="52"
>
</line>
</g>
<text
data-ui-logo-reveal
fill="currentColor"
font-family='"Montserrat", "Avenir Next", "Segoe UI", sans-serif'
font-size="48"
font-weight="800"
letter-spacing="-0.04em"
style={exampleStyle2}
x="100"
y="56"
>
Santi<tspan fill="#713bf7" font-weight="700" letter-spacing="-0.02em">020k</tspan>
</text>
</svg>
</AnimatedLogo>
<figcaption>Sequenced layers</figcaption>
</figure>
</div>
<Button data-animated-logo-replay size="sm" variant="outline">
Replay animation
</Button>
</section>
</>
)<script type="module">
import { defineLumenElements } from '@santi020k/lumen-elements/define'
defineLumenElements()
</script>
<section class="animated-logo-demo" data-animated-logo-demo>
<div class="animated-logo-demo__grid">
<figure>
<lumen-animated-logo class="animated-logo-demo__lumen">
<svg
aria-labelledby="lumen-logo-title lumen-logo-description"
role="img"
view-box="0 0 214.32 64"
xmlns="http://www.w3.org/2000/svg">
<title id="lumen-logo-title">Lumen UI</title>
<desc id="lumen-logo-description">The Lumen UI monogram and wordmark with a warm point of light.</desc>
<image href="/logo.svg" width="214.32" height="64"/>
</svg>
</lumen-animated-logo>
<figcaption>Generic reveal</figcaption>
</figure>
<figure>
<lumen-animated-logo animation="sequence" class="animated-logo-demo__santi">
<svg
aria-label="Santi020k"
role="img"
view-box="0 0 504 80"
xmlns="http://www.w3.org/2000/svg">
<g>
<rect
data-ui-logo-pop
fill="#5a0fdb"
height="80"
rx="18"
width="80">
</rect>
<path
d="M26 28 40 40 26 52"
data-ui-logo-draw
fill="none"
stroke="#fff"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="8"
style="--ui-logo-delay: 300ms; --ui-logo-path-length: 60;">
</path>
<line
data-ui-logo-draw
stroke="#fff"
stroke-linecap="round"
stroke-width="8"
style="--ui-logo-delay: 500ms; --ui-logo-path-length: 60;"
x1="48"
x2="62"
y1="52"
y2="52">
</line>
</g>
<text
data-ui-logo-reveal
fill="currentColor"
font-family='"Montserrat", "Avenir Next", "Segoe UI", sans-serif'
font-size="48"
font-weight="800"
letter-spacing="-0.04em"
style="--ui-logo-delay: 700ms;"
x="100"
y="56">
Santi<tspan fill="#713bf7" font-weight="700" letter-spacing="-0.02em">020k</tspan>
</text>
</svg>
</lumen-animated-logo>
<figcaption>Sequenced layers</figcaption>
</figure>
</div>
<lumen-button data-animated-logo-replay size="sm" variant="outline">
Replay animation
</lumen-button>
</section>use dioxus::prelude::*;
use lumen_dioxus::prelude::*;
#[component]
fn Example() -> Element {
rsx! {
// The canonical Lumen mark: copy apps/docs/public/icon.svg instead of redrawing it.
AnimatedLogo { animation: AnimatedLogoAnimation::Sequence, aria_label: "Lumen UI", role: "img",
svg { "aria-hidden": "true", view_box: "0 0 64 64", width: "32", height: "32",
rect { "data-ui-logo-pop": "", width: "64", height: "64", rx: "14", fill: "#0f172a" }
path {
"data-ui-logo-draw": "",
"pathLength": "100",
style: "--ui-logo-delay: 300ms;",
d: "M15 16V47H24 M33 28V40C33 46 36.5 49 42 49S51 46 51 40V28",
fill: "none",
stroke: "#f8fafc",
stroke_width: "6.5",
stroke_linecap: "round",
stroke_linejoin: "round",
}
circle { "data-ui-logo-pop": "", style: "--ui-logo-delay: 700ms;", cx: "51", cy: "16", r: "4", fill: "#f59e0b" }
}
}
}
}Choose your target
Add this component
Choose the package for your runtime. All adapters share the Lumen stylesheet. Use the matching registry command when you want a local wrapper for that framework.
pnpm add @santi020k/lumen-astrolumen add AnimatedLogopnpm add @santi020k/lumen-reactlumen add AnimatedLogo --target reactpnpm add @santi020k/lumen-elementslumen add AnimatedLogo --target elementsAPI reference
Lumen-specific props and runtime attributes for the Astro primitive. Use the framework differences above and the copyable examples for React composition and Elements attributes; the public adapter types define their supported contracts.
| Attribute | Values | Default | Description |
|---|---|---|---|
| children | inline SVG | required | Wraps any inline SVG logo and applies the reveal animation without changing its artwork. |
| animation | "reveal" | "sequence" | "reveal" | Uses a whole-logo reveal, or enables opt-in pop, draw, and reveal hooks inside the SVG. |
| data-ui-logo-pop, data-ui-logo-draw, data-ui-logo-reveal | SVG attributes | - | Marks SVG layers for the matching effect when animation="sequence". |
| --ui-animated-logo-duration | CSS time | "700ms" | Customizes the reveal duration. |
| --ui-animated-logo-delay | CSS time | "0ms" | Delays the reveal for coordinated compositions. |
| class, className | string | "" | Merges custom classes with the generated ui-* root classes. |
| ...native attributes | HTML attributes | - | Forwards standard attributes to the root element unless the component consumes them. |
Customize AnimatedLogo
Start with semantic theme tokens and a class on the public component. Keep its accessible name, focus treatment, and interaction state intact.
.product-animated-logo {
--surface: 0 0% 100%;
--ink: 220 20% 15%;
--line: 220 15% 82%;
}Apply product-animated-logo through Astro's class, React's className, or the custom element's class. Verify foreground and background contrast in both schemes.
| Hook | Values | Default | Contract |
|---|---|---|---|
| data-ui-logo-pop, data-ui-logo-draw, data-ui-logo-reveal | SVG attributes | - | Marks SVG layers for the matching effect when animation="sequence". |
| class, className | string | "" | Merges custom classes with the generated ui-* root classes. |
Use the documented hooks above and adapter types when targeting component states. Theme guide · Accessibility verification scope