opsinjs

RoleName

The roles a derived theme guarantees.

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.

RoleName

The roles a derived theme guarantees. Components consume these and never a step.

KindDeclared in
typelib/color/derive.ts
export type RoleName =
  | "canvas"
  | "surface"
  | "ink"
  | "muted-ink"
  | "line"
  | "control-line"
  | "primary"
  | "on-primary"
  | "focus"

On this page