Site color

Choose your site’s color palette.

Saved on this device.

Panel

PanelContent surface

Give related content a place of its own. Semantic surfaces, layered treatments, and deliberate inner spacing.

Layout & content

Panel renders a section around a separate body container. Put spacing on the body when its children need breathing room.

In context

A project at a glanceCOMPOSITION
Ready

Design system

A shared foundation for your next interface.

12

Components

2

Themes

Explore the system

Tone, treatment, bodyClass, and the content slot work together in this summary.

<Panel tone="neutral" variant="surface" bodyClass="p-4">
<Flex align="center" justify="between" wrap="true">
<IconFrame name="lucide:layers" tone="feature" variant="surface"/>
<Badge tone="success">Ready</Badge>
</Flex>
<h3>Design system</h3>
<p>A shared foundation for your next interface.</p>
<Grid columns="2">
<div>
<strong>12</strong>
<p>Components</p>
</div>
<div>
<strong>2</strong>
<p>Themes</p>
</div>
</Grid>
<BtnLink href="/components/" tone="accent" variant="outline">Explore the system</BtnLink>
</Panel>

A release summary

Combine a quiet surface with a clear heading, status and a real destination.

Release workspace

Ready

Your content, components and theme are ready for review.

Explore the library
<Panel tone="neutral" variant="surface" bodyClass="p-4">
  <Flex align="center" justify="between" wrap="true">
    <h3 class="m-0">Release workspace</h3>
    <Badge tone="success">Ready</Badge>
  </Flex>
  <p>Your content, components and theme are ready for review.</p>
  <BtnLink href="/components/" tone="accent">Explore the library</BtnLink>
</Panel>

Surface hierarchy

Use a stronger tone for important context and a quiet nested surface for supporting details.

Primary context

A surface connects related content.

Nested details stay readable.

Supporting context

An outline separates content without a second filled surface.

<Grid columns="1" columnsSm="2">
  <Panel tone="accent" variant="surface" bodyClass="p-4">
    <h3>Primary context</h3>
    <p>A surface connects related content.</p>
    <Panel tone="neutral" variant="outline" bodyClass="p-3">
      Nested details stay readable.
    </Panel>
  </Panel>
  <Panel tone="neutral" variant="outline" bodyClass="p-4">
    <h3>Supporting context</h3>
    <p>An outline separates content without a second filled surface.</p>
  </Panel>
</Grid>

The link provides navigation and keyboard semantics. The panel provides the visual response.

<a href="/components/landing/feature-card/" class="d-block">
  <Panel tone="accent" variant="outlineFill" variantMode="stateful" bodyClass="p-4">
    <strong>Build a feature card</strong>
    <p class="mb-0">Explore richer card composition.</p>
  </Panel>
</a>

All semantic tones

All ten supported tones. A semantic palette communicates intent; visible labels keep the meaning explicit.

All semantic tonesCOMPOSITION
neutral
neutral

Content with room to breathe.

accent
accent

Content with room to breathe.

feature
feature

Content with room to breathe.

secondary
secondary

Content with room to breathe.

custom
custom

Content with room to breathe.

ghost
ghost

Content with room to breathe.

info
info

Content with room to breathe.

success
success

Content with room to breathe.

warning
warning

Content with room to breathe.

danger
danger

Content with room to breathe.

Every value is visible. Compare treatments in the site’s light and dark themes.

All visual variants

All eighteen supported treatments, shown together.

All visual variantsCOMPOSITION
solid
solid

Content with room to breathe.

surface
surface

Content with room to breathe.

surfaceAlt
surfaceAlt

Content with room to breathe.

spotlight
spotlight

Content with room to breathe.

glass
glass

Content with room to breathe.

flat
flat

Content with room to breathe.

flatAlt
flatAlt

Content with room to breathe.

flatSolid
flatSolid

Content with room to breathe.

outlineFill
outlineFill

Content with room to breathe.

outline
outline

Content with room to breathe.

subtle
subtle

Content with room to breathe.

subtleBtn
subtleBtn

Content with room to breathe.

link
link

Content with room to breathe.

sheen
sheen

Content with room to breathe.

underline
underline

Content with room to breathe.

rail
rail

Content with room to breathe.

bracket
bracket

Content with room to breathe.

none
none

Content with room to breathe.

Every value is visible. Compare treatments in the site’s light and dark themes.

Variant modes

Stateless shows the base treatment. Stateful includes hover, focus, and active styling; it does not add an action handler.

Variant modesCOMPOSITION
stateless
stateless

Content with room to breathe.

stateful
stateful

Content with room to breathe.

Every value is visible. Compare treatments in the site’s light and dark themes.

Inner spacing and composition

bodyClass styles the inner body rather than the outer surface. variantMode can style a whole linked surface; a Panel itself is a section.

Inner spacing and compositionCOMPOSITION
Compact
A compact summary
Comfortable

Room to read

A longer message fits comfortably.

Custom layout
Build checksPassed

Every value is visible. Compare treatments in the site’s light and dark themes.

Behavior and accessibility

Panel does not add an action or an accessible label. Give content sections a heading; use a real link or button for interactions. Its default overflow is hidden: add the existing overflow-visible utility when a popup inside the panel needs to escape.

API reference

Panel contract

Props below are the public template API. RefOrValue accepts a literal or a reactive ref; bind refs with a colon-prefixed attribute. Native attributes and events can be passed through the component root.

tone

RefOrValue<SemanticTone>
Default
inherited

Semantic intent: neutral, accent, secondary, info, success, warning, danger, feature, custom or ghost. The active skin supplies the colors.

variant

RefOrValue<ComponentVariant>
Default
surface

Visual treatment. Accepts solid, surface, surfaceAlt, spotlight, glass, flat, flatAlt, flatSolid, outlineFill, outline, subtle, subtleBtn, link, sheen, underline, rail, bracket or none.

variantMode

RefOrValue<ComponentVariantMode>
Default
stateless

Use stateless for content surfaces; stateful enables the treatment’s hover, focus and active styles. It does not add interaction handlers.

bodyClass

RefOrValue<string>
Default
not set

Classes applied to the inner panel body. Use spacing utilities such as p-4 or layout utilities without changing the outer surface.

Composition

Default slot: arbitrary flow content inside the body. Register definePanelComponents; composed content registers its own component families.