Shields.UI 2.1.0

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

App UI Kit

The shared UI kit for the Calorie Tracker and Workout Log Android apps (.NET MAUI Blazor Hybrid).

It will hold what the two apps should always have in common, so a change is made once and both apps pick it up:

  • Design tokens and base styles: colours, type, spacing, corners and touch targets.
  • General components: buttons, icons, inputs, list rows, cards, tiles, the screen frame and the bottom bar.
  • The stories shell: the phone frame, theme switch and token sheet used by every stories site.
  • Design-system tests: tokens-only CSS, contrast and touch-target checks that the apps reuse.
  • One stories site showing the kit and both apps' screens.

Screens stay in each app's repo; the apps keep no tokens or general components of their own. The apps install the kit as NuGet packages: Shields.UI, Shields.UI.Stories and Shields.UI.Testing.

A stories host (its index.html and iframe.html) must link _content/Shields.UI.Stories/css/tokens.css after the kit's _content/Shields.UI/css/tokens.css; index.html needs it for blazor-ui.css, and the phone frame and sheets take their sizes from it. Without it they lose their size.

Status

A trial is in place: Shields.UI.Testing (the kit's tokens and the tokens-only, contrast and touch-target checks, for an app's design tests), Shields.UI (with AppButton, IconButton, Icon, Spinner, LoadFailed, Snackbar, SegmentedControl, FilterChips, FieldInput, NumberField, RadioGroup, TextField, SearchField, SelectField, DateStrip, ListRow, EmptyState, Typography, Divider, InlineAlert, Banner, Card, SectionHeader, StatTile, ChangeIndicator, ChartLegend, PeriodStepper, ProgressRing, BarList, StackedBar, TrendBarChart, LineChart, CountBars, MonthCalendar, DayStrip, RangeCalendar, DateRangeField, DurationField, ValueField, NoteField, EntryGridRow, CollapsibleNote, SuccessBadge, Sheet, SheetAction, the tokens and base styles), Shields.UI.Stories and a stories site, Shields.UI.Stories.Host. The trial code is the start of the repo. It already sets the solution-wide build rules (Directory.Build.props and .editorconfig, copied from Workout Log); CI and AGENTS.md are in place; the finished rules come with the later epics. The plan and the decisions behind it are in docs/design/shared-ui-kit.html (download it and open it in a browser). The work is tracked in this repo's epic issues.

Build and run

dotnet build Shields.UI.slnx
dotnet test tests/Shields.UI.Tests
dotnet run --project src/Shields.UI.Stories.Host     # http://localhost:5056, the kit's stories only

The combined stories site is published at https://marty-shields.github.io/app-ui-kit/. It shows the kit's Foundations and components and every screen of Calorie Tracker and Workout Log, each app's main built against the kit's main. The AGENTS.md Commands say how to run it locally, with both app repos cloned beside this one. Every PR also builds and tests both apps' UI against the change (apps-check).

Licence

MIT. See LICENSE and NOTICE.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Shields.UI:

Package Downloads
Shields.UI.Stories

The stories shell for Shields.UI: phone frame, theme switch, token sheet and app icon sheet.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 72 11/25/2026
2.1.0-pr.84.59 60 11/25/2026
2.1.0-pr.84.58 50 11/25/2026
2.0.0 196 11/24/2026
1.2.0-pr.83.53 59 11/24/2026
1.1.1 279 11/22/2026
1.1.0 262 11/22/2026
1.1.0-pr.81.46 72 11/22/2026
1.0.0 128 11/22/2026
1.0.0-pr.19.41 83 11/22/2026
1.0.0-pr.19.40 67 11/22/2026
1.0.0-pr.19.39 77 11/22/2026
1.0.0-pr.19.36 88 11/21/2026
1.0.0-pr.19.35 78 11/21/2026
1.0.0-pr.19.34 67 11/21/2026
1.0.0-pr.19.32 73 11/21/2026
1.0.0-pr.19.31 63 11/21/2026
1.0.0-pr.19.25 66 11/21/2026
1.0.0-pr.19.23 73 11/21/2026
1.0.0-pr.19.9 164 11/20/2026