# NeoUI -- Installation Reference ## Packages | Package | Description | Version | |---------|-------------|---------| | NeoUI.Blazor | Styled components (includes Primitives + all icons transitively) | 3.6.0 | | NeoUI.Blazor.Primitives | Headless accessibility layer only | 3.6.0 | | NeoUI.Icons.Lucide | 1,640 stroke-based icons | 3.0.0 | | NeoUI.Icons.Heroicons | 1,288 icons, 4 variants (outline/solid/mini/micro) | 3.0.0 | | NeoUI.Icons.Feather | 286 minimalist icons | 3.0.0 | ## Install Commands ```bash # Styled components -- everything included dotnet add package NeoUI.Blazor --version 3.6.3 # Headless primitives only (custom design system) dotnet add package NeoUI.Blazor.Primitives --version 3.6.3 # Icons (included transitively with NeoUI.Blazor) dotnet add package NeoUI.Icons.Lucide --version 3.0.0 dotnet add package NeoUI.Icons.Heroicons --version 3.0.0 dotnet add package NeoUI.Icons.Feather --version 3.0.0 ``` ## Service Registration (Program.cs) Required in both Server host and WASM client for InteractiveAuto: ```csharp builder.Services.AddNeoUIPrimitives(); builder.Services.AddNeoUIComponents(); ``` ## _Imports.razor ```razor @using NeoUI.Blazor @using NeoUI.Blazor.Services @using NeoUI.Icons.Lucide ``` For chart components: ```razor @using NeoUI.Blazor.Charts ``` For headless primitives: ```razor @using NeoUI.Blazor.Primitives @using NeoUI.Blazor.Primitives.Services ``` ## Theme CSS (App.razor) Place before `` in this order: ```html ``` This gives 5 × 17 = 85 ready-made theme combinations. ## Icon Usage ```razor @* Lucide -- kebab-case name, Size, Class, StrokeWidth *@ @* Heroicons -- Name, Variant (Outline|Solid|Mini|Micro), Size *@ @* Feather *@ ``` ## Tailwind CSS v4 (Optional -- for custom styles) NeoUI ships pre-built CSS. Tailwind is only needed when customizing styles. ```bash npm install npm run build:css # one-time build npm run watch:css # dev watch mode ``` Add to .csproj to auto-build during dotnet build: ```xml ``` ## Compatibility - .NET 10+ (also compatible with .NET 8 and .NET 9) - All Blazor hosting models: Server, WebAssembly, Auto - Dark mode: automatic via CSS variables