Website · Install · What's in it · Usage · AI & agents · Browser support · Development
Copy-paste frames, outlines and effects for React and Tailwind CSS.
fancyborders.vercel.app has every component running live, with controls to tune it, its code, and its props. Free and open source, forever.
Components install with the shadcn CLI into any React + Tailwind CSS v4 project. No components.json yet? Run npx shadcn@latest init first.
npx shadcn@latest add https://fancyborders.vercel.app/r/bracket-frame.jsonThe code lands in your project, along with anything it is built on and its CSS. It's yours to change.
| Kind | Items |
|---|---|
| Frames | frame (the primitive), bracket-frame, hatch-divider |
| Structure | page-rails, section-rule, section-grid |
| Shapes | shape-frame, ticket-frame, folder-frame, bubble-frame, edge-frame |
| Effects | frame-effects (gradient, glow, beam), frame-spotlight, frame-metal, beam-frame, glow-frame |
Swap the item name in the URL to install any of them. Line styles (dashes, marching ants) come with frame.
Use a preset as a wrapper:
import { BracketFrame } from "@/components/bracket-frame";
<BracketFrame className="p-5">
<Card />
</BracketFrame>;Or stack your own. Everything is a Frame with layers inside it; layers never affect layout, so the pieces combine:
import { Frame, FrameCorners, FrameRules } from "@/components/ui/frame";
import { FrameGlow, FrameGradient } from "@/components/ui/frame-effects";
<Frame radius={14} className="p-6">
<FrameRules overshoot={10} />
<FrameCorners mark="plus" />
<FrameGlow />
<FrameGradient />
Content
</Frame>;Style it with Tailwind. Colour, line width, radius and effect colours are utilities, variants included:
<Frame className="frame-line-2 frame-color-sky-500/50 hover:frame-color-sky-500 frame-from-indigo-300 frame-to-violet-400">Effects work in light and dark mode. Every animation stops for people who prefer reduced motion. The docs cover every component, layer, prop and utility.
Built to be used by coding agents as well as people:
- MCP server, hosted, no key:
https://fancyborders.vercel.app/mcp. For exampleclaude mcp add --transport http fancyborders https://fancyborders.vercel.app/mcp. - Agent skill:
npx skills add ommgh/fancyborders(source inskills/fancyborders). - shadcn registry and MCP:
npx shadcn@latest registry add @fancyborders=https://fancyborders.vercel.app/r/{name}.json, thennpx shadcn@latest add @fancyborders/glow-frame. - llms.txt, llms-full.txt, and every docs page as Markdown with
.mdon the end.
Setup for each client is on the AI & agents page.
Frames and page structure use widely supported CSS. Shape frames clip with clip-path and use border-shape where it exists (Chromium 147+); curved corners need CSS shape(). Beams need offset-path (Chromium 116, Firefox 122, Safari 18), and frame-metal needs WebGL. Each falls back to a plain border.
The site and the registry are one Next.js app.
bun install
bun dev # site at http://localhost:3000
bun run registry:build # writes registry.json and public/r/*.json
bun run build # registry, then the production build| Path | What it holds |
|---|---|
src/components/ui/, src/components/ |
The library: primitives with their CSS, and presets. |
registry/items.json |
The registry items. scripts/build-registry.mjs turns it into registry.json, then shadcn build writes public/r/. |
src/content/docs.ts |
Every component page and how the sidebar groups them. |
src/content/playgrounds/ |
Each page's live preview: controls, render and printed code. |
src/content/api.ts, src/demos/ |
Props tables, and examples shown running beside their source. |
src/lib/agents/, src/app/mcp/ |
Everything for agents: each page as Markdown, llms.txt and the MCP server, all built from the docs data. |
skills/fancyborders/ |
The agent skill. SKILL.md is written by hand; bun run skill:build regenerates its references after the docs data changes. |
src/components/site/ |
The site itself: header, ⌘K search (cmdk), theme switch (next-themes), sidebar (Animate UI), code blocks, playground. |
Install commands use NEXT_PUBLIC_SITE_URL, falling back to the Vercel production URL and then http://localhost:3000.
Adding a component: build it from the primitives in src/components/, add it to registry/items.json (with what it requires), give it an entry in src/content/docs.ts, a playground and its props, then run bun run registry:build and test the install from http://localhost:3000/r/<name>.json in another project. The gallery, sidebar, search, landing page and sitemap pick it up on their own.
The effects were inspired by Jakub Antalik's Border Beam and Metal FX. The shader and palettes in frame-metal are adapted from Metal FX under the MIT License; see THIRD_PARTY_NOTICES.md.