Skip to main content

ThemeColourRole

The interface colour roles a host may override, and so the roles a finding's foreground can name.

This is a type alias exported by @mapcairn/theme, checked against version 0.2.0.

Signature​

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

type ThemeColourRole = "surface" | "surfaceRaised" | "text" | "textMuted" | "accent" | "accentTint" | "accentContrast" | "hairline" | "controlBoundary" | "danger" | "dangerTint" | "scrim" | "focusRing" | "focusRingInner";

Source: packages/theme/src/contrastPairs.ts:30