microsoft/fluentui · Archived

token-lookup

Find the matching Fluent UI design token for a hardcoded CSS value (color, spacing, font size, border radius, shadow)

First seen Jul 31, 2026

Installation

$ npx skills add microsoft/fluentui --skill token-lookup

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from microsoft/fluentui · top by installs.

npx skills add microsoft/fluentui

Browse all from microsoft/fluentui

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 20.2K
License LICENSE
Default branch master
Open issues 468
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead Grep Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,229 B
  • docs SUMMARY.md 137 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 8 installs

SKILL.md

Design Token Lookup

Find the correct @fluentui/react-theme design token for the hardcoded value $ARGUMENTS.

Steps

  1. Identify the value category:

- Hex color / rgb / named color → color tokens - px/rem spacing → spacing tokens - px/rem font size → font size tokens - px/rem border radius → border radius tokens - Font weight (400, 600, bold) → font weight tokens - Box shadow → shadow tokens - Border width → stroke width tokens - Duration (ms/s) → duration tokens

  1. Search the theme source for matching values:

`` 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.

  1. Return the token name and usage:

``tsx // Instead of: color: '#0078d4' // Use: import { tokens } from '@fluentui/react-theme'; color: tokens.colorBrandBackground; ``

  1. If no exact match exists, suggest the closest semantic token and explain the difference. Refer to [docs/architecture/design-tokens.md](docs/architecture/design-tokens.md) for token categories.

Common Mappings

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.