---
name: gelatin-ui
description: Build UI with Gelatin UI React components and blocks from the shadcn registry. Use it when components.json names the @gelatin-ui registry, or when the user asks for a Gelatin UI item, page, block, or theme.
allowed-tools: Bash(npx shadcn@latest *), mcp__gelatin-ui
---

# Gelatin UI

Free and pro React components and blocks, ready for the shadcn registry. Each item is source code that `shadcn add` copies into the project. You own the code after the add.

## Project context

!`npx shadcn@latest info --json`

Read the aliases, the Tailwind version, and the installed items above before you plan.

## Call order

The MCP server is `https://gelatinui.com/mcp` (Streamable HTTP, never SSE). Add it once as `gelatin-ui`: in Claude Code `claude mcp add --transport http gelatin-ui https://gelatinui.com/mcp`; in any other client, the steps of https://gelatinui.com/docs/mcp-server.md (its setups, then "Any other client").

1. `search_items` with one search per part of the UI in `queries` (up to 8 in one call). For a whole page, see [blocks](references/blocks.md). When the answer has `patterns`, read that pattern for its parts and rules.
2. `get_item` with the name: read the outline, then only the sections you need (`anatomy`, `usage`, `compose`, `props`).
3. `get_install_plan`: ask the questions it returns, show the plan, wait for the yes, then run the steps.
4. Write the code with the parts of the anatomy, and follow the rules in `craft` and the [UI guide](references/ui-guide.md).
5. `check_usage` with the code. Fix each problem and each `design` note, and check again.
6. Tell the user what you added and what is left.

In short: search_items → compare_items when two fit → get_item outline → get_item sections → get_install_plan → write → check_usage.

## Pick an item

Use an item before you write a styled `div`. Each category file has a need → item table.

- [Buttons](references/category-buttons.md): Button, Button Group, Copy Button, Hold Button, Split Button, Swipe to Confirm, Tactile Button, Theme Switch, 2 more.
- [Menus and Toolbars](references/category-menus-and-toolbars.md): Action Bar, Command, Context Menu, Corner Bloom, Magnifying Dock, Menu, Menubar, Morph Menu, 2 more.
- [Dialogs and Popovers](references/category-dialogs-and-popovers.md): Alert Dialog, Dialog, Dialog Stack, Drawer, Floating Panel, Hover Card, Lightbox, Link Preview, 2 more.
- [Navigation](references/category-navigation.md): Back To Top, Breadcrumb, Expandable Tabs, Native Navigation Stack, Navigation Menu, Pagination, Preview Rail, Rope Tabs, 6 more.
- [Layout](references/category-layout.md): Accordion, Aspect Ratio, Carousel, Collapsible, Decorative Separator, Direction, Gooey Accordion, Marquee, 10 more.
- [Cards and Surfaces](references/category-cards-and-surfaces.md): Card, Frame, Item.
- [Alerts and Progress](references/category-alerts-and-progress.md): Alert, Announcement, Announcement Bar, Circular Meter, Circular Progress, Dot Matrix, Dynamic Island, Empty, 7 more.
- [Badges and Avatars](references/category-badges-and-avatars.md): Avatar, Avatar Group, Badge, Country Flag, Dot, Generated Avatar, Icon Tile, Indicator, 2 more.
- [Sidebars](references/category-sidebars-blocks.md): Calendar Sidebar N.01, Campaigns Sidebar N.01, Chat Sidebar N.01, Database Sidebar N.01, Docs Sidebar N.01, Drive Sidebar N.01, Mail Sidebar N.01, Music Sidebar N.01, 7 more.
- [Typography](references/category-typography.md): Anchor, Blockquote, Highlight, Kbd, Mark, Text Fit, Typography.
- [FAQ](references/category-faq-blocks.md): FAQ N.01.
- [Inputs](references/category-inputs.md): Auto Scale Input, Currency Input, Editable, Expanding Search, IBAN Input, Input, Input Group, Input OTP, 10 more.
- [Choices](references/category-choices.md): Autocomplete, Cascader, Checkbox, Checkbox Group, Choice Card, Combobox, Emoji Picker, Morph Select, 10 more.
- [Testimonials](references/category-testimonials-blocks.md): Testimonials N.01, Testimonials N.02, Testimonials N.03, Testimonials N.04, Testimonials N.05, Testimonials N.06, Testimonials N.07, Testimonials N.08, 3 more.
- [Command Palette](references/category-command-palette-blocks.md): Command Palette N.01.
- [Sliders and Dials](references/category-sliders-and-dials.md): Angle Dial, Arc Wheel, Compass, Compass Dial, Date Wheel, Elastic Slider, Emoji Wheel, Histogram Slider, 8 more.
- [Forms](references/category-forms.md): Field, Form, Label, Password Strength, Questionnaire, Signature Pad.
- [Dates and Times](references/category-dates-and-times.md): Analog Clock, Calendar, Clock, Countdown, Date Display, Date Field, Date Input, Date Picker, 14 more.
- [Color](references/category-color.md): Color Area, Color Field, Color Format Field, Color Grid, Color Picker, Color Scale, Color Slider, Color Swatch, 7 more.
- [Files and Uploads](references/category-files-and-uploads.md): Attachment, Dropzone, File Icon, File Input, File Size, File Trigger, Glass Folder, Image Cropper.
- [Tables and Lists](references/category-tables-and-lists.md): Data Grid, Data List, Data Table, Filters, Kanban, Sortable List, Swipe Actions, Table, 2 more.
- [Numbers and Values](references/category-numbers-and-values.md): Address Display, Count Up, Full Value, Measurement, Name List, Number Text, Phone Display, Rolling Number.
- [Maps and Globes](references/category-maps-and-globes.md): Globe.
- [Photo and Video Effects](references/category-photo-and-video-effects.md): Comparison, Expand on Hover, Image.
- [Device Mockups](references/category-device-mockups.md): Android Phone, Android Status Bar, Android Tablet, Apple Watch, Browser Window, Device Frame, iOS Keyboard, iOS Lock Screen, 11 more.
- [Testimonials and Social](references/category-testimonials-and-social.md): Social Action, Testimonial, Testimonial Award, Testimonial Bubble, Testimonial Carousel, Testimonial Logo Grid, Testimonial Marquee, Testimonial Proof, 4 more.
- [Code and Developer Tools](references/category-code-and-developer-tools.md): API Reference, Code, Code Block, Code Editor, JSON Viewer.
- [Barcodes and QR Codes](references/category-barcodes-and-qr-codes.md): Australia Post Barcode, Aztec Code, Barcode, Code 128 Barcode, Code 39 Barcode, Data Matrix Code, DotCode, EAN-13 Barcode, 20 more.
- [Payments](references/category-payments.md): Asset Icon, Asset Picker, Card Brand, Card Code Input, Card Expiry Input, Card Field, Card Number Input, Credit Card, 5 more.
- [Onboarding](references/category-onboarding.md): Hand Mark, Hand Note.
- [Privacy and Consent](references/category-privacy-and-consent.md): Watermark.
- [Animated Icons](references/category-animated-icons.md): Animated Arrow Icon, Animated Battery Icon, Animated Bell Icon, Animated Bookmark Icon, Animated Cart Icon, Animated Check Icon, Animated Chevrons Up Down Icon, Animated Close Icon, 34 more.
- [Illustrations](references/category-illustrations.md): Activity Illustration 01, Analytics Illustration 01, API Keys Illustration 01, Bookmarks Illustration 01, Calendar Illustration 01, Cart Illustration 01, Comments Illustration 01, Customers Illustration 01, 41 more.
- [Text Reveals](references/category-text-reveals.md): Text Blur Reveal, Text Blur Scroll Reveal, Text Chromatic Reveal, Text Fade Reveal, Text Fade Scroll Reveal, Text Flip Reveal, Text Float Scroll Reveal, Text Grow Scroll Reveal, 7 more.
- [Text Transitions](references/category-text-transitions.md): Text Alphabet Rolling, Text Blur Morph, Text Countdown Words, Text Cut Rotate, Text Diff Typing, Text Fade Rotate, Text Flip Rotate, Text LED Departure Board, 15 more.
- [Text Highlights](references/category-text-highlights.md): Text Blur Focus Frame, Text Box Annotation, Text Bracket Annotation, Text Circle Annotation, Text Cross Annotation, Text Dim Focus Frame, Text Double Underline Annotation, Text Highlight Annotation, 7 more.
- [Decorative Text](references/category-decorative-text.md): Text Arc Path, Text Block Build, Text Circular, Text Constellation, Text Cross Stitch, Text Echo Trail, Text Lenticular, Text Letterpress, 12 more.
- [Interactive Text](references/category-interactive-text.md): Text Balloon, Text Cast Shadow, Text Domino, Text Elastic Letters, Text Falling, Text Grow Proximity, Text Lift Proximity, Text Magnetic Poetry, 5 more.
- [3D Text](references/category-3d-text.md): Text Fade Depth, Text Fold, Text Layered Depth Title, Text Outline Depth Title, Text Perspective, Text Ribbon, Text Soft Depth Title, Text Solid Depth, 1 more.
- [WebGL Text](references/category-webgl-text.md): Text ASCII, Text Bulge Warp, Text Cloth, Text Ferrofluid, Text Particle, Text Pinch Warp, Text Swirl Warp.
- [Dissolve Effects](references/category-dissolve-effects.md): Blinds Dissolve, Bounce Dissolve, Broom Dissolve, Bubble Dissolve, Burst Dissolve, Confetti Dissolve, Curtain Dissolve, Dust Dissolve, 22 more.
- [3D Galleries](references/category-3d-galleries.md): Concave Wall Gallery, Corridor Gallery, Dome Gallery, Drain Gallery, Film Reel Gallery, Flag Wave Gallery, Glass Slide Gallery, Helix Ribbon Gallery, 5 more.
- [Scroll Effects](references/category-scroll-effects.md): Footer Reveal, Frame Scrub, Layered Scene, Mask Reveal, Parallax, Parallax Image, Parallax Pattern, Parallax Wall, 7 more.
- [Pointer Effects](references/category-pointer-effects.md): Image Trail, Magnetic, Tilt.
- [Cursor Effects](references/category-cursor-effects.md): Cursor Magnifier.
- [Crumple and Ink Effects](references/category-crumple-and-ink-effects.md): Crumple to Delete, Receipt Printer, Scratch Card.
- [Physics and Toys](references/category-physics-and-toys.md): Coin Flip, Dice Roll, Pull Cord, Scatter Mark.
- [Glass and Light Effects](references/category-glass-and-light-effects.md): Border Beam.
- [Card Effects](references/category-card-effects.md): Event Badge.
- [Logo Animations](references/category-logo-animations.md): Burst Logo Rotate, Cube Logo Rotate, Drop Logo Rotate, Flip Logo Rotate, Morph Logo Rotate, Orbit Logo Rotate.
- [Screensavers](references/category-screensavers.md): Bounce, Pipes, Ribbons, Screensaver, Starfield.
- [Light Backgrounds](references/category-light-backgrounds.md): Fire Background, Glow Wave, Light Rays Background, Lightning Background.
- [Glyph Backgrounds](references/category-glyph-backgrounds.md): Glyph Arch Background, Glyph Beam Background, Glyph Blast Background, Glyph Curtain Background, Glyph Dawn Background, Glyph Eclipse Background, Glyph Ember Background, Glyph Lantern Background, 6 more.
- [Retro Backgrounds](references/category-retro-backgrounds.md): Fisheye Dots Background, Halftone Silk Background, Moire Weave Background.
- [Landscape Backgrounds](references/category-landscape-backgrounds.md): Cloud Sea Background, Contour Range Background, Isobar Chart Background, Paper Relief Background, Spiral Galaxy Background, Terrain Flyover Background, Tide Map Background.
- [Particle Backgrounds](references/category-particle-backgrounds.md): Aurora Strands Background, Field Lines Background, Ink Stir Background, Pond Background.

## Build good UI

Build every screen to the rules of the [UI guide](references/ui-guide.md). The ones that matter most:

- Build each item from its named parts as children, and pass your text and icons in as parts.
- Before you write a `div` with your own styles for a badge, a dot, a tray, a field, or an empty state, use the Gelatin UI item for it.
- Take every color from the theme tokens (`bg-card`, `text-muted-foreground`, `border-border`), so light and dark mode both work.
- Show depth with one step of the neutral tokens (page, card, muted) or one soft shadow, not with many borders or strong shadows.
- Use color only for a status, the brand action, or data; keep the rest neutral, and show a level with a small mark (a dot, a tinted badge) before a big fill.
- A rounded part inside a rounded parent has the radius of the parent minus the gap between them.
- Never change the font weight on hover, focus, selected, active, or open; change the color or the fill, so the text does not jump.
- Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Rules

- [Put titles, text, icons, and actions in parts, not in props](rules/structure-in-parts.md)
- [Keep each part inside its root](rules/parts-inside-root.md)
- [Make a part a link with `render`, not `href`](rules/links-through-render.md)
- [Use the Base UI prop names: `disabled`, `readOnly`, `invalid`](rules/base-ui-prop-names.md)
- [Import items from the paths of your `components.json`](rules/import-paths.md)
- [Color with the theme tokens, not with raw colors](rules/theme-tokens.md)
- [Keep `cursor-pointer` on everything a press acts on](rules/pointer-on-pressables.md)
- [Time motion with the motion tokens, and do not edit them](rules/motion-tokens.md)
- [Use a motion part, hook, or preset before you write motion by hand](rules/motion-owners-first.md)
- [Import Motion only from `@/lib/motion`](rules/motion-through-gateway.md)
- [Do not add a reduced-motion path to an item](rules/motion-no-reduced-motion.md)
- [Use a state machine for motion only when the motion has modes](rules/motion-machine-for-modes.md)
- [Keep a glide within 15px a frame with `clock: "auto"`](rules/motion-frame-budget.md)

## Pro items

- Never ask for the API key in chat, and never paste it in a file. The user sets `GELATIN_UI_PRO_TOKEN` in `.env`.
- `get_pro_access` says if the key has a Pro license, and its plan. A license opens every Pro item.
- When the key is missing or refused, stop and tell the user. Never write a copy of a Pro item by hand.

## Alpha

Gelatin UI is in alpha: items change often, and a new version can break your code. The code you add is yours, and it never changes unless you add the item again.
Before you add an installed item again, tell the user it can break their code, and follow [update](references/update.md) after a yes.

## References

- [Compound parts](references/compound-parts.md)
- [Install](references/install.md)
- [Theming](references/theming.md)
- [Motion](references/motion.md)
- [Pro access](references/pro-access.md)
- [Pages and blocks](references/blocks.md)
- [UI guide and screen patterns](references/ui-guide.md)
- [Update](references/update.md)
- Move from another component library: read the `references/migrate-<library>.md` file of that library, when one is in this folder.
- Report a wrong doc or a missing item with `send_feedback`.
