26 lines
779 B
Swift
26 lines
779 B
Swift
import SwiftUI
|
||
|
||
/// 设计 tokens(颜色 / 间距 / 圆角),对应 Android DesignSystem。
|
||
public enum DS {
|
||
public enum Color {
|
||
public static let accent = SwiftUI.Color.accentColor
|
||
public static let success = SwiftUI.Color.green
|
||
public static let danger = SwiftUI.Color.red
|
||
public static let warning = SwiftUI.Color.orange
|
||
}
|
||
|
||
public enum Spacing {
|
||
public static let xs: CGFloat = 4
|
||
public static let sm: CGFloat = 8
|
||
public static let md: CGFloat = 16
|
||
public static let lg: CGFloat = 24
|
||
public static let xl: CGFloat = 32
|
||
}
|
||
|
||
public enum Radius {
|
||
public static let sm: CGFloat = 8
|
||
public static let md: CGFloat = 12
|
||
public static let lg: CGFloat = 16
|
||
}
|
||
}
|