Installation
Kookie UI is an open-source React component library, forked from Radix Themes and designed for scalable, consistent UIs with a fresh look.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:
shellshellshellRequirements
Kookie UI works with React 16.8+ through React 19. TypeScript support is built-in. Node.js 16+ is required for development.
jsonCSS
Import the complete stylesheet in your application entry point. The CSS import must come before any component imports.
tsxTheme 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.
tsxFramework 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:
tsxNext.js Pages Router
For Next.js with the Pages Router, import the CSS in your _app.tsx:
tsxVite + React
For Vite projects, import the CSS in your main entry file:
tsxCreate React App
For Create React App projects, import the CSS in your index.tsx:
tsxRemix
For Remix projects, import the CSS using the links export in your root component:
tsxGatsby
For Gatsby projects, import the CSS in gatsby-browser.js, then wrap your app in the Theme provider:
jstsxUsage
Import components and start building:
tsxTroubleshooting
CSS Not Loading
If styles aren't appearing, ensure the CSS import comes before any component imports:
tsxTypeScript Errors
Ensure you have the React types installed:
shellTheme 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.