Back to .md Directory

Mosaic 资源索引

> **此文件是 Mosaic 的"采购清单",记录了经过筛选的高质量 UI 资源。**

May 2, 2026
0 downloads
1 views
ai agent
View source

Mosaic 资源索引

此文件是 Mosaic 的"采购清单",记录了经过筛选的高质量 UI 资源。

Agent 在采购阶段应优先从此列表中选择,而非盲目搜索。


SwiftUI 组件库

基础组件库

名称链接风格标签覆盖组件Level
VComponentsgithub.com/VakhoKontridze/VComponentsminimal, modernButton, TextField, Toggle, Slider, etc.L1
SwiftUIXgithub.com/SwiftUIX/SwiftUIXnative-extend补全SwiftUI缺失的组件L1
CodeEditUIgithub.com/CodeEditApp/CodeEditnative, ide-styleSidebar, Tabs, BreadcrumbL2

动效库

名称链接特点适用场景Level
Powgithub.com/EmergeTools/Pow高质量转场和状态动效任何需要polish的AppL1
Lottiegithub.com/airbnb/lottie-ios复杂动画播放引导页、空状态L1

反馈组件

名称链接特点Level
PopupViewgithub.com/exyte/PopupViewToast、Sheet、PopupL1
AlertToastgithub.com/elai950/AlertToast系统风格ToastL1
ConfettiSwiftUIgithub.com/simibac/ConfettiSwiftUI庆祝效果L1

图表库

名称链接风格Level
Swift ChartsApple 官方nativeL1
SwiftUIChartsgithub.com/AppPear/ChartViewmodern, gradientL1
Chartsgithub.com/danielgindi/Chartsfeature-richL2

列表与布局

名称链接特点Level
SwiftUI-Introspectgithub.com/siteline/SwiftUI-Introspect底层UIKit访问L2
WaterfallGridgithub.com/paololeonardi/WaterfallGrid瀑布流布局L1
CollectionViewPagingLayoutgithub.com/nicklockwood/iCarousel卡片轮播L2

设计灵感与市场平台

这些平台用于灵感搜索和参考,具有网络搜索能力时可实时查询

灵感搜索平台

平台链接特点使用场景Level
Mobbinmobbin.com真实App截图库,按流程分类寻找成熟App的交互方案L4
Figma Communityfigma.com/community社区模板、插件、设计系统寻找可直接使用的设计系统L3
UI8ui8.net付费/免费设计素材市场高质量完整设计系统L3-L4
Dribbbledribbble.com设计师作品展示视觉风格参考L4
Behancebehance.netAdobe设计社区完整案例研究L4

GitHub 搜索策略

当需要搜索特定风格的组件时,使用以下搜索模式:

# 搜索深色主题组件
"swiftui dark theme" stars:>100 pushed:>2024-01-01

# 搜索动效库
"swiftui animation" OR "swiftui transition" stars:>200

# 搜索特定组件
"swiftui toast" OR "swiftui alert" stars:>50

# 搜索设计系统
"swiftui design system" OR "swiftui theme" stars:>100

搜索优先级

search_priority:
  1. RESOURCES.md 中的预置资源(最快,已验证)
  2. GitHub 搜索(实时,需验证可用性)
  3. Figma Community(需转译,设计完整)
  4. Mobbin + UI8(灵感参考,需复刻)
  5. Dribbble + Behance(视觉灵感,需完全重建)

风格参考库

按风格分类

🌙 Dark Mode / 高级感

  • Linear App - 标杆级深色主题,紫色点缀
  • Raycast - 命令行风格,极简
  • Arc Browser - 创新侧边栏设计

☀️ Light Mode / 清爽感

  • Notion - 大留白,友好
  • Bear - 极简写作风
  • Things 3 - 精致细节

🎨 Bold / 前卫感

  • Discord - 游戏感,霓虹色
  • Spotify - 黑绿撞色
  • Figma - 设计工具感

🍎 Native / 系统融合

  • Apple Notes - 纯原生
  • Xcode - 开发工具
  • Finder - 系统级

图标系统

推荐方案

方案来源适用场景使用方式
SF Symbols 5Apple所有Apple平台内置,无需安装
Phosphor Iconsphosphoricons.com需要更多风格Swift Package
Lucidelucide.devWeb风格需转译为SwiftUI

SF Symbols 使用规范

// 基础用法
Image(systemName: "folder.fill")

// 带动效(iOS 17+)
Image(systemName: "checkmark.circle")
    .symbolEffect(.bounce, value: isComplete)

// 多色渲染
Image(systemName: "externaldrive.fill.badge.checkmark")
    .symbolRenderingMode(.multicolor)

色彩系统模板

Dark Mode 推荐色板

// Linear 风格
struct LinearDarkTheme {
    static let background = Color(hex: "#0A0A0B")
    static let surface = Color(hex: "#141415")
    static let surfaceHover = Color(hex: "#1F1F21")
    static let primary = Color(hex: "#5E6AD2")     // Linear 紫
    static let textPrimary = Color.white
    static let textSecondary = Color(hex: "#8A8F98")
    static let border = Color.white.opacity(0.08)
}

// Raycast 风格
struct RaycastDarkTheme {
    static let background = Color(hex: "#1A1A1A")
    static let surface = Color(hex: "#2A2A2A")
    static let primary = Color(hex: "#FF6363")     // Raycast 红
    static let textPrimary = Color.white
    static let textSecondary = Color(hex: "#999999")
}

Light Mode 推荐色板

// Notion 风格
struct NotionLightTheme {
    static let background = Color.white
    static let surface = Color(hex: "#F7F6F3")
    static let primary = Color(hex: "#2F80ED")
    static let textPrimary = Color(hex: "#37352F")
    static let textSecondary = Color(hex: "#6B6B6B")
    static let border = Color(hex: "#E9E9E7")
}

字体系统模板

macOS 推荐

struct TypographySystem {
    // 使用 SF Pro(系统默认)
    static let displayLarge = Font.system(size: 34, weight: .bold)
    static let titleLarge = Font.system(size: 22, weight: .bold)
    static let titleMedium = Font.system(size: 17, weight: .semibold)
    static let body = Font.system(size: 14, weight: .regular)
    static let caption = Font.system(size: 12, weight: .regular)
    
    // 代码/数据用等宽
    static let mono = Font.system(size: 13, weight: .regular, design: .monospaced)
    
    // 想要更友好的感觉用圆体
    static let friendly = Font.system(size: 14, weight: .medium, design: .rounded)
}

间距系统模板

8pt Grid System

struct SpacingSystem {
    static let xxs: CGFloat = 2
    static let xs: CGFloat = 4
    static let sm: CGFloat = 8
    static let md: CGFloat = 16
    static let lg: CGFloat = 24
    static let xl: CGFloat = 32
    static let xxl: CGFloat = 48
    static let xxxl: CGFloat = 64
}

圆角规范

struct RadiusSystem {
    static let none: CGFloat = 0
    static let sm: CGFloat = 4      // 小按钮、标签
    static let md: CGFloat = 8      // 卡片、输入框
    static let lg: CGFloat = 12     // 大卡片、弹窗
    static let xl: CGFloat = 16     // 模态框
    static let full: CGFloat = 9999 // 胶囊按钮
}

动效规范

时长标准

场景时长曲线
按钮点击反馈0.1seaseOut
状态切换0.2seaseInOut
页面转场0.3sspring
复杂动画0.4-0.6sspring

SwiftUI 动画预设

struct AnimationPresets {
    static let instant = Animation.easeOut(duration: 0.1)
    static let fast = Animation.easeOut(duration: 0.15)
    static let normal = Animation.easeInOut(duration: 0.25)
    static let slow = Animation.easeInOut(duration: 0.4)
    static let spring = Animation.spring(response: 0.3, dampingFraction: 0.7)
    static let bouncy = Animation.spring(response: 0.4, dampingFraction: 0.6)
}

待扩充区域

TODO: Web 平台资源

  • React 组件库索引
  • Tailwind 预设
  • shadcn/ui 组件

TODO: 更多风格参考

  • 金融类 App
  • 医疗健康类
  • 游戏类

最后更新:2026-01-18 维护者:Mosaic CDO Agent

Related Documents