01
Overview
A themed container that publishes its tone to descendant components through Svelte context.
Usage
Default
Standard content surface.
Raised
Elevated surface for overlays and panels.
Inset
Quiet container for nested content.
02
When to use
Use when
- Wrapping a region in a consistent background tone such as default, raised, or sunken.
- Letting nested components adapt their styling based on the surrounding surface tone.
Avoid when
- Building a self-contained content card with padding and elevation — use card instead.
- Standing up a full page scaffold with header and actions — use a hand-rolled page scaffold instead.
03
Examples
Basic surface
Tone variants for framed interface regions.
04
Props
Name | Type | Default | Description |
|---|---|---|---|
tone | 'default' | 'raised' | 'inset' | 'transparent' | 'default' | |
children | snippet | Content rendered inside the surface container. |