# fancyborders > fancyborders is a free, open-source collection of borders, frames and enclosures for React and Tailwind CSS v4: structural frames (corner brackets, hatched dividers, intersection marks), page structure (rails, section rules, section grids), shaped outlines (bevelled, notched and scooped corners, tickets, folders, speech bubbles, zigzag and scalloped edges), line styles, and effects (gradient, glow, a travelling beam, a pointer spotlight, liquid metal). Components are copied into the project with the shadcn CLI, not installed as a package. - Install a component with the shadcn CLI: `npx shadcn@latest add https://fancyborders.vercel.app/r/frame.json`. The CLI copies the source into the project, adds the items it is built on, and writes its CSS into the global stylesheet. With the registry namespace set up (`npx shadcn@latest registry add @fancyborders=https://fancyborders.vercel.app/r/{name}.json`), `npx shadcn@latest add @fancyborders/frame` works too. - Everything is a `Frame` (from `@/components/ui/frame`) with decoration layers inside it, next to the content. Layers are absolutely positioned, never affect layout, and can go in any order. Presets such as `BracketFrame` and `GlowFrame` are short recipes over those layers. - Pages marked "recipe" have no registry item of their own: install the item they name, then copy the code from the page. - Style frames with Tailwind utilities rather than props where you can: `frame-color-*`, `frame-line-*`, `frame-radius-*`, and `frame-from-*` / `frame-via-*` / `frame-to-*` for effect colours. They take variants (`hover:`, `dark:`) and inherit, so a utility on a section themes every frame inside it. - Pad the frame, not the layers: give a frame the padding its content needs, and at least as much as any inset or bracket gap. - Effects work in light and dark mode. Give an effect card a background of its own (`bg-card`), and give shape frames a `fill` when using a glow, because the halo is the whole shape blurred behind it. - `frame-spotlight`, `frame-metal` and `edge-frame` are client components. Everything else renders on the server and is plain CSS. - Every animation stops for people who prefer reduced motion. - MCP server (Streamable HTTP, no auth): https://fancyborders.vercel.app/mcp - Agent skill: `npx skills add ommgh/fancyborders` ## Docs - [Introduction](https://fancyborders.vercel.app/docs.md) - [Installation](https://fancyborders.vercel.app/docs/installation.md) - [Theming](https://fancyborders.vercel.app/docs/theming.md) - [AI & agents](https://fancyborders.vercel.app/docs/ai.md) - [All components](https://fancyborders.vercel.app/docs/components.md) ## Components ### Frames Structural frames: brackets, rails, marks and hatching. - [Frame](https://fancyborders.vercel.app/docs/components/frame.md): The primitive everything else is built from: an enclosure plus border, rule, corner-mark and fill layers you compose yourself. Item: `frame`. - [Bracket Frame](https://fancyborders.vercel.app/docs/components/bracket-frame.md): Corner brackets around a dashed border. Item: `bracket-frame`. - [Hatch Divider](https://fancyborders.vercel.app/docs/components/hatch-divider.md): A hatched band between two lines for separating page sections, with marks where it meets the page rails. Item: `hatch-divider`. - [Crosshair](https://fancyborders.vercel.app/docs/components/crosshair.md): Rules that overshoot their corners, with a mark on each one. Item: `frame` (recipe). - [Blueprint](https://fancyborders.vercel.app/docs/components/blueprint.md): A pattern fill behind a border, with marks at the corners. Item: `frame` (recipe). ### Structure Rails, rules and section grids that lay out a whole page. - [Page Rails](https://fancyborders.vercel.app/docs/components/page-rails.md): The column a page is laid out in: a vertical rail down each side, optionally with a patterned gutter. Item: `page-rails`. - [Section Rule](https://fancyborders.vercel.app/docs/components/section-rule.md): A line between page sections that runs past the page rails, with a mark on each intersection. Item: `section-rule`. - [Section Grid](https://fancyborders.vercel.app/docs/components/section-grid.md): A grid whose cells share one line between them, with a mark on every crossing and columns that change at breakpoints. Item: `section-grid`. ### Shapes Outlines that are not rectangles, with borders that follow them. - [Shape Frame](https://fancyborders.vercel.app/docs/components/shape-frame.md): A frame whose outline follows a shape: bevelled, notched, scooped or rounded corners, and edges with a bite taken out. Item: `shape-frame`. - [Ticket Frame](https://fancyborders.vercel.app/docs/components/ticket-frame.md): A ticket with rounded corners, a perforated line and a tear-off stub. Item: `ticket-frame`. - [Folder Frame](https://fancyborders.vercel.app/docs/components/folder-frame.md): A folder with a tab on its top edge and a sloping shoulder down to the body. Item: `folder-frame`. - [Speech Bubble](https://fancyborders.vercel.app/docs/components/speech-bubble.md): A rounded box with a tail on any edge. The border runs around the tail unbroken. Item: `bubble-frame`. - [Edge Frame](https://fancyborders.vercel.app/docs/components/edge-frame.md): A frame with a pattern cut into its edges: zigzag teeth, waves, scallops or the bites of a stamp. Item: `edge-frame`. - [Receipt](https://fancyborders.vercel.app/docs/components/receipt.md): A slip of paper torn off along a zigzag edge. Item: `edge-frame` (recipe). - [Stamp](https://fancyborders.vercel.app/docs/components/stamp.md): A postage stamp: round bites out of all four edges. Item: `edge-frame` (recipe). ### Lines Line styles for any frame: dashes, native styles and motion. - [Dash Patterns](https://fancyborders.vercel.app/docs/components/dash-patterns.md): Dashed lines with the dash and the gap set independently, which a CSS border cannot do. Item: `frame` (recipe). - [Border Styles](https://fancyborders.vercel.app/docs/components/border-styles.md): Solid, dashed, dotted and double borders that follow the radius and can sit inside or outside the frame's edge. Item: `frame` (recipe). - [Marching Ants](https://fancyborders.vercel.app/docs/components/marching-ants.md): Dashed rules whose dashes travel around the frame, like a selection rectangle. Item: `frame` (recipe). ### Effects Gradient, glow and moving light, as more layers for a frame. - [Beam](https://fancyborders.vercel.app/docs/components/beam.md): A light that travels the border at a steady speed, around any proportions and any corner. Item: `beam-frame`. - [Glow](https://fancyborders.vercel.app/docs/components/glow.md): A gradient border with a halo of the same colours glowing behind it, still or turning. Item: `glow-frame`. - [Gradient](https://fancyborders.vercel.app/docs/components/gradient.md): A gradient drawn on the frame's line, in any colours and at any angle, optionally turning around the frame. Item: `frame-effects`. - [Pulse](https://fancyborders.vercel.app/docs/components/pulse.md): A halo that breathes in and out, for something that is live, recording or waiting. Item: `frame-effects` (recipe). - [Spotlight](https://fancyborders.vercel.app/docs/components/spotlight.md): Borders that light up near the pointer, across every frame on the page at once. Item: `frame-spotlight`. - [Liquid Metal](https://fancyborders.vercel.app/docs/components/liquid-metal.md): A moving metal ring drawn with WebGL, in chromatic, silver and gold. Item: `frame-metal`. ## Optional - [Everything in one file](https://fancyborders.vercel.app/llms-full.txt) - [Registry index](https://fancyborders.vercel.app/r/registry.json): every item as shadcn registry JSON; each item's JSON is at https://fancyborders.vercel.app/r/.json and includes its source and CSS - [Source code](https://github.com/ommgh/fancyborders)