New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@polyxd/ds-radix

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polyxd/ds-radix

Radix Themes 3 design-system pack for Polyxd (DTCG 2025.10 tokens)

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
458
-44.95%
Maintainers
1
Weekly downloads
 
Created
Source

@polyxd/ds-radix

Radix Themes 3 as a Polyxd design-system pack: DTCG 2025.10 token files that satisfy the semantic token contract in light and dark.

npm run check -w @polyxd/ds-radix     # contract check, both modes
npm run generate -w @polyxd/ds-radix  # regenerate tokens/*.json

Source

@radix-ui/themes 3.3.0 (MIT), stylesheet vendored verbatim. Radix Themes is configured at runtime — accent colour, gray, radius and scaling are attributes on its root element — so the pack takes its documented defaults: indigo accent, medium radius, 100% scaling, and says so rather than pretending there is one Radix look.

Radix publishes every scale twice: sRGB, and the same colours in display-p3 inside @supports. The pack reads the sRGB ones, because WCAG contrast is defined on sRGB.

Radix's steps carry meaning

1–2 backgrounds, 3–5 component fills, 6–8 borders, 9–10 solid fills, 11 accessible text, 12 high-contrast text. The mapping follows that, which is why so little needed adjusting.

Contrast adjustments

TokenRadix's stepMeasuredUsed instead
color.status.*.foregroundstep 11 on step 3 (its "soft" pairing)4.21–4.54:1 in lightstep 12
color.data.categorical.*step 9 (the solid fill)amber-9 is 1.54:1 on a light pagestep 11
color.border.stronggray-81.86:1 in lightgray-9 (3.22:1)
color.border.focusfocus-82.36:1 in lightaccent-9 (5.08:1)
color.action.danger.backgroundred-9 with white3.91:1 in both modesred-11 with gray-1

That last one is the interesting case. No solid red step carries white text at 4.5:1 — step 9 is 3.91:1, and in dark mode the ramp gets lighter, not darker. Step 11 flips with the mode, dark in light and light in dark, so pairing it with step 1 passes both ways: 5.21:1 and 8.95:1.

FAQs

Package last updated on 27 Sep 2026

Related posts