> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CheckoutFontWeight

> Swift Structure

**Structure**

A CSS font weight.

```swift theme={null}
struct CheckoutFontWeight
```

Use a named weight such as `semibold`, or a number from `1` to `1000`. Use `init(_:)` for a different CSS `font-weight` value, for example `"bold"`.

## Initializers

### init(\_:)

Creates a weight from a number, for example `600`.

```swift theme={null}
init(_ value: Int)
```

> **Note**: `value` is in the range `1...1000`.

### init(\_:)

Creates a weight from a CSS `font-weight` value, for example `"bold"`.

```swift theme={null}
init(_ value: String)
```

### init(from:)

Inherited from `Decodable.init(from:)`.

```swift theme={null}
init(from decoder: Decoder) throws
```

### init(integerLiteral:)

Creates a weight from an integer literal.

```swift theme={null}
init(integerLiteral value: Int)
```

## Instance Methods

### encode(to:)

Inherited from `Encodable.encode(to:)`.

```swift theme={null}
func encode(to encoder: Encoder) throws
```

## Type Properties

| Property | Type | Description |
| - | - | - |
| `black` | `CheckoutFontWeight` | The weight `900`. |
| `bold` | `CheckoutFontWeight` | The weight `700`. |
| `extraBold` | `CheckoutFontWeight` | The weight `800`. |
| `extraLight` | `CheckoutFontWeight` | The weight `200`. |
| `light` | `CheckoutFontWeight` | The weight `300`. |
| `medium` | `CheckoutFontWeight` | The weight `500`. |
| `regular` | `CheckoutFontWeight` | The weight `400`. |
| `semibold` | `CheckoutFontWeight` | The weight `600`. |
| `thin` | `CheckoutFontWeight` | The weight `100`. |
