TheNerdCollective.MudComponents.ResponsiveTypography 1.5.1

dotnet add package TheNerdCollective.MudComponents.ResponsiveTypography --version 1.5.1
                    
NuGet\Install-Package TheNerdCollective.MudComponents.ResponsiveTypography -Version 1.5.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="TheNerdCollective.MudComponents.ResponsiveTypography" Version="1.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TheNerdCollective.MudComponents.ResponsiveTypography" Version="1.5.1" />
                    
Directory.Packages.props
<PackageReference Include="TheNerdCollective.MudComponents.ResponsiveTypography" />
                    
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 TheNerdCollective.MudComponents.ResponsiveTypography --version 1.5.1
                    
#r "nuget: TheNerdCollective.MudComponents.ResponsiveTypography, 1.5.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 TheNerdCollective.MudComponents.ResponsiveTypography@1.5.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=TheNerdCollective.MudComponents.ResponsiveTypography&version=1.5.1
                    
Install as a Cake Addin
#tool nuget:?package=TheNerdCollective.MudComponents.ResponsiveTypography&version=1.5.1
                    
Install as a Cake Tool

TheNerdCollective.MudComponents.ResponsiveTypography

CSS-native responsive font sizes for MudBlazor 9.6 themes. The package uses clamp() through MudTheme.Typography, so it needs no JavaScript, viewport service, breakpoint detection, or resize-triggered renders.

using MudBlazor;
using TheNerdCollective.MudComponents.ResponsiveTypography;

var theme = new MudTheme();

theme.UseResponsiveTypography(options =>
{
    options.H1 = ResponsiveFontSize.Clamp("2rem", "4vw", "4rem");
    options.H3 = ResponsiveFontSize.Clamp("1.75rem", "3vw", "2.5rem");
});

Only configured roles are changed. Existing values for omitted roles remain unchanged, and normal MudText Typo semantics continue to apply.

Supported roles

Default, H1H6, Subtitle1, Subtitle2, Body1, Body2, Button, Caption, and Overline are supported. Leave a property null to preserve the value already present in the theme.

Validation

ResponsiveFontSize.Clamp rejects empty or whitespace arguments and arguments containing commas. Pass each of the three CSS values separately; for example, calc(1rem + 1vw) is valid, while a value containing a comma is rejected because it would make the generated clamp() expression ambiguous.

The generated value is assigned directly to MudTheme.Typography, for example:

var theme = new MudTheme();
theme.UseResponsiveTypography(options =>
{
    options.Default = "1rem";
    options.H3 = ResponsiveFontSize.Clamp("1.75rem", "3vw", "2.5rem");
});

// theme.Typography.H3.FontSize == "clamp(1.75rem, 3vw, 2.5rem)"

No JavaScript, IBrowserViewportService, breakpoint detection, or resize-triggered render is involved.

Visual catalog

Install the optional catalog package:

<PackageReference Include="TheNerdCollective.MudComponents.ResponsiveTypography.Catalog" />
builder.Services.AddNerdResponsiveTypography(options =>
{
    options.EnableCatalogPage = true; // default
    options.CatalogRoute = "/nerd-typography";
    options.Typography.H1 = ResponsiveFontSize.Clamp("2rem", "4vw", "4rem");
    options.Typography.H3 = ResponsiveFontSize.Clamp("1.75rem", "3vw", "2.5rem");
});

app.MapRazorComponents<App>()
    .AddInteractiveServerRenderMode()
    .AddNerdResponsiveTypographyCatalog(app.Services)
    .AddNerdDesignSystemHub(app.Services);

AddNerdResponsiveTypographyCatalog(app.Services) registers the catalog when EnableCatalogPage is true. The default route is /nerd-typography.

The catalog includes device frames (phone / tablet / desktop), a breakpoint comparison table, viewport slider previews, WCAG chips, and copy buttons for CSS + Razor. See docs/EXAMPLES.md and docs/FEATURES.md.

NerdTypographyPresets.ApplyMarketing sets per-role line heights. Override individual roles:

options.Typography.H1 = ResponsiveFontSize.Clamp("2rem", "4vw", "4rem");
options.Typography.Roles.H1.LineHeight = "1.15";
options.Typography.Roles.Body1.LineHeight = "1.7";
options.Typography.LineHeight = "1.5"; // fallback for roles without overrides

Presets and shared spacing:

builder.Services.AddNerdResponsiveTypography(options =>
{
    NerdTypographyPresets.ApplyMarketing(options.Typography);
    options.Typography.H3 = ResponsiveFontSize.Clamp("1.75rem", "3vw", "2.5rem");
});

NerdTypographyPresets.ApplyDenseApp is available for compact application UIs.

To disable the page:

options.EnableCatalogPage = false;

Custom route:

@page "/kunde/typography"
@rendermode InteractiveServer
<NerdResponsiveTypographyCatalog />

Set options.CatalogRoute to match your route so hub links stay correct.

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 (8)

Showing the top 5 NuGet packages that depend on TheNerdCollective.MudComponents.ResponsiveTypography:

Package Downloads
TheNerdCollective.MudComponents.PlayBook

Interactive MudBlazor component playground with design tokens and responsive typography.

TheNerdCollective.Brand.Dnf

Danmarks Naturfredningsforening (DNF) design token brand pack for MudBlazor.

TheNerdCollective.MudComponents.DesignTokens.Catalog

Visual design-token catalog UI for TheNerdCollective.MudComponents.DesignTokens (development tooling).

TheNerdCollective.MudComponents.ResponsiveTypography.Catalog

Visual responsive typography catalog UI for TheNerdCollective.MudComponents.ResponsiveTypography (development tooling).

TheNerdCollective.Brand.Acme

Acme sample design token brand pack for MudBlazor.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.1 220 8/7/2026
1.5.0 183 7/28/2026
1.4.0 295 7/17/2026
1.3.0 115 7/17/2026
1.2.0 113 7/17/2026
1.0.0 1,475 7/17/2026