Establish AppColor/AppFont/AppSpacing/AppRadius theming, shared components, and design-system docs so pilot screens align with Android while keeping iOS-native spacing and touch targets. Co-authored-by: Cursor <cursoragent@cursor.com>
61 lines
1.8 KiB
Swift
61 lines
1.8 KiB
Swift
//
|
||
// AppColor.swift
|
||
// suixinkan
|
||
//
|
||
|
||
import UIKit
|
||
|
||
/// 应用语义色,与 Android `theme/Color.kt` 及 `ScenicQueueTokens` 对齐。
|
||
enum AppColor {
|
||
|
||
// MARK: - Brand
|
||
|
||
static let primary = UIColor(hex: 0x0073FF)
|
||
static let primaryBanner = UIColor(hex: 0x1677FF)
|
||
static let primaryLight = UIColor(hex: 0xEFF6FF)
|
||
|
||
// MARK: - Background
|
||
|
||
static let pageBackground = UIColor(hex: 0xF5F5F5)
|
||
static let pageBackgroundSoft = UIColor(hex: 0xF7FAFF)
|
||
static let cardBackground = UIColor.white
|
||
static let inputBackground = UIColor(hex: 0xF4F4F4)
|
||
|
||
// MARK: - Border
|
||
|
||
static let border = UIColor(hex: 0xEEEEEE)
|
||
static let cardOutline = UIColor(hex: 0xE9ECEF)
|
||
|
||
// MARK: - Text
|
||
|
||
static let textPrimary = UIColor(hex: 0x333333)
|
||
static let textSecondary = UIColor(hex: 0x666666)
|
||
static let textTertiary = UIColor(hex: 0x999999)
|
||
static let textTabInactive = UIColor(hex: 0x7D8DA3)
|
||
|
||
// MARK: - Semantic
|
||
|
||
static let success = UIColor(hex: 0x10B981)
|
||
static let successBackground = UIColor(hex: 0xF0FDF4)
|
||
static let warning = UIColor(hex: 0xFF7B00)
|
||
static let warningBackground = UIColor(hex: 0xFFF0E2)
|
||
static let danger = UIColor(hex: 0xEF4444)
|
||
static let dangerBackground = UIColor(hex: 0xFFE7E7)
|
||
static let info = UIColor(hex: 0x0073FF)
|
||
static let infoBackground = UIColor(hex: 0xE8F4FF)
|
||
static let online = UIColor(hex: 0x22C55E)
|
||
|
||
// MARK: - Overlay
|
||
|
||
static let overlayScrim = UIColor.black.withAlphaComponent(0.2)
|
||
|
||
// MARK: - Legacy aliases(逐步迁移后移除)
|
||
|
||
static let text333 = textPrimary
|
||
static let text666 = textSecondary
|
||
static let agreementLink = UIColor(hex: 0x208BFF)
|
||
static let secondaryButtonBackground = primaryLight
|
||
static let buttonDisabled = UIColor(hex: 0xC0C0C0)
|
||
static let placeholder = UIColor.gray
|
||
}
|