Shields.UI.Stories
2.1.0
dotnet add package Shields.UI.Stories --version 2.1.0
NuGet\Install-Package Shields.UI.Stories -Version 2.1.0
<PackageReference Include="Shields.UI.Stories" Version="2.1.0" />
<PackageVersion Include="Shields.UI.Stories" Version="2.1.0" />
<PackageReference Include="Shields.UI.Stories" />
paket add Shields.UI.Stories --version 2.1.0
#r "nuget: Shields.UI.Stories, 2.1.0"
#:package Shields.UI.Stories@2.1.0
#addin nuget:?package=Shields.UI.Stories&version=2.1.0
#tool nuget:?package=Shields.UI.Stories&version=2.1.0
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
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- BlazingStory (>= 1.0.0-preview.97)
- Shields.UI (>= 2.1.0)
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 |
|---|---|---|
| 2.1.0 | 65 | 11/25/2026 |
| 2.1.0-pr.84.59 | 48 | 11/25/2026 |
| 2.1.0-pr.84.58 | 49 | 11/25/2026 |
| 2.0.0 | 119 | 11/24/2026 |
| 1.2.0-pr.83.53 | 57 | 11/24/2026 |
| 1.1.1 | 148 | 11/22/2026 |
| 1.1.0 | 145 | 11/22/2026 |
| 1.1.0-pr.81.46 | 66 | 11/22/2026 |
| 1.0.0 | 89 | 11/22/2026 |
| 1.0.0-pr.19.41 | 68 | 11/22/2026 |
| 1.0.0-pr.19.40 | 57 | 11/22/2026 |
| 1.0.0-pr.19.39 | 67 | 11/22/2026 |
| 1.0.0-pr.19.36 | 72 | 11/21/2026 |
| 1.0.0-pr.19.35 | 66 | 11/21/2026 |
| 1.0.0-pr.19.34 | 62 | 11/21/2026 |
| 1.0.0-pr.19.32 | 65 | 11/21/2026 |
| 1.0.0-pr.19.31 | 62 | 11/21/2026 |
| 1.0.0-pr.19.25 | 57 | 11/21/2026 |
| 1.0.0-pr.19.23 | 67 | 11/21/2026 |
| 1.0.0-pr.19.9 | 91 | 11/20/2026 |