Skip to Content

Cloud Shapes

Paper-white decorative shapes lit with a two-color crescent shadow, in fourteen geometries from circle and pill to egg, arch and shield. Pinned to a daylight look; the shading deepens on dark grounds.

View as Markdown
pnpm dlx shadcn add @01orbital/cloud-shapes

Usage

import { CloudShape } from "@/components/graphics/cloud-shapes"

Examples

Class Selectorcloud-shapes-class-selector

Studio class announcement example built on Cloud Shapes: a caps eyebrow, a heading and a radio choice-card picker for two classes, each led by a shape in its own palette, on sand paper grain. A sign-up or workshop announcement for a site.

pnpm dlx shadcn add @01orbital/cloud-shapes-class-selector

Magazine Covercloud-shapes-magazine-cover

Cloud Shapes Magazine Cover: an example of cloud-shapes.

pnpm dlx shadcn add @01orbital/cloud-shapes-magazine-cover

Team Avatarscloud-shapes-team-avatars

Cloud Shapes Team Avatars: an example of cloud-shapes.

pnpm dlx shadcn add @01orbital/cloud-shapes-team-avatars

Paper Objectscloud-shapes-paper-objects

Material study example built on Cloud Shapes for a site hero or feature band: warm paper objects with coral, teal and ochre crescent shadows on paper grain, under a caps eyebrow and a short headline.

pnpm dlx shadcn add @01orbital/cloud-shapes-paper-objects

API reference

A paper-white shape lit from the upper left, with a tinted crescent of shade, used as decoration or as a stand-in avatar. The paper stays light in every theme; in dark mode the shading is stronger so it does not read as flat white.

Hidden from assistive tech, so any children (an initial, an icon) are hidden with it; give decorative content only. Children are centered inside the shape in dark ink (paper stays light in every theme; set a text color with className to change it), and nothing changes without them. Shading strength is the --cloud-depth variable (1 in light, 2.5 in dark), which you can override through style.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.

Used in blocks

6 blocks are built with Cloud Shapes: