Files
openclaw/apps/ios/ActivityWidget/OpenClawActivityTypography.swift
2026-07-03 18:45:45 -05:00

28 lines
707 B
Swift

import SwiftUI
enum OpenClawActivityType {
static var subheadSemiBold: Font {
display(size: 15, weight: .semibold)
}
static var subheadBold: Font {
display(size: 15, weight: .bold)
}
static var caption: Font {
body(size: 12)
}
static func symbol(size: CGFloat, weight: Font.Weight) -> Font {
.system(size: size, weight: weight)
}
private static func display(size: CGFloat, weight: Font.Weight) -> Font {
.custom("RedHatDisplay-Regular", size: size, relativeTo: .subheadline).weight(weight)
}
private static func body(size: CGFloat) -> Font {
.custom("Inter-Regular", size: size, relativeTo: .caption)
}
}