NeoBrutalism.Blazor 1.1.1

dotnet add package NeoBrutalism.Blazor --version 1.1.1
                    
NuGet\Install-Package NeoBrutalism.Blazor -Version 1.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NeoBrutalism.Blazor" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NeoBrutalism.Blazor" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="NeoBrutalism.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NeoBrutalism.Blazor --version 1.1.1
                    
#r "nuget: NeoBrutalism.Blazor, 1.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NeoBrutalism.Blazor@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NeoBrutalism.Blazor&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=NeoBrutalism.Blazor&version=1.1.1
                    
Install as a Cake Tool

NeoBrutalism.Blazor

A Blazor Razor Class Library providing a complete set of Neo Brutalism UI components — bold borders, hard shadows, uppercase typography, and vibrant colors.

Inspired by neobrutalism.dev, built natively for Blazor (.NET 10+).


Installation

dotnet add package NeoBrutalism.Blazor

The package is published on nuget.org. No additional feed configuration is needed.


Setup

1. Add the stylesheet

In App.razor (Blazor Web App) or _Host.cshtml, add the design system CSS before your own styles:

<link rel="stylesheet" href="_content/NeoBrutalism.Blazor/nb-design-system.css" />

2. Add the global using

In your _Imports.razor:

@using NeoBrutalism.Blazor

That's it. All components, enums, and models are now available everywhere.


Theming

All visual tokens are CSS custom properties (--nb-*). Override them in two ways.

Option A — NBThemeProvider (scoped override)

<NBThemeProvider Theme="@_theme">
    <Routes />
</NBThemeProvider>

@code {
    private NBTheme _theme = new()
    {
        Primary = "#6366f1",
        PrimaryHover = "#4f46e5",
        Background = "#faf5ff"
    };
}

Option B — CSS override

:root {
    --nb-primary: #6366f1;
    --nb-primary-hover: #4f46e5;
    --nb-shadow: 6px 6px 0 #000;
}

Available tokens

CSS variable NBTheme property Default Description
--nb-black Black #000000 Borders and text
--nb-white White #ffffff Component backgrounds
--nb-bg Background #f5f0e8 Page background
--nb-bg-secondary BackgroundDark #e8dfd0 Secondary background
--nb-primary Primary #ff6b2b Primary accent
--nb-primary-hover PrimaryHover #e55a1f Primary hover state
--nb-danger Danger #ff4444 Destructive color
--nb-danger-hover DangerHover #cc3333 Destructive hover
--nb-success Success #22c55e Success color
--nb-muted Muted #6b7280 Muted/helper text
--nb-shadow Shadow 4px 4px 0 #000 Hard shadow
--nb-radius Radius 0 Border radius
--nb-font Font 'Inter', sans-serif Font family

Components

For the full component reference — usage examples, parameters, and live demos — see the documentation site.


Running the docs locally

The docs are a Blazor WebAssembly app located in docs/.

cd docs
dotnet run

Then open the URL shown in the terminal (default: http://localhost:5000).

Hot reload

dotnet watch

Prerequisites

  • .NET 10 SDK
  • The library project in src/ (already referenced via ProjectReference)

Running the tests

The test project uses bUnit and xUnit. To run all tests:

dotnet test tests/NeoBrutalism.Blazor.Tests.csproj

Contributing

Contributions are welcome! Please read CONTRIBUTING.md before submitting a PR.


License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.1 127 4/21/2026
1.1.0 112 4/13/2026
1.0.0 111 4/12/2026