> ## 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.

# CheckoutFontSize

> Swift Enumeration

**Enumeration**

A CSS font size.

```swift theme={null}
enum CheckoutFontSize
```

Use `CheckoutFontSize.px(_:)`, `CheckoutFontSize.rem(_:)`, or `CheckoutFontSize.em(_:)` for the common units. Use `CheckoutFontSize.custom(_:)` for a different CSS value.

## Enumeration Cases

| Case | Description |
| - | - |
| `custom(_:)` | A CSS `font-size` value, for example `"clamp(14px, 4vw, 18px)"`. |
| `em(_:)` | A size relative to the font size of the parent element. |
| `px(_:)` | A size in CSS pixels. |
| `rem(_:)` | A size relative to the font size of the root element. |

## Initializers

### init(from:)

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

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

## Instance Methods

### encode(to:)

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

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