Spotlight card
The plain Calamansi surface as a card, in white or the Calamansi, Slate and Citrus palettes.
Rind
The branded surface
One flat surface, clipped to the Calamansi squircle — a superellipse, not a border radius.
Flesh
Reads in both themes
White in light mode, near-black in dark, and each tinted palette carries the ink that sits on it.
Pick a palette — the surface stays flat and the corner stays the constant. Pass a different cornerRadius to tighten the curve.
Installation
npx shadcn@latest add fujiDevv/calamansi-ui/spotlight-cardHow to use
import { SpotlightCard } from "@/components/ui/spotlight-card"import { Leaf } from "lucide-react"export function Demo() {return (<SpotlightCardclassName="max-w-sm"icon={<Leaf className="size-5" />}title="Rind"subtitle="The branded surface"><p className="text-sm text-muted-foreground">One flat surface, clipped to the Calamansi squircle.</p></SpotlightCard>)}
Props
Options you can pass to customize this component.
titleoptionalReactNodeTitle displayed in the header.
subtitleoptionalReactNodeSubtitle or description shown under the title.
iconoptionalReactNodeIcon displayed alongside the title in the header.
badgeoptionalReactNodeBadge or element displayed at the top right.
headeroptionalReactNodeCustom header element replacing the default title row.
childrenoptionalReactNodeContent drawn inside the squircle.
cornerRadiusoptionalnumberCorner radius of the squircle, in pixels.
cornerSmoothingoptionalnumberCorner smoothing, from 0 (a rounded rectangle) to 1 (a full superellipse).
variantoptionalwhitecalamansislatecitrusSurface palette. Calamansi by default; White is white in light mode and near-black in dark, and the tinted palettes carry their own ink.
classNameoptionalstringExtra classes merged onto the card.
License & Usage
- •Free to use and modify in personal and commercial projects.
- •Attribution to Calamansi UI is appreciated when using a component.
- •Please do not resell the components as your own kit.