Back to blog

ShellUI v0.2.1 – Chart fixes & CSS auto-install

February 22, 2026 · Release · ShellUI

v0.2.1 is a hotfix release addressing bugs in chart component installation and introducing automatic CSS injection for chart styles.

Bug fixes

Chart tooltip generation

The custom tooltip HTML in ChartVariantsTemplate.cs used incorrect verbatim string escaping (\""→""""), causing broken @"..." blocks in installed files. This is now fixed.

ChartVariants namespace

ChartVariants was incorrectly placed under the ShellUI.Components namespace instead of ShellUI.Components.Variants.ChartVariants. Fixed.

Chart.razor missing using

Added @using ShellUI.Components.Variants to Chart.razor so chart components compile without manual import.

ChartVariantsTemplate file path

Changed from ChartVariants.cs to Variants/ChartVariants.cs so it installs in the correct subdirectory.

New: chart-styles auto-install

Running shellui add chart now automatically installs a charts.css file to wwwroot/css/ and injects the stylesheet link into your App.razor (or index.html for WASM):

shellui add chart
→ Installed 'chart-variants'  (Variants/ChartVariants.cs)
→ Installed 'chart-styles'    (wwwroot/css/charts.css)
→ Installed 'chart'           (Chart.razor)
→ Added <link rel="stylesheet" href="css/charts.css" /> to App.razor

Installed 3 component(s) successfully!

The injection is idempotent — re-running shellui add chart won't duplicate the link tag.

Install

dotnet tool install -g ShellUI.CLI
# or update
dotnet tool update -g ShellUI.CLI