Skip to content
Design System
GitHub

Theme toggle

v0.10.1

Light, match the system, or dark: three icon segments, the current one inverted, each named for screen readers.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

No role of its own: it is read as the text it contains.

    Keyboard

    No keys of its own. Tab reaches each control in it, and each works as the browser's own button, link or field does.

    Colour contrast

    Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.