<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Font/system(_:design:weight:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4FontV6system_6design6weightA2C9TextStyleO_AC6DesignOSgAC6WeightVSgtFZ"
  },
  "title" : "system(_:design:weight:)"
}
-->

# system(_:design:weight:)

Gets a system font that uses the specified style, design, and weight.

```
static func system(_ style: Font.TextStyle, design: Font.Design? = nil, weight: Font.Weight? = nil) -> Font
```

## Discussion

Use this method to create a system font that has the specified
properties. The following example creates a system font with the
[`Font.TextStyle.body`](/documentation/SwiftUI/Font/TextStyle/body) text style, a [`Font.Design.serif`](/documentation/SwiftUI/Font/Design/serif) design, and
a [`bold`](/documentation/SwiftUI/Font/Weight/bold) weight, and applies the font to a [`Text`](/documentation/SwiftUI/Text) view
using the [`font(_:)`](/documentation/SwiftUI/View/font(_:)) view modifier:

```
Text("Hello").font(.system(.body, design: .serif, weight: .bold))
```

The `design` and `weight` parameters are both optional. If you omit
either, the system uses a default value for that parameter. The
default values are typically [`Font.Design.default`](/documentation/SwiftUI/Font/Design/default) and [`regular`](/documentation/SwiftUI/Font/Weight/regular),
respectively, but might vary depending on the context.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)