33 web components
Fonts, buttons, toolbars, menus, modals, lightboxes, tags, progress bars, a sun and moon theme toggle, auth visuals, the Cyberspace backdrop and the Hyperspace shape library.
One design system for the web, the desktop and the game.
MindAttic.Components is the shared design system behind every MindAttic site, desktop app and game: plain CSS and JS web components served from jsDelivr, a WCAG-minded WPF theme and control library, and a Unity UI package, all speaking the same palette.
What it is
Change a button, a font or a theme in one place, and every MindAttic site and app picks it up on its next build. That is the whole promise of MindAttic.Components, and it holds across three very different toolchains.
For the web it is 33 self-contained CSS, HTML and JS components and 16 animated palette themes, from fonts and buttons to the animated Cyberspace backdrop and the Hyperspace n-dimensional shape library. Sites load them from jsDelivr at an immutable whole-number tag, or receive them spliced between marker comments, so hand-made pages stay hand-made and need no build step. A component only replaces part of a page once a parity test proves it renders identically.
For Windows desktop apps it is MindAttic.Components.Wpf: merge one Theme.xaml and every control gets the same dark chrome, focus outlines, scroll bars and tooltips, with a light theme, a live high-contrast swap and a palette checked against WCAG 2.2 AA contrast. On top come real controls: modals, toasts, pickers, tab strips, line charts, callout tooltips, collapsible panels and MVVM helpers.
For games it is com.mindattic.components.unity: themed uGUI and TextMesh Pro menus and controls for Unity 6 with keyboard and gamepad navigation, built from code or prefabs, using the very same token names as the web themes.
Who it's for
Features
Fonts, buttons, toolbars, menus, modals, lightboxes, tags, progress bars, a sun and moon theme toggle, auth visuals, the Cyberspace backdrop and the Hyperspace shape library.
Whole-page palette themes with Canvas effects, plus the Cyberspace theme. Components read shared tokens like --bg, --accent and --text, so switching theme re-skins everything.
jsDelivr serves the web/ folder at whole-number tags that never move. build-sites splices components between marker comments and touches nothing else; a rerun writes identical bytes.
A parity test shows a rebuilt page is indistinguishable from the original, and a manifest lists every served file with its size and SHA-256 for a byte-exact CDN check on release.
One Theme.xaml styles buttons, text boxes, sliders, progress bars, menus, scroll bars and tooltips to WCAG 2.2 AA, with live light and dark switching and a Windows high-contrast swap.
MaModal, MaMessageBox, MaToast, MaPicker, MaTabControl, MaLineChart, MaSpinner, MaCallout tooltips, collapsible and drag-reorderable MaPanel groups, and an AddressBar for WebView2.
ObservableObject, RelayCommand, CollectionSync, 80 to 200% ZoomLevel, plus body scroll areas, row and tile lists and cards, so a dashboard page can be built from library pieces only.
MenuStack and MenuScreen, buttons, toggles, text fields, selects, sliders, modals with focus traps, toasts, tooltips, a join-code display and roster lists, with keyboard and gamepad navigation.
MindAttic.Components.Tokens holds the palette and its WCAG contrast checks; tests hold the WPF themes to it key for key, and Unity's ThemeTokens parse the web theme CSS directly.
How it works
Edit a web component, a theme, a WPF style or a Unity control in this one repo.
Parity, package and unit tests check the result renders and contrasts as it should.
Tag the web package for jsDelivr, or pack the WPF package to the NuGet feed.
Sites pin the new tag on their next deploy; apps pick up the package on their next build.
Quick start
Node 22 for the web build; the .NET 10 SDK on Windows for the WPF package.
The full setup guide lives in the documentation.
> git clone https://github.com/mindattic/MindAttic.Components
> cd MindAttic.Components
> node web/build/build-sites.mjs mindattic.com
# In a WPF app's App.xaml:
# <ResourceDictionary Source="pack://application:,,,/MindAttic.Components.Wpf;component/Theme.xaml" />Gallery
Part of MindAttic
MindAttic.Components is the look of the whole family. The four MindAttic.Web sites, MindAttic.Psst's legal pages and Tutor are built from its web package; MindAttic.Orchestrator, the MindAttic.Tickets desktop app, MindAttic.Launcher, the MindAttic.Vault desktop app and the MechWarrior 5 Save Editor take their WPF controls from it; and Unity.Multiplayer and Unity.Cursory build their menus with its Unity package.
Web releases go out through MindAttic.Deploy's linked deploy, which tags this repo, pins every site to the tag and checks the CDN byte for byte before uploading.
Status
The web package powers every MindAttic site, the WPF package is at version 50 and used across the desktop apps, and the Unity package has its first consumers. The current milestone makes MaButton the one property-configurable button, with every legacy button style a pixel-perfect preset, removes the last local styles from the consumer apps, and gates the nuget.org publish on green NUnit tests in CI.
Current milestone: One library, one button: every WPF control from MindAttic.Components.
Next step
Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.