An advanced automated Swift design system with live Figma channel integration. This design system provides real-time bidirectional Figma-to-code automation, instant design token sync, and intelligent SwiftUI component generation from live Figma selections. Perfect for ride-sharing apps, tactical gaming interfaces, and modern mobile applications.
Revolutionary real-time design-to-code workflow using live Figma channels:
| Feature | REST API | Live Channel |
|---|---|---|
| Updates | Manual polling | โ Real-time |
| Direction | Read-only | โ Bidirectional |
| Performance | Rate-limited | โ Event-driven |
| Selection Sync | Manual | โ Automatic |
# ๐ Start live development mode
npm run dev:live
# ๐งฉ Generate SwiftUI from current Figma selection
npm run components:live-generate
# ๐จ Sync design tokens in real-time
npm run figma:live-sync- ๐จ Live Figma Integration: Real-time sync with Figma channel
kqzej2sr - ๐ค AI-Powered Component Generation: Generate SwiftUI components from live Figma selections
- ๐ธ Visual Regression Testing: Ensure designs match implementation pixel-perfectly
- ๐ Auto-Generated Documentation: Comprehensive docs with interactive examples
- ๐ CI/CD Pipeline: Automated testing, building, and deployment
- โฟ Accessibility First: Built-in accessibility features and testing
The Assassin Game Design System delivers:
- Tactical Aesthetic: Dark theme with neon accents and military-inspired styling
- Cinematic Experience: Dramatic animations and spy-thriller visual language
- Native Performance: Built specifically for iOS with SwiftUI
- Component Library: Reusable components for rapid development
- Design Tokens: Consistent colors, typography, and spacing
- Xcode 15.0+
- iOS 16.0+
- Swift 5.9+
Add this package to your Xcode project:
https://github.com/your-org/assassin-game-design-system
Or add to your Package.swift:
dependencies: [
.package(url: "https://github.com/your-org/assassin-game-design-system", from: "1.0.0")
]- Clone the repository:
git clone https://github.com/your-org/assassin-game-design-system.git
cd assassin-game-design-system- Install dependencies:
npm install- Start the development workflow:
npm run devThe design system uses a tactical color palette:
- Assassin Red (
#C91C1C) - Primary actions, eliminations, danger - Tactical Blue (
#3366CC) - Secondary actions, information - Electric Green (
#00FF41) - Safe zones, success states - Deep Navy (
#0D0D1A) - Primary background
- Primary: SF Pro Display (headings, UI elements)
- Secondary: SF Pro Text (body text, descriptions)
- Monospace: SF Mono (codes, technical data)
Consistent spacing scale: 4px, 8px, 16px, 24px, 32px, 48px, 64px
Cinematic button component with multiple styles and haptic feedback:
import AssassinGameDesignSystem
TacticalButton(
title: "ELIMINATE TARGET",
style: .primary,
size: .large,
icon: "target"
) {
// Handle elimination action
}Styles:
.primary- Assassin Red for critical actions.secondary- Tactical Blue for secondary actions.success- Electric Green for positive actions.danger- Red with warning styling.ghost- Transparent with border
Classified document-style card for target assignments:
let mission = MissionBriefingCard.MissionData(
targetName: "Alex Chen",
codename: "SHADOW_WALKER",
lastKnownLocation: "Engineering Building",
missionType: .elimination,
priority: .high,
timeRemaining: 7200,
briefingText: "Target is highly skilled...",
restrictions: ["No elimination during class hours"]
)
MissionBriefingCard(mission: mission) {
// Handle mission acceptance
}import SwiftUI
import AssassinGameDesignSystem
struct ContentView: View {
var body: some View {
VStack {
// Your app content using design system components
}
.background(DesignTokens.Colors.backgroundPrimary)
}
}Text("Mission Status")
.font(.system(size: DesignTokens.Typography.lg, weight: .bold))
.foregroundColor(DesignTokens.Colors.textPrimary)
.padding(DesignTokens.Spacing.md)- Configure Figma Access:
# Set environment variables
export FIGMA_TOKEN="your_figma_access_token"
export FIGMA_FILE_KEY="your_figma_file_key"
# Or update figma.config.json- Export Design Tokens:
# Export all design tokens from Figma
npm run figma:export-tokens
# Export specific components
npm run figma:export-components
# Export assets (icons, images)
npm run figma:export-assets- Generate Components:
# Generate SwiftUI components from Figma designs
npm run generate:components
# Generate comprehensive documentation
npm run generate:docsThe design system includes several automation scripts:
scripts/figma-export.js: Extracts design tokens, components, and assets from Figmascripts/component-generator.js: AI-powered SwiftUI component generationscripts/docs-generator.js: Auto-generates comprehensive documentationtests/VisualRegressionTests.swift: Ensures visual consistency between Figma and code
Ensure your implementations match Figma designs:
# Run visual regression tests
npm run visual:test
# Record new snapshots (when designs change)
npm run visual:record- Design in Figma: Create or update components in your Figma design system
- Sync Changes: Run
npm run figma:exportto pull latest changes - Generate Code: Use
npm run generate:componentsto create SwiftUI components - Test Visually: Run
npm run visual:testto ensure pixel-perfect implementation - Document: Auto-generate docs with
npm run generate:docs
The included GitHub Actions workflow automatically:
- Syncs design changes from Figma daily
- Runs visual regression tests on every PR
- Generates and deploys documentation
- Creates releases with proper versioning
src/
โโโ components/
โ โโโ DesignTokens.swift
โ โโโ buttons/
โ โ โโโ TacticalButton.swift
โ โโโ cards/
โ โ โโโ MissionBriefingCard.swift
โ โโโ forms/
โ โโโ navigation/
โ โโโ maps/
โ โโโ notifications/
docs/
โโโ variables/
- Create new components in the appropriate
src/components/subdirectory - Follow the established naming conventions and structure
- Include comprehensive previews and tests
- Use design tokens for consistency
# Start development workflow with real-time sync
npm run dev
# Build all components and documentation
npm run build:all
# Generate Xcode project with storyboards
npm run xcode:generateThis design system is specifically tailored for the Assassin Game with:
- Mission-focused UI: Components designed for target tracking and elimination
- Tactical Aesthetics: Military/spy-inspired visual language
- Real-time Updates: Components optimized for live game data
- Safety Features: Clear visual hierarchy for emergency functions
- Social Gaming: Components for leaderboards and player interaction
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests and documentation
- Submit a pull request
MIT License - see LICENSE for details.
- Additional tactical components (maps, notifications)
- Animation library for cinematic effects
- Accessibility enhancements
- Dark/light theme variants
- Component testing suite
- Figma design tokens sync
Built with โค๏ธ for the ultimate campus gaming experience.