Matcha UI ships as the matcha-ui npm package. Your bundler compiles the TypeScript sources; Next.js apps should list the package in transpilePackages.
npm install matcha-uiIn your global stylesheet (for example app/globals.css), import Tailwind, the animation plugin, scan the package for class names, and apply Matcha theme tokens.
@import "tailwindcss";
@plugin "tailwindcss-animate";
@source "./node_modules/matcha-ui/src/**/*.tsx";
@import "matcha-ui/styles";import type { NextConfig } from "next";
const nextConfig: NextConfig = {
transpilePackages: ["matcha-ui"],
};
export default nextConfig;import { Button } from "matcha-ui";
export function Example() {
return <Button>Hello Matcha</Button>;
}For Phosphor icons in your app (recommended for parity with Matcha chart cards), install phosphor-react. See Phosphor icons in the docs.
npm install phosphor-reactPeer dependencies: react and react-dom (18+ or 19+). Radix, CVA, and Tailwind merge are bundled with the package.