How d-sanderson/figma-tokens works
External Systems
• Figma (Design Environment)
• NPM Registry
• GitHub Repository
Main Process Components
• Tokens Studio Figma Plugin
• GitHub Actions Pipeline
• Style Dictionary Build System
• NPM Package Distribution
Component Representation
a. Design Section (Left):
• It to a smaller rectangle representing Tokens Studio Plugin
b. Processing Section (Middle):
• Inside it, include three connected workflow components:
• Build Workflow (transforms tokens)
• Bump Workflow (version management)
• Publish Workflow (NPM publishing)
• Style Dictionary as a processing unit within the build workflow
c. Distribution Section (Right):
• NPM Registry
• Consuming applications
Specific Elements
• Tokens.json file as a key artifact
• Three GitHub workflows as connected pipeline stages
• Branch management (develop → main)
• Version bumping process
• Pull request review points
Additional Details
• Version control flow indicators
• Approval checkpoints
Key Relationships to Highlight:
NPM Package → Consuming Applications
Level of Detail:
• Keep the main flow clear and prominent
• Use subdiagrams or callouts for complex processes
• File names for key artifacts (tokens.json, variables.css)
• Trigger points for automated processes
Remember to:
• Version control flow
• Clear separation between automated and manual processes
• Approval/review checkpoints