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

# CheckoutColor.Companion

> Kotlin Object

**Object**

```kotlin theme={null}
companion object
```

## Functions

| Function | Description |
| - | - |
| `color` | Creates a color from a Compose color, for example `Color(0xFF0066FF)`. |
| `css` | Creates a color from a CSS color value, for example `"rgb(26, 26, 26)"`. |
| `hex` | Creates a color from a hex string, for example `"#1A1A1A"` or `"#1A1A1A80"`. |

### color

```kotlin theme={null}
fun color(color: Color): CheckoutColor
```

Creates a color from a Compose color, for example `Color(0xFF0066FF)`.

### css

```kotlin theme={null}
fun css(value: String): CheckoutColor
```

Creates a color from a CSS color value, for example `"rgb(26, 26, 26)"`.

### hex

```kotlin theme={null}
fun hex(value: String): CheckoutColor
```

Creates a color from a hex string, for example `"#1A1A1A"` or `"#1A1A1A80"`.
