Import

import SurfaceDemo from '../../components/utility/SurfaceDemo.astro';

Props

PropTypeRequiredDescription
namestringYesToken base name shown above the title (e.g. surface-raised)
titlestringYesDisplay title (e.g. Raised)
descriptionstringYesOne-line purpose
usagestringYesLonger usage paragraph
usedBystring[]NoComponent families using this surface
fillTokenstringYesCSS variable name for the fill (e.g. --color-fill-surface-raised)
borderTokenstringNoCSS variable name for the border
shadowTokenstringNoCSS variable name for the shadow
blurTokenstringNoCSS variable name for the backdrop blur (mutually exclusive with shadow)
stageFillTokenstringNoBackground of the preview stage (default --color-fill-surface-page)
variants{ name, fillToken, borderToken? }[]NoRenders multiple swatches instead of a single card
underlay{ fillToken, blurToken? }NoRenders an underlay layer behind the card (modal pattern)
idstringNoAnchor id for deep-linking (used by TOC navigation)

Preview

surface-raised

Raised

A standard card or panel lifted above the page.

Raised

The default choice for cards, content panels, and any container that needs a gentle elevation above the page.

Used by: Cards, Content panels

Tokens in bundle

background: var(--color-fill-surface-raised);
outline: var(--primitive-border-width-1) solid var(--color-border-surface-raised);
box-shadow: var(--shadow-surface-elevated);
Page tokens