New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@polyxd/ds-fluent

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polyxd/ds-fluent

Microsoft Fluent 2 design-system pack for Polyxd (DTCG 2025.10 tokens)

latest
Source
npmnpm
Version
0.4.6
Version published
Weekly downloads
47
-96.3%
Maintainers
1
Weekly downloads
 
Created
Source

@polyxd/ds-fluent

Microsoft's Fluent 2 as a Polyxd design-system pack: DTCG 2025.10 token files that satisfy the semantic token contract (packages/spec/tokens/semantic-contract.json, v0.1.0) in light and dark.

npm run check -w @polyxd/ds-fluent     # contract check, both modes
npm run generate -w @polyxd/ds-fluent  # regenerate tokens/*.json from the vendored sources

Source

@fluentui/tokens 1.0.0-alpha.24 (MIT), webLightTheme and webDarkTheme — 459 tokens each, vendored verbatim as scripts/sources/fluent/{light,dark}.json. Fluent's own names are kept (fluent.colorNeutralBackground1), so every semantic token traces back to something you can look up in Fluent's documentation.

TierFileContents
System, per modetokens/system.light.json, tokens/system.dark.jsonThe whole Fluent theme as fluent.*, plus polyxd.sys.* for what Fluent doesn't define
Semantictokens/semantic.jsonThe Polyxd contract, each token an alias. The same file in both modes

Mapping notes

  • Surfaces follow Fluent's own stacking: the page is colorNeutralBackground2, cards and dialogs sit on colorNeutralBackground1 above it. In dark mode that ordering is what makes a card read as raised.
  • Info status. Fluent has colorStatusSuccess*, Warning* and Danger*, but no info family. Info uses Fluent's shared blue (colorPaletteBlue*).
  • Chart colours. Fluent's tokens carry no chart ramp, so the six categorical colours are six shared-colour hues at foreground 2.
  • Body text. Fluent's base size is 14px; the contract asks for 16px running text, which is Fluent's fontSizeBase400.
  • Target size. Fluent's controls are 32px (medium) and 40px (large). The pack sets 44px, Fluent's own touch guidance, because a generated surface may be used on a phone.

Contrast adjustments

Three places where Fluent's natural choice doesn't clear the contract's floor. Each moves to another token on the same ramp, and says so in the token's $description:

TokenFluent's valueMeasuredUsed instead
color.border.strongcolorNeutralStroke11.46:1 light, 2.87:1 darkcolorNeutralStrokeAccessible — Fluent's own name for the 3:1 stroke
color.action.primary.backgroundcolorBrandBackground2.48:1 on the dark canvascolorBrandBackgroundStatic (3.06:1, white text on it 5.38:1)
color.status.warning.emphasiscolorStatusWarningBorderActive2.98:1 on the light canvascolorStatusWarningBorder2

logo.svg is the Fluent mark from the fluent2.microsoft.design footer (the header's lockup, mark plus "Fluent 2", is too wide for a square tile), unaltered, from fluent2.microsoft.design/. Polyxd shows it beside the pack's name to identify the design system this pack is modelled on. Microsoft's trademark guidelines restrict the use of its logos (Microsoft logos, icons and designs can never be used without an express licence; only the names may be used referentially (compatibility/integration) without implying affiliation); Polyxd's maintainer has chosen to show it and is responsible for that choice.

Microsoft, Fluent and the Fluent logo are trademarks of Microsoft Corporation, used here to identify the design system this pack is modelled on. Polyxd is not affiliated with Microsoft Corporation.

FAQs

Package last updated on 09 Oct 2026

Related posts