Pathway.DesignTokens 11.1.0

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

Pathway Design Tokens

Design tokens for the Pathway design system, generated from the Figma Variables panel. This is the same generated output the npm package pathway-tokens ships, so a Blazor or Razor app renders identical values to a React app instead of a hand-copied fork that drifts.

There is no C# in this package. It is CSS and JSON.

The colour contract is 358 names; the full working vocabulary is 460. Adding up every declaration in the package gives ~1,200 — that is not the contract. The difference is that primitives.css ships but is never named, and the two themes share one name set rather than each having their own. contract.json lists every consumable name if you want to check against it.

Install

dotnet add package Pathway.DesignTokens

Use

The files are static web assets, served at _content/Pathway.DesignTokens/. Reference them from your host page (App.razor, _Host.cshtml, or index.html):


<link rel="stylesheet" href="_content/Pathway.DesignTokens/primitives.css" />
<link rel="stylesheet" href="_content/Pathway.DesignTokens/themes/light.css" />
<link rel="stylesheet" href="_content/Pathway.DesignTokens/themes/midnight.css" />
<link rel="stylesheet" href="_content/Pathway.DesignTokens/type.css" />
<link rel="stylesheet" href="_content/Pathway.DesignTokens/layout.css" />
<link rel="stylesheet" href="_content/Pathway.DesignTokens/motion.css" />
<link rel="stylesheet" href="_content/Pathway.DesignTokens/breakpoints.css" />

You load primitives.css but never write a --primitive-* name yourself: it has one value per token and does not respond to data-theme, so naming one opts that element out of theming. Nothing blocks you if you specifically want a fixed value.

Then use the custom properties:

.card {
  background: var(--semantic-color-fill-static-neutral-mono);
  color: var(--semantic-color-foreground-static-neutral-bold);
  border: 1px solid var(--semantic-color-stroke-static-neutral-base);
  border-radius: var(--semantic-layout-units-cornerradius-base);
}

And type as a class, never as five separate properties:

<span class="pw-type-label-menu-base-medium">Donations</span>

Midnight Mode

Set data-theme on <html> or any wrapper element. Every --semantic-color-* name resolves to its Midnight value inside that subtree:

<html data-theme="midnight">

data-theme="dark" works too, so a consuming team does not have to adopt Pathway's vocabulary to switch themes.

Because theming is done by selector rather than by name, a single element can opt into the opposite theme — useful for a dark top bar on an otherwise light page:

<header data-theme="midnight"> … </header>

What is in the package

File Contains
themes/light.css, themes/midnight.css Every semantic colour, one name per token, resolved by selector. This is the colour contract.
type.css The 41-token type scale. Compose font-family, size, weight, line-height and tracking at the call site
primitives.css Raw ramp values. Building blocks, not a contract — do not reference these directly
tokens.css Removed 2026-09-03. Load primitives.css plus one theme file instead
tokens.json DTCG JSON, for tooling

Which names are safe to depend on

Only the semantic ones: --semantic-color-*, --semantic-layout-units-*, and the .pw-type-* classes. Primitive names such as --primitive-color-brand-450 are internal and their slot numbers move when a ramp is retuned.

Versioning

The NuGet and npm packages are published in lockstep from the same commit and carry the same version, so Pathway.DesignTokens 5.4.0 and pathway-tokens@5.4.0 contain byte-identical CSS.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net8.0

    • No dependencies.

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
11.1.0 40 10/2/2026
11.0.0 38 10/2/2026
10.0.4 39 10/1/2026
10.0.3 50 9/30/2026
10.0.2 40 9/30/2026
10.0.1 45 9/30/2026
10.0.0 42 9/30/2026