microsoft/token-lookup
Find the matching Fluent UI design token for a hardcoded CSS value (color, spacing, font size, border radius, shadow)
npx skills add https://github.com/microsoft/fluentui --skill token-lookup
Find the correct @fluentui/react-theme design token for the hardcoded value $ARGUMENTS.
packages/react-components/react-theme/library/src/
Look in the relevant theme files (e.g., colorPalette*.ts, global/, alias/) to find tokens that map to the given value.
// Instead of: color: '#0078d4'
// Use:
import { tokens } from '@fluentui/react-theme';
color: tokens.colorBrandBackground;
| Hardcoded | Token |
| ------------------- | -------------------------------------------------------- |
| #0078d4 | tokens.colorBrandBackground |
| #323130 | tokens.colorNeutralForeground1 |
| #ffffff | tokens.colorNeutralBackground1 |
| 4px border-radius | tokens.borderRadiusMedium |
| 8px padding | tokens.spacingHorizontalS or tokens.spacingVerticalS |
| 14px font-size | tokens.fontSizeBase300 |
| 600 font-weight | tokens.fontWeightSemibold |
These are approximate — always verify against the actual theme source.
Take microsoft/token-lookup from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.