Installation: TanStack Start
Add AsheeUI to a TanStack Start project.
Create a project
If you're starting fresh, scaffold a TanStack Start app:
pnpm dlx create-tanstack-app my-app --template startIf you have an existing project, skip to the next step.
Install packages
pnpm add asheeui@latestConfigure Tailwind
Add the AsheeUI styles import to your global CSS file:
src/styles.css or app/styles.css
Add the provider
Wrap your root route with AsheeUIProvider:
src/routes/__root.tsx
Note: If your root file is src/router.tsx instead of __root.tsx, the same wrapping applies. Locate where children is rendered and wrap it with <AsheeUIProvider>.
Framework-specific notes
suppressHydrationWarning: Required on the<html>element to prevent hydration mismatches from theme switching.- CSS import order: The
@import "asheeui/styles"must come after@import "tailwindcss"to ensure Tailwind utilities can override AsheeUI styles when needed.
Verify it works
Render a Button in one of your routes:
You should see a styled button with the default theme. Open your browser's dev tools and check that the asheeui styles are loaded.