Files
pbakaus_impeccable/tests/fixtures/antipatterns/typography-should-flag.html
T
Paul BakausandClaude Opus 4.6 3c9cc86061 Merge CLI into main repo, switch everything to Apache 2.0
Merges the impeccable-detect CLI repo (pbakaus/impeccable-cli@831a6cc)
into this repo. The BSL-1.1 license that motivated the split is gone;
everything is now Apache 2.0.

- Add bin/, src/, detection tests and fixtures from CLI repo
- Merge package.json: name → "impeccable", add bin/exports/files fields
- Internal refs now read from local src/ instead of node_modules/
- Update SPDX headers, NOTICE.md, CLAUDE.md, FAQ, npm README
- Add prepack/postpack scripts for CLI-focused README on npm
- Remove terminal license labels (no longer needed)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:50:33 -07:00

40 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typography Anti-Patterns — Should Flag</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background: #f9fafb;
padding: 2rem;
}
h1 { font-size: 18px; font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: 16px; font-weight: 600; margin: 2rem 0 0.75rem; color: #6b7280; }
h3 { font-size: 15px; font-weight: 600; }
p { font-size: 14px; color: #6b7280; margin-top: 0.25rem; }
.caption { font-size: 13px; color: #9ca3af; }
</style>
</head>
<body>
<h1>Typography Anti-Patterns</h1>
<p>This page triggers three typography detections:</p>
<h2>1. Overused Font</h2>
<p>Inter is loaded from Google Fonts and set as the only font-family. It's the most common AI default.</p>
<h2>2. Single Font</h2>
<p>There's no second font for headings or display text. Everything uses Inter — no typographic variety.</p>
<h2>3. Flat Type Hierarchy</h2>
<p>The font sizes are 13px, 14px, 15px, 16px, 18px — all crammed into a 5px range. No visual contrast between heading and body.</p>
<p class="caption">This caption is barely distinguishable from body text.</p>
<h3>A Subheading</h3>
<p>Can you tell this is a subheading? Exactly.</p>
<script src="/js/detect-antipatterns-browser.js"></script>
</body>
</html>