Foundations/Typography
Typography
SwiftDS follows Apple's Human Interface Guidelines typography scale with support for Dynamic Type and accessibility features built-in.
Text Styles
.largeTitle
Page titles
34px · Bold
Aa
.title
Section headers
28px · Bold
Aa
.title2
Card titles
22px · Bold
Aa
.title3
Subsection headers
20px · Semibold
Aa
.headline
List headers
17px · Semibold
Aa
.body
Body text
17px · Regular
Aa
.callout
Secondary text
16px · Regular
Aa
.subheadline
Captions
15px · Regular
Aa
.footnote
Metadata
13px · Regular
Aa
.caption
Timestamps
12px · Regular
Aa
.caption2
Fine print
11px · Regular
Aa
Usage
Example
import SwiftUI
Text("Hello World")
.font(.largeTitle)
.foregroundColor(.dsForeground)
Text("Secondary text")
.font(.body)
.foregroundColor(.dsForegroundMuted)Dynamic Type
All text styles automatically scale with the user's preferred text size setting. SwiftDS components respect Dynamic Type by default, ensuring accessibility for all users.