figma-integration
/figma-integration
Utrzymuje zgodność Figmy z kodem: mapuje trójpoziomowe tokeny DTCG na zmienne Figmy, synchronizuje w obu kierunkach i sprawdza zgodność komponentów, wariantów i stanów.
- Autor
- plugin87 ↗
- Repozytorium
- ux-ui-agent-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Utrzymuje zgodność Figmy z kodem: mapuje trójpoziomowe tokeny DTCG na zmienne Figmy, synchronizuje w obu kierunkach i sprawdza zgodność komponentów, wariantów i stanów.
Oryginalny opis (EN)
Keep Figma and code in sync. Map the 3-tier DTCG tokens to Figma Variables (collections + modes), sync in either direction, use the Figma MCP when connected, and verify component parity (variants/states). Use when the user wants to push tokens/components to Figma, pull a design into code, set up token↔Variable sync, or check design-code drift.
Jak działa
- Steps
- Verification (definition of done)
Podgląd SKILL.md
---
name: figma-integration
description: Keep Figma and code in sync. Map the 3-tier DTCG tokens to Figma Variables (collections + modes), sync in either direction, use the Figma MCP when connected, and verify component parity (variants/states). Use when the user wants to push tokens/components to Figma, pull a design into code, set up token↔Variable sync, or check design-code drift.
---
# Skill: Figma Integration
> **Step 0: is the kit here?** This skill reads files from the kit. Check once:
> `ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSING`
> On `KIT_MISSING` only the skill folders were installed, which is what
> `npx skills add` does. Say so plainly, point the user at
> `npx ux-ui-agent-skills init` or the plugin install, and stop. Do not guess the
> contents of a file you could not open.
Bridge design (Figma) and code (this repo) in both directions. The token JSON stays the source of truth; Figma Variables mirror it.
## Steps
1. Read `${CLAUDE_SKILL_DIR}/../../../workflows/figma-integration.md` (token↔Variable mapping, sync directions, MCP usage, parity).
2. Map the 3-tier hierarchy → three Figma collections (Primitives → Semantic → Component) with aliasing; dark/brand/density → Figma **Modes** (`${CLAUDE_SKILL_DIR}/../../../tokens/theming.json`).
3. Choose ONE authoritative sync direction (code→Figma publish, or Figma→code extract via Tokens Studio / Variables REST API). The other side is generated. Never hand-edit both.
4. **If a Figma MCP server is connected:** prefer its tools/skills (load its mandatory prerequisite skill first). Use it to read frames/variables/screenshots into code, build Variables/components from our tokens, or wire Code Connect to `${CLAUDE_SKILL_DIR}/../../../components/*`.
5. Check component parity: Figma variants/properties must cover our variants + sizes + the 8 states; flag gaps.
## Verification (definition of done)
- Every Figma Variable resolves to a token in `${CLAUDE_SKILL_DIR}/../../../tokens/*.json` (no orphan hex in designs).
- One authoritative direction; the generated side has zero hand edits.
- Variant sets cover all 8 states; Code Connect points to the right `${CLAUDE_SKILL_DIR}/../../../components/*` file.
- After any token import: `python3 ${CLAUDE_SKILL_DIR}/../../../scripts/validate_tokens.py` passes.
Wersje
W bazie nie ma innych skilli o nazwie figma-integration.
Migawka bazy z 28.10.2026 · wersja paczki f1b6d5dca1ad (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100import-tokens-figma
Przenosi tokeny projektowe z kodu do Figmy jako zmienne (DTCG, tokens.json, konfiguracja Tailwind), aktualizując istniejące zmienne zamiast tworzyć duplikaty. - 100figma-import-tokens
Przesyła tokeny projektowe z kodu do Figma jako zmienne: DTCG, tokens.json lub obiekt tokenów na kolekcje, tryby i wartości, z aktualizacją bez duplikatów. - 100token-sync-layer
Synchronizuje zmienne designu z Figmy do plików tokenów dla kodu przez DTCG JSON i Style Dictionary, z gotowymi formatami dla frameworków. - 100sb-figma
Łączy Figmę ze Storybookiem w obu kierunkach: tokeny z zmiennych Figmy do kodu oraz mapowania Code Connect, by Dev Mode pokazywał prawdziwy kod. - 100export-tokens-figma
Eksportuje zmienne Figma do plików tokenów: DTCG, zmienne CSS, Tailwind, SCSS, TypeScript, JSON, Style Dictionary lub Tokens Studio. - 100figma-export-tokens
Eksportuje zmienne Figma do plików tokenów w formatach DTCG, CSS, Tailwind, SCSS, TypeScript, JSON, Style Dictionary lub Tokens Studio.