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.

@tonal-tokensclsxtailwind-merge
Porcelain
--t-surface-warm
Workspace
--t-surface-cool
Aloe
--t-surface-mint

Installation

npx shadcn@latest add https://tonal.harlo.dev/r/surface-tile.json

Dependencies

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

PropTypeDefaultDescription
tone"white" | "neutral" | "warm" | "cool" | "sky" | "mint" | "sand""neutral"Surface token tint.
borderedbooleanfalseAdds hairline subtle border (automatic for white).
padding"none" | "sm" | "md" | "lg""md"Internal spacing preset.