This pattern shows how to build a color adaptive and accessible loading bar with the <progress> element.
<progress>
Full article · Video on YouTube · Source on Github