Flare.Theme.VisualStudio 0.60.0

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

Flare.Theme.VisualStudio

Visual Studio (2022/2026-inspired) light and dark theme for the Flare Blazor component library.

dotnet add package Flare.Theme.VisualStudio
// default theme...
builder.Services.AddFlare(opts => opts.DefaultTheme = new VisualStudioTheme());
// ...or register and switch at runtime:
builder.Services.AddFlareTheme(new VisualStudioTheme());
// await ThemeService.SetThemeAsync("visualstudio");

What this theme styles

The theme styles Flare's base component set - buttons, fields, menus, trees, tabs, dialogs, grids. It does not style optional application-shell components or declare their tokens. An application that wants Visual Studio-like IDE chrome sets those tokens in its own scope; the shell package supplies base-token defaults.

Buttons, fields, checkboxes and grids are the standard Flare component set wearing this theme's tokens; VS does not rename them.

What this theme changes beyond colour

  • Dense by default. The type ramp and control heights are tuned for an IDE, not for touch.
  • Square corners and 1px strokes. The shape scale is close to zero throughout.
  • Selection is a flat fill, not a tonal wash - the same discrete-state model Fluent uses, which is why the theme sets its state-layer tokens rather than relying on the Material default.

VS 2026 chrome roles

The dark shell follows the measured Visual Studio 2026 palette: menu/title bar #1C1C1C, command bar and document tab strip #262626, active tab and tool windows #282828, editor #1E1E1E, breadcrumb #2B2B2B, bottom panel #1C1C1C, status bar #141414, separators #0E0E0E/#3D3D3D, outlines #454545, menu #2C2C2C, hover #383838 and the #9184EE accent, drawn as 1px focus lines. The light shell keeps its existing values.

The surfaces are exposed as theme variables, so a host can paint a chrome region without overriding a generic color role:

Variable Region
--flare-vs-chrome-title-bar Menu and title bar
--flare-vs-chrome-command-bar Command bar
--flare-vs-chrome-command-well / --flare-vs-chrome-command-well-border Command-bar control well and its stroke
--flare-vs-chrome-tab-strip Document tab strip
--flare-vs-chrome-tab-active Active document tab
--flare-vs-chrome-editor Editor
--flare-vs-chrome-breadcrumb Breadcrumb bar
--flare-vs-chrome-breadcrumb-edge Breadcrumb edges and action area
--flare-vs-chrome-tool-window Tool window
--flare-vs-chrome-tool-tab Tool tab strip and title
--flare-vs-chrome-field Tool search field and input well
--flare-vs-chrome-bottom-panel Bottom panel tab strip
--flare-vs-chrome-bottom-tab-underline Bottom panel tab underline
--flare-vs-chrome-status-bar Status bar
--flare-vs-chrome-bar-edge / --flare-vs-chrome-divider Bar edge and separators
--flare-vs-chrome-outline Control outlines
--flare-vs-chrome-menu / --flare-vs-chrome-hover Menu panel and hover
--flare-vs-chrome-accent Focus and selection accent
--flare-vs-chrome-scrollbar-thumb / --flare-vs-chrome-scrollbar-track Scrollbar

Optional application-shell packages own their own tokens and base defaults. This theme does not declare them: an application that wants the measured IDE surfaces sets those tokens in its own scope.

VS 2026 component metrics

  • Fields. A 23px well with a #353535 fill, a 1px #454545 stroke, 4px corners and an 8px text inset. The Xs..Xl ramp is 20/22/23/26/30px.
  • Buttons. 24px square, 16px glyph, 4px corners.
  • Focus. A single 1px #9184EE accent line on fields, buttons, checkboxes and radios; no outer glow.
  • Scrollbars. A 2px square #9D9D9D thumb on the panel surface. Chromium and WebView2 draw this from the WebKit scrollbar path, which the theme keeps enabled; Firefox keeps its native scrollbar.
  • Panels. 6px corners on dropdowns and popovers; a tool search field takes the same 6px through --flare-vs-chrome-search-radius.

VS 2026 type and icon scale

  • Text. Menu and tree labels stay 13px (BodyLarge); body text uses the theme's 12px BodyMedium.
  • Icons and rows. Tree rows are 24px high; tree and button icons are 16px, while the expander keeps a 24px target around its glyph.

Requires Flare.Components. Repository & docs: https://github.com/jrfrigat/Flare - MIT licensed.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.  net11.0 is compatible. 
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.60.0 47 11/21/2026
0.59.1 53 11/19/2026
0.59.0 64 11/18/2026
0.58.1 85 11/17/2026
0.58.0 81 11/17/2026
0.57.0 100 11/12/2026
0.56.0 97 11/11/2026
0.55.0 89 11/10/2026
0.54.0 83 11/9/2026
0.53.0 97 11/7/2026
0.52.0 111 11/5/2026
0.51.0 131 10/23/2026
0.50.0 99 10/23/2026
0.49.0 101 10/22/2026
0.48.0 112 10/20/2026
0.47.0 107 10/20/2026
0.46.0 103 10/18/2026
0.45.0 99 10/17/2026
0.44.0 105 10/12/2026
0.43.0 109 10/8/2026
Loading failed