package theme
import "testing"
// Muted text is secondary: in every theme it stands out from the page
// less than the body text does, or it ranks nothing. Seven themes had a
// "muted" as strong as their text, GitHub light's darker than it (jva,
// 2026-10-31).
func TestMutedIsQuieterThanTheText(t *testing.T) {
for _, th := range All {
bg, fg, mu := th.Value("--bg"), th.Value("--fg"), th.Value("--muted")
if bg == "" || fg == "" || mu == "" {
continue
}
if Contrast(mu, bg) >= Contrast(fg, bg) {
t.Errorf("FAIL: %s: muted %s stands out as much as text %s on %s", th.ID, mu, fg, bg)
}
}
}