mirror of
https://github.com/ruvnet/RuView.git
synced 2026-08-31 12:36:09 +00:00
feat(mobile): align RuView with Cognitum typography
This commit is contained in:
26
ui/ios-nlos/App/DesignSystem.swift
Normal file
26
ui/ios-nlos/App/DesignSystem.swift
Normal file
@@ -0,0 +1,26 @@
|
||||
import SwiftUI
|
||||
|
||||
enum RuViewTypography {
|
||||
enum Weight {
|
||||
case regular
|
||||
case medium
|
||||
case bold
|
||||
}
|
||||
|
||||
static func outfit(_ size: CGFloat, weight: Weight = .regular) -> Font {
|
||||
let name: String
|
||||
switch weight {
|
||||
case .regular:
|
||||
name = "Outfit-Regular"
|
||||
case .medium:
|
||||
name = "Outfit-Medium"
|
||||
case .bold:
|
||||
name = "Outfit-Bold"
|
||||
}
|
||||
return .custom(name, size: size)
|
||||
}
|
||||
|
||||
static func mono(_ size: CGFloat, medium: Bool = true) -> Font {
|
||||
.custom(medium ? "JetBrainsMono-Medium" : "JetBrainsMono-Regular", size: size)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user