Awesome
HonoX + shadcn/ui + ThemeProvider
[!WARNING]
This is an example of ThemeProvider. While the Light and Dark buttons work correctly when deployed to Cloudflare Pages, they do not function on the local development server started withbun run dev
.
Running locally
- Install dependencies using bun:
bun install
- Start the development server:
bun run dev
Initial setup
- Install bun using aqua
aqua i -l
- Create a HonoX project:
$ bun run npm create hono@latest
Need to install the following packages:
create-hono@0.7.3
Ok to proceed? (y) y
create-hono version 0.7.3
? Target directory honox-shadcn-ui-themeprovider
? Which template do you want to use? x-basic
ā Cloning the template
? Do you want to install project dependencies? yes
? Which package manager do you want to use? bun
ā Installing project dependencies
š Copied project files
Get started with: cd honox-shadcn-themeprovider
- Add
components.json
- Install dependencies:
# react
bun add react react-dom react-day-picker @hono/react-renderer -E
bun add @types/react @types/react-dom -E -d
# shadcn/ui
bun add tailwindcss postcss autoprefixer -E -d
bun x shadcn-ui@latest add button
bun add class-variance-authority -E
Thanks
License
MIT