# createNamedRemoteColor

> Creates a named [RemoteColor] with an initial value.

## API Reference

### createNamedRemoteColor

> Source set: Android

```kotlin
public fun RemoteColor.Companion.createNamedRemoteColor(
    name: String,
    defaultValue: Color,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteColor
```

Creates a named [RemoteColor](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteColor/api.md) with an initial value.

Named remote colors can be set via AndroidRemoteContext.setNamedColor.

#### Parameters

| | |
| --- | --- |
| name | A unique name to identify this state within its `domain`. |
| defaultValue | The initial [Color](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/functions/Color/api.md) value for the named remote color. |
| domain | The domain for the named state. Defaults to [RemoteState.Domain.User](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/objects/RemoteState.Domain.User/api.md). |

#### Return

A [RemoteColor](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/RemoteColor/api.md) representing the named color.

### createNamedRemoteColor

> Source set: Android

```kotlin
public fun createNamedRemoteColor(
    name: String,
    defaultValue: Color,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteColor
```

Creates a named [RemoteColor](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteColor/api.md) with an initial value.

#### Parameters

| | |
| --- | --- |
| name | A unique name to identify this state within its `domain`. |
| defaultValue | The initial [Color](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/functions/Color/api.md) value for the named remote color. |
| domain | The domain for the named state. Defaults to [RemoteState.Domain.User](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/objects/RemoteState.Domain.User/api.md). |

#### Return

A [RemoteColor](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/RemoteColor/api.md) representing the named color.
