NextIteration.SpectreConsole.Splash 0.1.2

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

NextIteration.SpectreConsole.Splash

A reusable Figgle-and-Spectre.Console splash screen for .NET CLIs.

  • Configurable app name, Figgle font, gradient palette, and tagline strategy.
  • Piecewise-linear gradient across an arbitrary number of #RRGGBB stops.
  • Built-in pool of ~300 developer-culture taglines, or supply your own.
  • Performance-first: the entire splash is assembled as one markup string and emitted via a single AnsiConsole.Markup call.

Install

dotnet add package NextIteration.SpectreConsole.Splash

Usage

using NextIteration.SpectreConsole.Splash;

// One-line: defaults (Roman font, neutral blue gradient, random tagline).
SplashScreen.Show("my-cli");

// Fully configured.
SplashScreen.Show(new SplashOptions
{
    AppName = "my-cli",
    Font = Figgle.Fonts.FiggleFonts.Slant,
    Colors = new SplashColors("#FFEB3B", "#FF9800", "#F44336"),
    Tagline = SplashTagline.FromProvider(() => $"v{AppVersion.Current}"),
});

// Suppress the tagline.
SplashScreen.Show(new SplashOptions
{
    AppName = "quiet",
    Tagline = SplashTagline.None,
});

Defaults at a glance

Property Default
Font FiggleFonts.Roman
Colors #60A5FA#1D4ED8 (neutral blue, reads on light/dark)
Tagline Random pick from the built-in quote pool (~300 entries)

Architecture

File Role
SplashScreen.cs Public entry point (Show).
SplashOptions.cs Per-call configuration. Only AppName is required.
SplashColors.cs Gradient palette; validates #RRGGBB at construction.
SplashTagline.cs Strategy for the sub-logo tagline (None / RandomBuiltIn / FromProvider).
Internal/Gradient.cs Pure-function piecewise-linear interpolation, O(width) regardless of N stops.
Internal/Renderer.cs Builds the full splash as one Spectre.Console markup string.
Internal/Quotes.cs Built-in tagline pool.

Performance notes

The original internal precursor of this library emitted one AnsiConsole.Write(char) call per visible logo character — ~250 calls for a typical Roman logo, each flushing its own ANSI colour-change escape. This rewrite batches the entire splash (logo + tagline) into a single Spectre markup string and does one AnsiConsole.Markup call. Measured cold start on a 64×7 Roman logo: ~60 ms before, <10 ms after.

Additional wins:

  • FiggleFonts.Roman.Render runs on the first Show call, not at class-load.
  • Line endings normalise on \n and trim trailing \r — no more Windows-only logo splits breaking silently on Unix.
  • Space characters skip the colour-escape wrapper entirely (saves ~14 markup chars per space).

License

MIT — see LICENSE.

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
0.1.2 174 5/3/2026
0.1.1 182 4/18/2026