Skip to content

The design language that makes your AI harness better at design.

JavaScript
11.1 KB
Raw Blame
{
  "stdout": "[\n  {\n    \"antipattern\": \"low-contrast\",\n    \"name\": \"Low contrast text\",\n    \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"3.3:1 (need 4.5:1) — text #ffffff on #f9561f\"\n  },\n  {\n    \"antipattern\": \"low-contrast\",\n    \"name\": \"Low contrast text\",\n    \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"3.2:1 (need 4.5:1) — text #ffffff on #f85a20\"\n  },\n  {\n    \"antipattern\": \"low-contrast\",\n    \"name\": \"Low contrast text\",\n    \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"1.9:1 (need 4.5:1) — text #bbbbbb on #ffffff\"\n  },\n  {\n    \"antipattern\": \"low-contrast\",\n    \"name\": \"Low contrast text\",\n    \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"2.2:1 (need 4.5:1) — text #b4afa4 on #ffffff\"\n  },\n  {\n    \"antipattern\": \"low-contrast\",\n    \"name\": \"Low contrast text\",\n    \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"2.2:1 (need 4.5:1) — text #b4afa5 on #ffffff\"\n  },\n  {\n    \"antipattern\": \"undersized-ui-text\",\n    \"name\": \"Undersized functional text\",\n    \"description\": \"Interactive and content-bearing UI text (links, buttons, nav items, labels, table cells, meta rows, timecodes) below 11px is a legibility failure, not a style choice. WCAG sets no absolute pixel floor, but functional text under 11px is a defensible quality bar: it fails on high-DPI and small viewports and it degrades tap and read targets. The 11px floor holds even inside a footer; only non-interactive legal smallprint gets the softer 10px floor. Being ON the DESIGN.md size ramp does not exempt a value here: adding 8px to the ramp launders the token but not the legibility problem, and that is exactly the escape hatch this rule closes. Exempts sup/sub, visually-hidden (sr-only) text, and code/terminal contexts. Decorative letterspaced micro-labels are still functional and stay in scope.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"1px functional text \\\"Die LUH auf Mastodon\\\" (below 11px floor)\"\n  },\n  {\n    \"antipattern\": \"undersized-ui-text\",\n    \"name\": \"Undersized functional text\",\n    \"description\": \"Interactive and content-bearing UI text (links, buttons, nav items, labels, table cells, meta rows, timecodes) below 11px is a legibility failure, not a style choice. WCAG sets no absolute pixel floor, but functional text under 11px is a defensible quality bar: it fails on high-DPI and small viewports and it degrades tap and read targets. The 11px floor holds even inside a footer; only non-interactive legal smallprint gets the softer 10px floor. Being ON the DESIGN.md size ramp does not exempt a value here: adding 8px to the ramp launders the token but not the legibility problem, and that is exactly the escape hatch this rule closes. Exempts sup/sub, visually-hidden (sr-only) text, and code/terminal contexts. Decorative letterspaced micro-labels are still functional and stay in scope.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"2px functional text \\\"Die LUH auf Bluesky\\\" (below 11px floor)\"\n  },\n  {\n    \"antipattern\": \"cramped-padding\",\n    \"name\": \"Cramped padding\",\n    \"description\": \"Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"<div> \\\"sticky-bar\\\": children flush against bg on right (no inset)\"\n  },\n  {\n    \"antipattern\": \"cramped-padding\",\n    \"name\": \"Cramped padding\",\n    \"description\": \"Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"<div> \\\"curtain\\\": children flush against bg on all sides (no inset)\"\n  },\n  {\n    \"antipattern\": \"cramped-padding\",\n    \"name\": \"Cramped padding\",\n    \"description\": \"Text is too close to the edge of its container. Two shapes: (1) an element with its own text where the space between the rendered text and the border box is too small for the font size, and (2) a wrapper whose children's text lands flush against a visible boundary (border, outline, or non-transparent background) with nothing to inset it. Add at least 8px (ideally 12–16px) of space inside bordered, outlined, or colored containers.\",\n    \"severity\": \"warning\",\n    \"category\": \"quality\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"<div> \\\"curtain\\\": children flush against bg on all sides (no inset)\"\n  },\n  {\n    \"antipattern\": \"numbered-section-labels\",\n    \"name\": \"Tiny numbered section labels\",\n    \"description\": \"Small numeric index labels riding next to section headings, repeated section after section, are AI editorial scaffolding — a page numbering its own chapters instead of earning structure. Let hierarchy, content, and rhythm carry the sequence.\",\n    \"severity\": \"advisory\",\n    \"category\": \"slop\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"tiny numbered label \\\"01\\\" beside h3 \\\"Pass step one\\\" (6 on page)\",\n    \"advisory\": true\n  },\n  {\n    \"antipattern\": \"numbered-section-labels\",\n    \"name\": \"Tiny numbered section labels\",\n    \"description\": \"Small numeric index labels riding next to section headings, repeated section after section, are AI editorial scaffolding — a page numbering its own chapters instead of earning structure. Let hierarchy, content, and rhythm carry the sequence.\",\n    \"severity\": \"advisory\",\n    \"category\": \"slop\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"tiny numbered label \\\"02\\\" beside h3 \\\"Pass step two\\\" (6 on page)\",\n    \"advisory\": true\n  },\n  {\n    \"antipattern\": \"numbered-section-labels\",\n    \"name\": \"Tiny numbered section labels\",\n    \"description\": \"Small numeric index labels riding next to section headings, repeated section after section, are AI editorial scaffolding — a page numbering its own chapters instead of earning structure. Let hierarchy, content, and rhythm carry the sequence.\",\n    \"severity\": \"advisory\",\n    \"category\": \"slop\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"tiny numbered label \\\"03\\\" beside h3 \\\"Pass step three\\\" (6 on page)\",\n    \"advisory\": true\n  },\n  {\n    \"antipattern\": \"numbered-section-labels\",\n    \"name\": \"Tiny numbered section labels\",\n    \"description\": \"Small numeric index labels riding next to section headings, repeated section after section, are AI editorial scaffolding — a page numbering its own chapters instead of earning structure. Let hierarchy, content, and rhythm carry the sequence.\",\n    \"severity\": \"advisory\",\n    \"category\": \"slop\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"tiny numbered label \\\"01\\\" beside h3 \\\"Flag step one\\\" (6 on page)\",\n    \"advisory\": true\n  },\n  {\n    \"antipattern\": \"numbered-section-labels\",\n    \"name\": \"Tiny numbered section labels\",\n    \"description\": \"Small numeric index labels riding next to section headings, repeated section after section, are AI editorial scaffolding — a page numbering its own chapters instead of earning structure. Let hierarchy, content, and rhythm carry the sequence.\",\n    \"severity\": \"advisory\",\n    \"category\": \"slop\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"tiny numbered label \\\"02\\\" beside h3 \\\"Flag step two\\\" (6 on page)\",\n    \"advisory\": true\n  },\n  {\n    \"antipattern\": \"numbered-section-labels\",\n    \"name\": \"Tiny numbered section labels\",\n    \"description\": \"Small numeric index labels riding next to section headings, repeated section after section, are AI editorial scaffolding — a page numbering its own chapters instead of earning structure. Let hierarchy, content, and rhythm carry the sequence.\",\n    \"severity\": \"advisory\",\n    \"category\": \"slop\",\n    \"file\": \"<REPO>/tests/fixtures/antipatterns/not-visible-at-capture.html\",\n    \"line\": 0,\n    \"snippet\": \"tiny numbered label \\\"03\\\" beside h3 \\\"Flag step three\\\" (6 on page)\",\n    \"advisory\": true\n  }\n]\n",
  "stderr": "",
  "exit": 2,
  "signal": null,
  "files": {}
}