forked from horizontalsystems/ThemeKit.Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFonts.swift
18 lines (17 loc) · 1.18 KB
/
Fonts.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import UIKit
extension UIFont {
public static let title1: UIFont = .systemFont(ofSize: 40, weight: .bold)
public static let title2: UIFont = .systemFont(ofSize: 34, weight: .bold)
public static let title2R: UIFont = .systemFont(ofSize: 34, weight: .regular)
public static let title3: UIFont = .systemFont(ofSize: 22, weight: .bold)
public static let headline1: UIFont = .systemFont(ofSize: 22, weight: .semibold)
public static let headline2: UIFont = .systemFont(ofSize: 17, weight: .semibold)
public static let body: UIFont = .systemFont(ofSize: 17, weight: .regular)
public static let subhead1: UIFont = .systemFont(ofSize: 14, weight: .medium)
public static let subhead1I: UIFont = UIFont.systemFont(ofSize: 14, weight: .medium).with(traits: .traitItalic)
public static let subhead2: UIFont = .systemFont(ofSize: 14, weight: .regular)
public static let caption: UIFont = .systemFont(ofSize: 12, weight: .regular)
public static let captionSB: UIFont = .systemFont(ofSize: 12, weight: .semibold)
public static let micro: UIFont = .systemFont(ofSize: 10, weight: .regular)
public static let microSB: UIFont = .systemFont(ofSize: 10, weight: .semibold)
}