Patterns · Marketing
Logo
The Statix wordmark with its two-stroke mark, drawn inline as SVG. It needs no static files and scales with its height.
import { Logo } from '@statix/ui/logo';Playground
<Logo class="h-8" />Examples
Dark
The default for light backgrounds. 26px high.
<script lang="ts">
import { Logo } from '@statix/ui/logo';
</script>
<Logo />Light
tone="light" turns the wordmark white for ink and tone fills. The mark keeps its blue.
<script lang="ts">
import { Logo } from '@statix/ui/logo';
</script>
<Logo tone="light" />Mark only
For tight spaces such as a collapsed sidebar or an app tile.
<script lang="ts">
import { Logo } from '@statix/ui/logo';
</script>
<Logo markOnly class="h-8" />
<div class="flex size-14 items-center justify-center rounded-lg bg-ink">
<Logo markOnly tone="light" class="h-7" />
</div>Sizing
Set the height with a class. The width follows.
<script lang="ts">
import { Logo } from '@statix/ui/logo';
</script>
<Logo class="h-6" />
<Logo />
<Logo class="h-10" />As a home link
Wrap it in a link. The logo’s name "Statix" becomes the link text.
Guidelines
Do
- Size the logo by height: 24px in compact bars, 26px in the site header, larger only on splash screens.
- Leave at least the height of the mark as clear space around it.
Don't
- Don’t recolour the mark or stretch the logo. Pass tone instead of a text colour.
- Don’t put the dark logo on a tone fill. Use tone="light".
Accessibility
- Renders <svg role="img" aria-label="Statix">, so it reads as one image named Statix.
- Pass label="" when text next to it already says Statix. The SVG is then aria-hidden.
API reference
Logo
renders<svg> and accepts its attributes| Prop | Type | Default |
|---|---|---|
tone | 'dark' | 'light' dark: navy wordmark. light: white wordmark. | 'dark' |
markOnly | boolean Show only the mark. | false |
label | string Accessible name. An empty string hides the logo from assistive tech. | 'Statix' |
ref bind | SVGSVGElement | null The <svg> element. | – |
class | ClassValue Merged with the defaults; set the height here. | – |
| Data attribute | Meaning |
|---|---|
data-slot="logo" | Always present. |
data-tone | The current tone. |
logoVariants
The tailwind-variants function behind Logo.