Molecule · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: Full byline
Rendered by byline.tsOpen example: Byline · Do: Full byline Use the full-page example to follow page links.
Do: Japanese
Rendered by byline.tsOpen example: Byline · Do: Japanese Use the full-page example to follow page links.
Don't: No date
Rendered by byline.tsOpen example: Byline · Don't: No date Use the full-page example to follow page links.
Don't: A future date
Rendered by byline.tsOpen example: Byline · Don't: A future date Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| Every article has an author and a real publication date. | The owner's voice and the date are part of the evidence. | Automated: scripts/site/pages.ts (front matter date is YYYY-MM-DD) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
parts | list | Yes | Escaped author, a <time> element and the reading time. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | byline |
| Layer | Molecules |
| Category | content |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/molecules/byline.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Author, date and reading time under an article title. |
Use when
- Under every article title. Why: Readers trust an argument more when they know who makes it and when.
Do not use when
- On product pages. Why: Product pages describe the product, not an opinion with an author.
Anatomy
| Part | What it is |
|---|---|
| root | p.meta.article-byline |
| parts | Author · time element · reading time, separated by dots. |
Made of: eyebrow.
Used in: pages directly.
Variants
| Variant | When | Why |
|---|---|---|
| article | Articles in English and Japanese. | The same three facts in both. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: A byline is not interactive, so it has no hover state. |
| focus-visible | Not applicable: A byline does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: A byline cannot be pressed. |
| disabled | Not applicable: A byline has nothing to disable. |
| loading | Not applicable: A byline is rendered at build time and is complete when the page loads. |
| empty | Not applicable: A byline is not rendered without content; the builder skips it. |
| error | Not applicable: A byline shows no data that can fail. |
| current | Not applicable: A byline has no current item. |
| visited | Not applicable: A byline is not a link. |
| expanded | Not applicable: A byline does not open or close. |
Tokens
| Part | Token |
|---|---|
| root.font | --type-small-strong |
| root.color | --ink-2 |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; wraps on phones. |
| wrapping | Wraps between parts. |
| textExpansion | Japanese date format is longer and wraps. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | Dots with spaces. |
| external | --space-4 under the title. |
| rhythm | Part of the page head. |
Motion
| Aspect | Value |
|---|---|
| None | Static. |
Runtime and reuse
Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.
Accessibility passport
| Aspect | Value |
|---|---|
| role | paragraph |
| name | None |
| keyboard | Not interactive. |
| focus | Not focusable. |
| screenReader | Reads author, date (machine-readable in datetime) and time. |
| contrast | --ink-2 on cotton 8.6:1. |
| target | Not a target. |
Content
| Slot | Length | Voice |
|---|---|---|
| parts | 3 parts | Name · date · minutes |
Good: “Site system lead, founder of Loom · 26 October 2026 · 8 min read”
Bad: “By Admin”
Japanese: Japanese bylines use (Loom 創業者), the Japanese date and 約 N 分.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
5 uses across the built pages (measured by npm run site:system).
Shared styles
Byline renders .meta and inherits the Eyebrow typography and foreground roles; .article-byline identifies content, without a second style implementation.
Style owners: eyebrow
apps/showcase/site/system/styles/core/eyebrow.css
Remaining review: Existing English/Japanese positive specimens fit light/dark 320/390/1440; worst-case names/dates and native-language review remain open.
Tests
| Aspect | Value |
|---|---|
| unit | tests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns |
| visual | Not yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts |
| a11y | tests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark |
| parity | scripts/site/system/check.ts: Library examples are rendered by the same render function the site imports |
Figma
not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.