Project Template
Scaffold a production-ready Blazor Web App pre-wired with NeoUI components — sidebar layout, theme switcher, dark mode toggle, and Spotlight command palette — in seconds.
Prerequisites
- .NET 10 SDK or later
- Node.js — required for the Tailwind CSS build step
Installation
Install the template package from NuGet once, then use it for any number of projects:
Verify the template is registered:
Quick Start
Automatic Build
dotnet build.
If node_modules is absent,
npm install runs automatically too —
Node.js just needs to be on your PATH.
Template Options
All options are available from the CLI and from the Visual Studio new project dialog.
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--interactivity |
-in |
Server | WebAssembly | Auto | Auto |
Blazor interactive render mode |
--allInteractive |
-al |
bool | false |
Make every page interactive (applied at
Routes.razor level)
|
--empty |
-e |
bool | false |
Skip sample pages (Home, Counter, Weather) |
--no-https |
-no |
bool | false |
Disable HTTPS in launch settings |
--use-program-main |
-us |
bool | false |
Use explicit
Program.Main
instead of top-level statements
|
Ports are randomized at scaffold time (HTTPS: 7100–7299 · HTTP: 5100–5299) so multiple projects never conflict.
Examples
Default: Auto interactivity, two-project solution
Server-side Blazor, single project
WebAssembly only
Auto, skip sample pages
Server, no HTTPS (e.g. behind a reverse proxy)
Auto, explicit Program.Main entry point
See all options
What You Get
Project Structure
The scaffolded structure depends on the interactivity mode selected.
Server mode — single project
Auto /
WebAssembly mode — two-project solution
NeoUI Components Included
| Component | Description |
|---|---|
Sidebar |
Collapsible sidebar with icon-only collapsed state |
ThemeSwitcher |
Base color theme selector (zinc, slate, gray, neutral, stone) |
DarkModeToggle |
Light / dark / system mode toggle |
SpotlightCommandPalette |
Ctrl+K command palette
(<Dialog> +
<CommandContent>)
|
ReconnectModal |
Custom SignalR reconnect UI (Server + Auto modes) |
AppLoader |
WASM initialization progress overlay |
Tailwind CSS v4
The template ships with a full Tailwind CSS v4 pipeline:
- OKLCH-based theme variables mapped to Tailwind color tokens
-
Light and dark mode via
.darkclass -
Custom alert color variables
(
--alert-success,--alert-warning, etc.) -
Auto-rebuild on every
dotnet buildvianpm run buildMSBuild target
Customizing the Theme
Open styles/theme.css in the client project
and replace the OKLCH variable values under
:root (light) and
.dark.
Any theme from tweakcn.com or
ui.shadcn.com/themes
is directly compatible.