Documentation menu
Getting Started
Components
Primitives
- Agent Thinking
- Alert
- Alert Dialog
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Checkbox
- Command
- Command Palette
- Context Menu
- Data Table
- Dialog
- Dropdown Menu
- Empty
- Field
- Glow Cloud
- Input
- Label
- Medication Schedule
- Period Tabs
- Popover
- Rainbow Button
- Scroll Area
- Select
- Selectable Card
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Tag
- Textarea
- Timeline
- Tooltip
- Use Count Up
Charts and metrics
Patterns
- Confirm Button
- Date Picker
- Embedded
- Empty State
- Entity Drawer
- Error Boundary
- Field Row
- File Dropzone
- Form Dialog
- Kv
- List Editor
- List Page
- Live Time
- Mini Table
- Money
- Note Field
- Note Text
- Page Card
- Page Header
- Page Tabs
- Page Toolbar
- Person Cell
- Picture Field
- Print Card
- Range Switcher
- Row Actions
- Search Input
- Search Select
- Selected Box
- Signature Pad
- Status Badge
- Sub Nav Layout
- Suggest Input
- Tab Icons
- Table Footer
- Theme Accent Picker
- Time Picker
- View All Link
Dashboard cards
Advanced
Device frames
Website widgets
Website screens
Website panels
Getting Started
Installation
Point your project at the registry, then add components one at a time.
Requirements
- A React project: Astro with
@astrojs/react, Vite, Next.js or similar. - Tailwind CSS v4.
- A path alias such as
@/*intsconfig.json, and in your bundler config if it needs its own. - Node 20 or newer to run the CLI.
1. Configure components.json
The CLI reads components.json to learn where files go and how to rewrite imports. Create it by running init, or write it by hand. The important part for vcare/ui is the registries entry, which registers the @vcare namespace.
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/styles/global.css",
"baseColor": "neutral",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"registries": {
"@vcare": "https://ui.vcarehms.com/r/{name}.json"
}
}You can also register the namespace from the command line:
npx shadcn@latest registry add @vcare=https://ui.vcarehms.com/r/{name}.jsonThe {name} placeholder is replaced with the item name, so @vcare/button fetches https://ui.vcarehms.com/r/button.json.
2. Add the theme
The theme writes styles/vcare.css: every token, the Tailwind mappings (bg-primary, h-control, shadow-raised…), light and dark, accents and density. Import it after Tailwind; Theming has the fonts and attributes.
npx shadcn@latest add @vcare/vcare-theme@import "tailwindcss";
@import "@fontsource/google-sans/400.css";
@import "@fontsource/google-sans/600.css";
@import "@fontsource-variable/geist";
@import "./vcare.css";
/* Let Tailwind see the classes in your components folder. */
@source "../components";3. Add components
npx shadcn@latest add @vcare/button @vcare/cardDependencies are resolved for you. Adding button also installs utils, render-compat, class-variance-authority and radix-ui. The files appear at src/components/ui/.
Or skip the namespace entirely and install from a URL:
npx shadcn@latest https://ui.vcarehms.com/r/button.json4. Use them
import { Button } from "@/components/ui/button"
export function Example() {
return <Button variant="outline">Hello vcare</Button>
}In Astro, add client:load or client:visible to interactive components. Purely presentational ones such as Card and Badge render fine as static HTML.
Dark mode