Quick start
Set up Shim in your project using the CLI.
Overview
Shim is a collection of accessible UI components built on React Aria Components. Components install into your codebase—so you own and customize them.
This guide walks you through setting up Shim using the CLI. For manual setup without the CLI, see the manual setup guide.
Set up
Shim requires Tailwind CSS for styling.
Follow the official Tailwind v4 installation guide for your framework (Next.js, Vite, etc.) before continuing.
Run the CLI to set up Shim. It checks for Tailwind, installs required dependencies, and scaffolds config, utilities, and theme CSS. For more commands and options, see the CLI guide.
pnpm dlx @kkga/shim initImport the theme CSS file in your main CSS file or root layout. Adjust the path
if you used a different --css-path during init.
@import "@/styles/theme.css";Shim uses the @/ alias—configure it in tsconfig.json (or jsconfig.json) so
imports resolve correctly.
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
}
}Next steps
- Try adding your first component: Button
- Learn about theming and customization
- Explore more CLI commands and options