You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mcp/tools/sfnext-match-tokens-to-theme.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
---
2
-
description: Match design tokens to existing theme tokens in app.css with confidence scores and suggestions.
2
+
description: Match Figma design tokens to existing theme tokens in app.css with confidence scores and suggestions.
3
3
---
4
4
5
5
# sfnext_match_tokens_to_theme
6
6
7
-
Matches design tokens (colors, spacing, radius, etc.) to your Storefront Next theme tokens in `app.css`. Helps you identify which design tokens match existing theme variables and suggests new token names for values that don't have matches.
7
+
Matches Figma design tokens (colors, spacing, radius, etc.) to your Storefront Next theme tokens in `app.css`. Helps you identify which design tokens match existing theme variables and suggests new token names for values that don't have matches.
8
8
9
9
> **Note:** 🚧 This MCP tool is for Storefront Next. Storefront Next is part of a closed pilot and isn't available for general use.
10
10
11
11
## Overview
12
12
13
13
The `sfnext_match_tokens_to_theme` tool helps you use theme tokens instead of hardcoded values in your components. After retrieving design tokens (from Figma, design handoff, or other sources), use this tool to match them against your Storefront Next theme.
14
14
15
-
The tool reads your `app.css` theme file (or you can specify a custom path) and compares design tokens against your existing theme variables. It returns a report with instructions showing which tokens match, which are similar, and which need new theme variables created. **The tool does not modify files**—it provides recommendations and instructions for you to apply.
15
+
The tool reads your `app.css` theme file (or you can specify a custom path) and compares Figma design tokens against your existing theme variables. It returns a report with instructions showing which tokens match, which are similar, and which need new theme variables created. **The tool does not modify files**—it provides recommendations and instructions for you to apply.
16
16
17
17
This tool is part of the STOREFRONTNEXT toolset.
18
18
@@ -30,16 +30,16 @@ See [Figma-to-Component Tools Setup](../figma-tools-setup) for complete prerequi
30
30
|`figmaTokens`| array | Yes | Array of design tokens (e.g., from Figma, design system, or style guide). |
31
31
|`themeFilePath`| string | No | Optional absolute path to theme CSS file. If not provided, searches for `app.css` in common locations. |
0 commit comments