Install the package
Add Alpha UI to your project through your preferred package manager.
npm install alpha-ui-kitInstall the package, import the styles, and start building with the same structured docs flow used by mature design systems.
Package managers
Copy the command you need
npm install alpha-ui-kityarn add alpha-ui-kitpnpm add alpha-ui-kitbun add alpha-ui-kitAdd Alpha UI to your project through your preferred package manager.
npm install alpha-ui-kitLoad the stylesheet at your application root to enable component styling.
import 'alpha-ui-kit/styles.css'Import components and use them directly in your pages or design system.
import { Button, Card } from 'alpha-ui-kit'React setup
The library is designed for direct imports and simple composition, keeping the learning curve shallow and the output consistent.
import { Button, Card, Input } from 'alpha-ui-kit'
import 'alpha-ui-kit/styles.css'
export default function App() {
return (
<Card className="max-w-md p-6">
<Input label="Name" placeholder="Ada Lovelace" />
<Button className="mt-4" color="primary">
Continue
</Button>
</Card>
)
}Dark mode
Wrap your app with ThemeProvider and use the ThemeToggle component. All components respond automatically to the dark class.
// app/layout.tsx
import { ThemeProvider } from '@/components/ThemeProvider'
export default function RootLayout({ children }) {
return (
<html suppressHydrationWarning>
<body>
<ThemeProvider
attribute="class"
defaultTheme="light"
>
{children}
</ThemeProvider>
</body>
</html>
)
}next-themes — works with Next.js App Router and Pages Router.Continue into the docs to explore buttons, inputs, DataTable, Charts, and the rest of the 80+ component catalog.