@tsxr1ck/create-groundwork
v0.1.4
Published
> A minimal, opinionated React boilerplate — beautifully configured so you can skip the setup and start building.
Readme
⚡ Groundwork
A minimal, opinionated React boilerplate — beautifully configured so you can skip the setup and start building.
Quick Start
Scaffold a new project in seconds:
bun create @tsxr1ck/groundwork my-app
cd my-app
bun install
bunx --bun viteOr scaffold into the current directory:
mkdir my-app && cd my-app
bun create @tsxr1ck/groundwork .What's Inside
| Tool | Purpose | | --- | --- | | Vite | Lightning-fast dev server & build tool | | React 19 | UI library with the React Compiler enabled | | TypeScript | Type safety out of the box | | Tailwind CSS v4 | Utility-first styling | | shadcn/ui | Copy-paste accessible components | | React Router | Client-side routing | | Lucide React | Beautiful icons |
Design System
This boilerplate ships with a Material Design 3 + Apple HIG hybrid aesthetic:
- M3 Surface Roles — Off-white backgrounds (
oklch(0.985 0 0)) with pure white cards for proper elevation contrast - Apple Squircle Radius —
--radius: 1remapplied globally for soft, continuous curves - Glassmorphism — Reusable frosted glass utility pattern (
bg-background/60 backdrop-blur-2xl border border-border/50) - Dark Mode — Full
.darkclass toggling with persistence tolocalStorage - Responsive Press —
active:scale-[0.98]on buttons for iOS-scale physical feedback - Vibrancy — Translucent surfaces with
backdrop-blurand subtleshadow-[inset_0_1px_1px_rgba(255,255,255,0.15)]inner glow on primary actions
Toggle dark mode via the Sun/Moon icon in the top-right corner.
Project Structure
├── bin/cli.js # CLI scaffolding script
├── src/
│ ├── components/
│ │ ├── ui/ # shadcn/ui components (Button, etc.)
│ │ ├── theme-provider.tsx # Dark mode context & persistence
│ │ └── theme-toggle.tsx # Light/dark toggle button
│ ├── lib/ # Utilities (cn helper)
│ ├── pages/ # Route-level page components
│ │ ├── Home.tsx
│ │ └── Docs.tsx
│ ├── App.tsx # Router setup + ThemeProvider
│ ├── main.tsx # Entry point
│ └── index.css # Tailwind v4 config & M3/HIG theme tokens
├── index.html
├── vite.config.ts
└── package.jsonCommands
| Command | Description |
| --- | --- |
| bunx --bun vite | Start the dev server |
| bun run build | Build for production |
| bun run preview | Preview the production build |
| bun run lint | Run ESLint |
Adding Components
This project ships with shadcn/ui. Add any component with one command:
bunx --bun shadcn@latest add button
bunx --bun shadcn@latest add dialog
bunx --bun shadcn@latest add cardComponents are added to src/components/ui/ — they're yours to customize.
Alternative Install Methods
# Using bunx directly
bunx @tsxr1ck/create-groundwork my-app
# Install the CLI globally
bun install -g @tsxr1ck/create-groundwork
create-groundwork my-appLicense
MIT
