New:New releases:CLIcreate-clubedge-app v0.49.1·Clubedge Starter v0.32.0

Clubedge Starter Docs

UI

The shared shadcn/ui package on Base UI primitives, theming, and where components belong.

The shared component package is @clubedge/ui. It uses the shadcn base-nova style, which generates components backed by @base-ui/react rather than Radix UI. The landing page and dashboard demonstrate the shared sidebar, breadcrumbs, theme switch, buttons, cards, badges, separators, inputs, labels, and tables.

Add a component

Generate a shared component from the repository root using the web app's config:

pnpm dlx shadcn@latest add badge -c apps/web

Shared components are generated under packages/ui/src/components and imported from @clubedge/ui/components/<component>. Put app-only components in apps/web/src/components.

The app's components.json and packages/ui/components.json direct the shadcn CLI into the shared package. They intentionally share the base-nova style, neutral color base, Lucide icons, Tailwind v4 stylesheet, and RTL-aware generation setting; keep them aligned when you change any of these.

React + Vite

The React + Vite frontend has no components.json of its own, so -c apps/web finds no configuration there. Add one with the same settings as TanStack Start's, then run the command above:

apps/web/components.json
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "base-nova",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "",
    "css": "../../packages/ui/src/styles/globals.css",
    "baseColor": "neutral",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@clubedge/ui/lib/utils",
    "ui": "@clubedge/ui/components",
    "lib": "@/lib",
    "hooks": "@/hooks"
  },
  "iconLibrary": "lucide",
  "rtl": true
}

Theme

Tailwind CSS 4 and semantic theme tokens are defined in packages/ui/src/styles/globals.css and imported by the app's root route (on React + Vite, by src/styles.css). Theme colors are centralized there: blue #2563eb as the primary color, and a #151515 page background in dark mode.

A light/dark switch is available in the landing page and dashboard navigation. Its choice is saved in local storage, and the initial theme follows the system preference until the user selects one.

Language and direction

The rtl setting makes newly generated components RTL-aware. The app currently renders English in LTR; set lang and dir on the root <html> element to match your application's locale.

How is this guide?