Patterns · Marketing
Art panel
Abstract artwork for hero and service cards: a dark base, thin-rimmed shapes and one bright highlight. Each service gets its own drawing and tone.
import { ArtPanel } from '@statix/ui/art-panel';Playground
<ArtPanel class="h-80 rounded-card" />Examples
Variants
Navy discs for hosting, moss ripples for domains, plum embrace for care. columns is the fourth drawing, used for optimisation.
<script lang="ts">
import { ArtPanel } from '@statix/ui/art-panel';
</script>
<div class="grid w-full grid-cols-2 gap-4 tablet:grid-cols-4">
<ArtPanel variant="discs" tone="navy" class="aspect-[5/7] rounded-card" />
<ArtPanel variant="ripples" tone="moss" class="aspect-[5/7] rounded-card" />
<ArtPanel variant="embrace" tone="plum" class="aspect-[5/7] rounded-card" />
<ArtPanel variant="columns" tone="clay" class="aspect-[5/7] rounded-card" />
</div>Tones
Any drawing works in any of the five tones. Keep one pairing per service across the site.
<script lang="ts">
import { ArtPanel } from '@statix/ui/art-panel';
</script>
<div class="grid w-full grid-cols-5 gap-3">
{#each ['navy', 'plum', 'moss', 'clay', 'slate'] as const as tone (tone)}
<ArtPanel {tone} variant="discs" class="aspect-[5/7] rounded-lg" />
{/each}
</div>With content
Children render above the art. Text on it is white by default.
Domains
Your name on the web, renewed on time.
<script lang="ts">
import { ArtPanel } from '@statix/ui/art-panel';
import { Button } from '@statix/ui/button';
import ArrowRightIcon from '@lucide/svelte/icons/arrow-right';
</script>
<div class="p-6 tablet:p-10">
<ArtPanel variant="ripples" tone="moss" anchor="start" class="h-[420px] rounded-card">
<div class="flex h-full flex-col justify-end gap-5 p-8 tablet:p-10">
<p class="text-label tracking-[0.04em] text-white/70 uppercase">Domains</p>
<h3 class="max-w-[420px] text-heading text-white">Your name on the web, renewed on time.</h3>
<div>
<Button variant="light">
Search a domain
<ArrowRightIcon data-icon="inline-end" />
</Button>
</div>
</div>
</ArtPanel>
</div>Guidelines
Do
- Give the panel a size: a height, an aspect ratio or a grid cell to fill.
- Use the same variant and tone for a service everywhere it appears.
Don't
- Don’t put long text on the art. A title and one action are enough.
- Don’t use art panels inside the customer area. They belong to marketing pages.
Accessibility
- The drawing and the grain layer are aria-hidden. The panel itself has no role.
- Children keep their own semantics. White text passes AA on the dark base, but not on the bright highlight. Keep text clear of it.
API reference
ArtPanel
renders<div> and accepts its attributes| Prop | Type | Default |
|---|---|---|
variant | 'discs' | 'ripples' | 'embrace' | 'columns' Which drawing to show. | 'discs' |
tone | 'navy' | 'plum' | 'moss' | 'clay' | 'slate' Colour family, one step darker than the bg-tone-* fills. | 'navy' |
anchor | 'center' | 'start' Where the 400 x 560 drawing sits when the panel is wider than it. | 'center' |
ref bind | HTMLDivElement | null The panel element. | – |
class | ClassValue Merged with the defaults; set size and radius here. | – |
| Data attribute | Meaning |
|---|---|
data-slot="art-panel" | The panel. |
data-variant / data-tone | The current drawing and tone. |
data-slot="art-panel-content" | Wrapper around children. |