All registry items
primitives/r/surface-tile.json
Surface Tile
Depth via flat tonal steps instead of muddy drop shadows.
Surface Tile
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Porcelain
--t-surface-warm
Workspace
--t-surface-cool
Aloe
--t-surface-mint
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/surface-tile.jsonDependencies
Tonal Registry Dependencies
npm Packages
clsxtailwind-merge
Usage
import { SurfaceTile } from "@/components/tonal/surface-tile";
<SurfaceTile tone="cool" padding="lg">
Flat tonal container
</SurfaceTile>Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "white" | "neutral" | "warm" | "cool" | "sky" | "mint" | "sand" | "neutral" | Surface token tint. |
| bordered | boolean | false | Adds hairline subtle border (automatic for white). |
| padding | "none" | "sm" | "md" | "lg" | "md" | Internal spacing preset. |