opsinjs

RolePair

One semantic role in both colour modes.

How this is generated

Source: lib/color/derive.ts. Script: scripts/build-reference.mts. Command: pnpm run generate.

Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.

RolePair

One semantic role in both colour modes. Roles are derived as a pair, because a role that exists only in light mode is a role that breaks in dark.

KindDeclared in
interfacelib/color/derive.ts
export interface RolePair {
  light: RoleValue
  dark: RoleValue
}

On this page