Skip to main content

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​

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

interface DerivedRole

Properties​

role​

role: AccentRole;

The role.

source​

source: DerivedSource;

How the value was reached.

theme​

theme: ThemeName;

The theme the value is for.

value​

value: string;

The colour used, as #rrggbb.

See also​

Source: packages/theme/src/accent.ts:40