Every bar paints gradientFromColor, which is rgba(0,0,0,0.06) in the default theme, and the active sweep runs up to gradientToColor at rgba(0,0,0,0.15). The dark theme swaps both for white at low alpha. The Tokens tab lists all eight tokens.
- Both are semi-transparent fills, so they blend with whatever is behind them. The same token that reads clearly on a white page can all but vanish on a tinted card, a colored banner or an image. Check the placeholder on the surface it will sit on, in both modes.
- No text contrast ratio applies to the bars, since they carry no text. A reader who cannot make them out still needs to know the page is loading, so announce it.
- Keep them lighter than the text that will replace them. A bar darker than body text reads as content, and a reader waits for it to say something.
- Do not raise the contrast with a hardcoded gray. Change gradientFromColor and gradientToColor, or the global fills they come from, so both modes change together.
- Windows High Contrast mode drops background colors, so a skeleton can disappear there. The announcement is then the only thing left.