Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 1.85 KB

typography.md

File metadata and controls

100 lines (71 loc) · 1.85 KB

Typography

Contents

Heading

Full documentation

Sizing

VStack {
    Text("Heading Sizes").Heading(align:.center)
    Text("H1").Heading()
    Text("H2").Heading(size: .H2)
    Text("H3").Heading(size: .H3)
    Text("H4").Heading(size: .H4)
    Text("H5").Heading(size: .H5)
    Text("H6").Heading(size: .H6)
}

Alignment

VStack {
    Text("Alginment").Heading(align:.center)
    Text("leading").Heading()
    Text("center").Heading(align: .center)
    Text("trailing").Heading(align: .trailing)
}

Paragraph

Full documentation

Sizing

VStack{
    Text("Lorem ipsum ... semper vitae.").Paragraph(size: .LG)
    Text("Lorem ipsum ... semper vitae.").Paragraph()
    Text("Lorem ipsum ... semper vitae.").Paragraph(size:.SM)
}

Alignment

VStack{
    Text("Lorem ipsum ... semper vitae.").Paragraph()
    Text("Lorem ipsum ... semper vitae.").Paragraph(align: .center)
    Text("Lorem ipsum ... semper vitae.").Paragraph(align: .trailing)
}

List

Ordered list

Full documentation

OrderedList(items: [
    "step one",
    "step two",
    "step three"
])

Unordered List

Full documentation

UnorderedList(items: [
    "step one",
    "step two",
    "step three"
])