Skip to main content

DerivedSource

How a role got its value: given is the accent as the host wrote it, moved is the accent after its lightness changed to reach WCAG 2.2 AA, and derived is a role worked out from the accent.

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

Signature​

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

type DerivedSource = "given" | "moved" | "derived";

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