All projects

Runtime Avalonia themes

ThemeManager.Avalonia

Choose a built-in Avalonia theme family and switch its active variant through one interface.

StatusMaintained
TierMaintained
DomainAvalonia
Repositorywieslawsoltes/ThemeManager.Avalonia

A small runtime theme abstraction that initializes Avalonia Fluent or Simple themes and switches the application between light and dark variants.

ThemeManager.Avalonia provides one small IThemeManager abstraction over Avalonia’s built-in Fluent and Simple themes. Each implementation initializes its theme family and changes Application.RequestedThemeVariant between light and dark at runtime.

01

Fluent and Simple implementations

02

Application-level initialization

03

Light and dark variant switching

04

Small replaceable interface

Where it fits.

  • Avalonia applications with light and dark settings
  • Apps choosing between Fluent and Simple theme families
  • Developers wanting a replaceable theme bootstrap boundary
Avalonia

Built-in themes

FluentTheme

Supported

SimpleTheme

Supported

Light / dark

Runtime switch

Real output,
not a mockup.

ThemeManager.Avalonia GitHub repository preview
A focused abstraction initializes an Avalonia theme family and controls its application-wide variant.

Clear layers.
Replaceable seams.

01

Contract

IThemeManager exposes Initialize and Switch operations.

02

Fluent

FluentThemeManager inserts FluentTheme and switches its application variant.

03

Simple

SimpleThemeManager does the same for SimpleTheme.

04

Application

RequestedThemeVariant propagates light or dark state through Avalonia resources.

2 hostsFluent and Simple
2 variantslight and dark
1 interfaceapplication theme boundary
LiveGitHub metadata

One repository.
Multiple serious systems.

Explore the focused capabilities, their package boundaries, architecture, installation, and smallest useful example.

From package
to first frame.

Choose the package workflow used by your repository, then start from the smallest working example. Replace VERSION with the current stable or prerelease version shown on NuGet.

01 · Install
Terminal
dotnet add package ThemeManager
02 · Use · csharp
QuickStart.cs
IThemeManager themes = new FluentThemeManager();
themes.Initialize(this);
themes.Switch(1); // Dark

Start focused.
Compose as needed.

The repository is the source of truth.

Use the current documentation and samples, inspect changes, report issues, or support continued open-source maintenance.

SvgToXaml

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…