Switch Toggle-On color →
Pre-release · Type: 🐛 Bug Fix
Related issues: DES-69 / WEB-848
Problem
The DS 4.0 spec updates the Toggle-On track color from black (#000000) to blue (#1573D1, light mode). In code, --Foregrounds-Toggle-On still referenced var(--Grays-Black).
Changed Files
packages/design-tokens/src/source/figma-variables.jsonpackages/design-tokens/src/source/Plaud Web 4.0 Design System-variables.csspackages/design-tokens/src/generated/css/variables-light.csspackages/design-site/docs/components/atomic/switch.mdxpackages/design-site/i18n/zh-CN/docusaurus-plugin-content-docs/current/components/atomic/switch.mdx
Changes
| Token | Light old value | Light new value | Dark |
|---|---|---|---|
--Foregrounds-Toggle-On | #000000 (Grays/Black) | #1573D1 | #3399FF (unchanged) |
The Switch component itself needs no modification; its visual is already driven by the --Foregrounds-Toggle-On token.