Name a token by its role — --color-success — and code only needs to say "this button is a success state." The actual color value lives in one place in the token layer, so dark mode, rebrands, and contrast fixes all resolve there.
Green for success, orange/yellow for warning, red for danger, blue for info is the near-universal convention. Because culture and color vision vary, never rely on color alone — always pair it with an icon or text.
If a token's name and its actual color diverge — say, --color-danger mapped to blue — it breaks everyone's intuition on the team, so staying close to the "common sense" meaning of each role matters.
When to use
Use these as the default for any component that communicates state through color — toasts, badges, form validation.