Add shadcn/ui components
add_shadcnFor React sites: set the site up for Tailwind CSS and shadcn/ui and add components to src/components/ui/ (button, card, dialog, drawer = bottom sheet, sheet = side panel, carousel, tabs, accordion, form, select, sonner toasts, ...). A modern, less "templated" look than MUI, and every component is a file in the site that can be restyled. Writes src/tailwind.css (Tailwind plus the theme: colours and corner radius as CSS variables), src/lib/utils.ts and the components with what they need, and loads the stylesheet from src/main.jsx. Call it without components to see what exists. Then import them, e.g. import { Button } from "@/components/ui/button", style with Tailwind classes, and build_app. Use either shadcn/ui or MUI for a site's own pages, not both.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>"
},
"name": "add_shadcn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| radius | No | Corner radius, e.g. "0.5rem"; "0rem" for square corners | |
| primary | No | Brand colour for buttons and highlights, e.g. "#0f766e" | |
| overwrite | No | Replace components already in the site (they may have been edited) | |
| base_color | No | Grey scale of the theme (default neutral) | |
| components | No | Component names, e.g. ["button", "card", "drawer"]. What they need is added too. |