mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-14 15:16:35 +03:00
* Add detector benchmark lab and visual contrast fallback * Expand visual contrast fixture coverage * Add browser visual contrast fallback * Show visual contrast overlays in detector lab * Fix detector lab short viewport layout * Fix detector lab visual overlays * Add visual contrast to browser scan overlays * Avoid browser scroll jumps during visual contrast scans * Resolve visual contrast lazily on scroll * Refresh detector lab visual counts lazily * Update pnpm lockfile for static parser deps * Address Bugbot detector API comments * Report extension visual contrast errors * Refactor detector into engine modules * Address Bugbot detector comments * Fix latest Bugbot detector notes * Fix visual contrast fixture labels * Refine detector lab fixtures * Fix stale detector overlay references * Fix detector lab fixture URLs * Fix typography lab fixture highlights * Fix typography lab page-level signal * Fix visual overlay lifecycle cleanup * Remove dead spotlight timer cleanup * Make browser async APIs reject consistently
40 lines
1.5 KiB
HTML
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: #6b7280; }
|
|
</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>
|