# DerivedRole

One role the resolver chose in one theme, and the value it uses.

This is an interface exported by `@mapcairn/theme`, checked against version 0.2.0.

## Signature

```ts
import type { DerivedRole } from "@mapcairn/theme";
 
interface DerivedRole
```

## Properties

### role

```ts
role: AccentRole;
```

The role.

### source

```ts
source: DerivedSource;
```

How the value was reached.

### theme

```ts
theme: ThemeName;
```

The theme the value is for.

### value

```ts
value: string;
```

The colour used, as `#rrggbb`.

## See also

- [`AccentRole`](https://docs.mapcairn.com/api/theme/AccentRole.md)
- [`DerivedSource`](https://docs.mapcairn.com/api/theme/DerivedSource.md)
- [`ThemeName`](https://docs.mapcairn.com/api/theme/ThemeName.md)

Source: [packages/theme/src/accent.ts:40](https://github.com/MapCairn/mapcairn/blob/main/packages/theme/src/accent.ts#L40)
