@tjakoen/grain 0.1.34 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,8 +20,10 @@
20
20
  /* ---- tone (attribute) — ink-level + border weight, NOT hue ----
21
21
  default : the calm baseline (a healthy/positive count needs no shouting).
22
22
  ok : same calm baseline — an explicit "good" that reads identical, by design.
23
+ warn : worth a look, not yet wrong — the value firms to semibold, the border stays calm.
23
24
  bad : draws the eye monochromatically — a solid-ink border + full-ink value.
24
25
  muted : a context/secondary count (skipped, pending, a total) recedes to faint. */
26
+ .stat[data-tone="warn"] .stat__value { font-weight: var(--font-weight-semibold); }
25
27
  .stat[data-tone="bad"] { border-color: var(--ink); }
26
28
  .stat[data-tone="muted"] .stat__value { color: var(--ink-muted); }
27
29
  .stat[data-tone="muted"] .stat__label { color: var(--ink-muted); }
@@ -32,3 +34,14 @@
32
34
  via the inherited --type-font. */
33
35
  .stat[data-commit="pending"],
34
36
  [data-grade="grain"] .stat { border-style: dashed; border-color: var(--ink); }
37
+
38
+ /* ---- a long text value (a plan id, a name) stays on one line and ends in an ellipsis rather
39
+ than wrapping the tile taller than its neighbours. Opt-in, because a number never needs it. */
40
+ .stat__value[data-fit="truncate"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
41
+
42
+ /* ---- a tile that is a link: a filter or a drill-down. It reads as the same tile; hover and focus
43
+ firm the border to full ink, and the selected tile (aria-current) adds an inset ink bar under
44
+ it. Weight and ink only, never hue. The focus ring stays the global one. */
45
+ a.stat { color: inherit; text-decoration: none; }
46
+ a.stat:hover { border-color: var(--ink); }
47
+ a.stat[aria-current]:not([aria-current="false"]) { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
@@ -32,15 +32,38 @@ state.
32
32
  ```
33
33
 
34
34
  ## Tones
35
- `data-tone` shifts ink-level, not hue. `bad` draws the eye with a solid-ink border; `muted` is a
35
+ `data-tone` shifts ink-level, not hue. `warn` marks a count worth a look that is not yet wrong
36
+ (items waiting, checks due) by setting the value in semibold while the border stays calm; `bad`
37
+ draws the eye with a solid-ink border; `muted` is a
36
38
  secondary/context count that recedes to faint; `ok` and the default read identically on purpose
37
39
  (a healthy count needs no shouting).
38
40
  ```html
39
41
  <div class="stat" data-tone="ok"><span class="stat__value">14</span><span class="stat__label">passed</span></div>
42
+ <div class="stat" data-tone="warn"><span class="stat__value">4</span><span class="stat__label">due</span></div>
40
43
  <div class="stat" data-tone="bad"><span class="stat__value">2</span><span class="stat__label">failed</span></div>
41
44
  <div class="stat" data-tone="muted"><span class="stat__value">3</span><span class="stat__label">skipped</span></div>
42
45
  ```
43
46
 
47
+ ## A long text value
48
+ When the value is a word rather than a number (a plan id, a name), `data-fit="truncate"` keeps it
49
+ on one line and ends it in an ellipsis, so the tile stays the height of its neighbours. Put the
50
+ full text in a `title` so it can still be read.
51
+ ```html
52
+ <div class="stat">
53
+ <span class="stat__value" data-fit="truncate" title="pantry-session-control">pantry-session-control</span>
54
+ <span class="stat__label">busiest plan</span>
55
+ </div>
56
+ ```
57
+
58
+ ## As a link
59
+ A tile can be the link itself when it filters a view or opens the detail behind the number. Use a
60
+ real `<a>`, and mark the selected filter with `aria-current="page"`, which adds an ink bar under
61
+ the tile. The label should say where the link goes, as it does here.
62
+ ```html
63
+ <a class="stat" href="?view=doing" aria-current="page"><span class="stat__value">4</span><span class="stat__label">doing</span></a>
64
+ <a class="stat" href="?view=blocked"><span class="stat__value">1</span><span class="stat__label">blocked</span></a>
65
+ ```
66
+
44
67
  ## In transit (AI writing the number)
45
68
  ```html
46
69
  <div class="stat" data-commit="pending">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tjakoen/grain",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "GRAIN — an AI-interaction design system where every surface is operable by both a human and an AI through one shared vocabulary.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -32,6 +32,7 @@
32
32
  "components",
33
33
  "fonts",
34
34
  "scripts",
35
+ "!scripts/fixtures",
35
36
  "styles",
36
37
  "PLAN.md"
37
38
  ],
@@ -1,28 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: accent-word</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .pop { color: var(--color-accent); }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">Build something <span class="pop">remarkable</span> today</h1>
24
- <p class="byline">Tjakoen Stolk · 17 Nov 2026</p>
25
- <hr class="rule">
26
- </main>
27
- </body>
28
- </html>
@@ -1,34 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: card-run</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .cards { display: grid; gap: var(--space-4); }
19
- .card { border: 1px solid var(--color-fg); padding: var(--space-4); }
20
- </style>
21
- </head>
22
- <body>
23
- <main>
24
- <h1 class="masthead">A page that reads like a person made it</h1>
25
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
26
- <hr class="rule">
27
- <div class="cards">
28
- <div class="card"><h3>Fast</h3><p>It is fast.</p></div>
29
- <div class="card"><h3>Simple</h3><p>It is simple.</p></div>
30
- <div class="card"><h3>Secure</h3><p>It is secure.</p></div>
31
- </div>
32
- </main>
33
- </body>
34
- </html>
@@ -1,32 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: clean</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- </style>
19
- </head>
20
- <body>
21
- <main>
22
- <h1 class="masthead">A page that reads like a person made it</h1>
23
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
24
- <hr class="rule">
25
- <p>One idea per paragraph, written plainly, with a <a href="#more">link that goes somewhere</a>.</p>
26
- <h2 id="more">What it covers</h2>
27
- <p>The heading carries the section, and context sits in the first sentence below it.</p>
28
- <img src="data:image/gif;base64,R0lGODlhAQABAAAAACw=" width="40" height="20" alt="">
29
- <form action="/notes"><label>Search <input name="q"></label> <button>Go</button></form>
30
- </main>
31
- </body>
32
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: closing-signup</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- </style>
19
- </head>
20
- <body>
21
- <main>
22
- <h1 class="masthead">A page that reads like a person made it</h1>
23
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
24
- <hr class="rule">
25
- <p>Some content.</p>
26
- <form action="/subscribe"><label>Email <input type="email" name="email"></label> <button>Subscribe</button></form>
27
- </main>
28
- </body>
29
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: contrast-aa</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .faint { color: var(--color-bg-faint, #e9e2d6); }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p class="faint">This text is nearly the colour of the paper.</p>
27
- </main>
28
- </body>
29
- </html>
@@ -1,28 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: dead-form</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- </style>
19
- </head>
20
- <body>
21
- <main>
22
- <h1 class="masthead">A page that reads like a person made it</h1>
23
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
24
- <hr class="rule">
25
- <form><label>Email <input name="e"></label> <button>Send</button></form>
26
- </main>
27
- </body>
28
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: focus-visible</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .bare:focus, .bare:focus-visible { outline: none; }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p><a class="bare" href="#x">A link with its ring removed</a></p>
27
- </main>
28
- </body>
29
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: heading-widow</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
-
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <h2>Ship it and see if it<br>holds</h2>
27
- </main>
28
- </body>
29
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: hero-overflow</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .hero-art { height: 1200px; }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <div class="hero-art" role="presentation"></div>
24
- <h1 class="masthead">A page that reads like a person made it</h1>
25
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
26
- <hr class="rule">
27
- </main>
28
- </body>
29
- </html>
@@ -1,28 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: image-ratio</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- </style>
19
- </head>
20
- <body>
21
- <main>
22
- <h1 class="masthead">A page that reads like a person made it</h1>
23
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
24
- <hr class="rule">
25
- <img src="data:image/gif;base64,R0lGODlhAQABAAAAACw=" alt="">
26
- </main>
27
- </body>
28
- </html>
@@ -1,31 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: label-above-heading</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .tag { font-size: var(--text-sm); margin: 0; }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p class="tag">Overview</p>
27
- <h2>What it covers</h2>
28
- <p>Body.</p>
29
- </main>
30
- </body>
31
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: off-scale-space</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .odd { margin-top: 13px; }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p class="odd">Spaced by eye rather than by scale.</p>
27
- </main>
28
- </body>
29
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: phone-overflow</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .wide { width: 900px; }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p class="wide">A paragraph fixed wider than any phone.</p>
27
- </main>
28
- </body>
29
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: raw-color</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .loud { color: #ff2d55; }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p class="loud">A colour typed in by hand.</p>
27
- </main>
28
- </body>
29
- </html>
@@ -1,30 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: reduced-motion</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- @keyframes spin { to { transform: rotate(1turn); } }
19
- .spin { display: inline-block; animation: spin 2s linear infinite; }
20
- </style>
21
- </head>
22
- <body>
23
- <main>
24
- <h1 class="masthead">A page that reads like a person made it</h1>
25
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
26
- <hr class="rule">
27
- <p><span class="spin">*</span> spins whatever the reader asked for.</p>
28
- </main>
29
- </body>
30
- </html>
@@ -1,28 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: text-above-h1 allowed</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- </style>
19
- </head>
20
- <body>
21
- <main>
22
- <p class="kicker" data-grain-lint-allow="text-above-h1: a series name the reader navigates by">Part two</p>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- </main>
27
- </body>
28
- </html>
@@ -1,28 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: text-above-h1</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- </style>
19
- </head>
20
- <body>
21
- <main>
22
- <p class="kicker">Introducing</p>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- </main>
27
- </body>
28
- </html>
@@ -1,29 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>grain-lint fixture: tracked-caps</title>
7
- <style>
8
- :root { --color-fg: #1d1a16; --color-muted: #5c554c; --color-bg: #f4efe6; --color-accent: #7a4a10;
9
- --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --text-sm: 0.875rem; --display: 2.5rem; }
10
- body { margin: 0; background: var(--color-bg); color: var(--color-fg); font: 16px/1.5 Georgia, serif; }
11
- main { max-width: 40rem; margin: 0 auto; padding: 0 var(--space-4); }
12
- h1, h2, h3 { font-weight: 400; text-wrap: balance; }
13
- .masthead { font-size: var(--display); margin: var(--space-6) 0 var(--space-2); }
14
- .byline { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
15
- .rule { border: 0; border-bottom: 1px solid var(--color-fg); margin: 0 0 var(--space-6); }
16
- a { color: var(--color-accent); }
17
- :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
18
- .shout { text-transform: uppercase; letter-spacing: 0.2em; font-size: var(--text-sm); }
19
- </style>
20
- </head>
21
- <body>
22
- <main>
23
- <h1 class="masthead">A page that reads like a person made it</h1>
24
- <p class="byline"><span class="name">Tjakoen Stolk</span> · 17 Nov 2026</p>
25
- <hr class="rule">
26
- <p class="shout">Featured work</p>
27
- </main>
28
- </body>
29
- </html>