Installation
Add the package to your app, import the stylesheet, and wrap your app in a Theme.Kookie UI is an open-source React component library, forked from Radix Themes and designed for scalable, consistent UIs with a fresh look. Installation is simple: import the CSS, wrap your app with the Theme provider, and start building.
Kookie UI is in beta. Components and APIs are still evolving, and breaking changes may happen. I recommend checking changelogs carefully before upgrading.
Install
Add Kookie UI to your project using your preferred package manager:
Requirements
Kookie UI works with React 16.8+ through React 19. TypeScript support is built-in. Node.js 16+ is required for development.
CSS
Import the complete stylesheet in your application entry point. The CSS import must come before any component imports.
Fonts
styles.css loads no webfonts — it defaults to system stacks, so installing Kookie costs zero font requests. Choose one of:
See Typography for the full font token model, including how to give headings their own typeface.
Theme Provider
Wrap your application with the Theme component to enable theming and design tokens. The Theme provider should be placed at the root of your application.
Framework Setup
Next.js App Router
For Next.js 13+ with the App Router, import the CSS in your root layout and wrap your app with the Theme provider:
Next.js Pages Router
For Next.js with the Pages Router, import the CSS in your _app.tsx:
Vite + React
For Vite projects, import the CSS in your main entry file:
Create React App
For Create React App projects, import the CSS in your index.tsx:
Remix
For Remix projects, import the CSS using the links export in your root component:
Gatsby
For Gatsby projects, import the CSS in gatsby-browser.js, then wrap your app in the Theme provider:
Usage
Import components and start building:
Blocks
For larger patterns, such as code blocks, documentation layouts and marketing sections, copy a block into your project. Blocks are source files built on Kookie UI, not a package, so there is nothing else to install beyond the few dependencies each one lists.
Troubleshooting
CSS Not Loading
If styles aren't appearing, ensure the CSS import comes before any component imports:
TypeScript Errors
Ensure you have the React types installed:
Theme Provider
Make sure the Theme component wraps your entire application at the root level. Check that you're using the correct import path and that the component is rendered before any Kookie UI components.
© 2026 Kushagra Dhawan. Licensed under MIT. GitHub.