Installation: Vite + React
Add AsheeUI to a Vite React project.
Create a project
If you're starting fresh, scaffold a Vite React app:
pnpm create vite my-app --template reactIf 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/index.css
Add the provider
Wrap your app with AsheeUIProvider:
src/main.tsx
Framework-specific notes
- CSS import order: The
@import "asheeui/styles"must come after@import "tailwindcss"to ensure Tailwind utilities can override AsheeUI styles when needed. - Provider placement: Wrap the provider around your entire app, but inside
StrictModeto maintain React's development checks.
Verify it works
Render a Button in App.tsx:
You should see a styled button with the default theme. Open your browser's dev tools and check that the asheeui styles are loaded.