Directory theme rules
Spec: src/themes/directory/THEME.md. One family, Libre Franklin, at three weights. Dense where results are dense, roomy where people decide.
Type
Find local businesses
Plumbers near Northgate
Hearthline Plumbing
Body text at 17px with 1.55 leading. Drain cleaning, water heaters, and 24-hour emergency service.
Kicker label · 12px · 0.08em tracking
Color
- Paper
--paperPage background (60) - Surface
--surfaceResult rows, panels - Ink
--inkText, rating chips - Muted
--mutedSecondary text - Hairline
--lineDividers - Slate
--slateHeader bar, owners band, footer (30) - Signal
--redBrand mark, buttons, map pins (10) - Open green
--greenRating chip, open now - Sponsored
--sp-bgPaid row background - Sponsored text
--sp-textThe word Sponsored
Palettes
| Palette | 60 page | 30 bands | 10 accent |
|---|---|---|---|
| HarborSlate header, paper page, signal red. The default. | #faf8f4 | #1c2b2d | #b8322a |
| GreenmarketFresh greens with a persimmon accent. Food, garden, outdoors. | #f5f8f2 | #1d3b2c | #c2410c |
| TerracottaWarm clay header, deep teal links. Main-street and makers. | #fbf6f0 | #8a3a22 | #0f6470 |
| Night MapDark, low-glare. Late-night food and emergency trades. | #111517 | #1f2b2e | #ff7a66 |
Page types
- Home
- Two-field search, category browse, popular listings with one sponsored row, neighborhoods, guides, owners band.
- Results (category)
- Breadcrumb, result count, sort, filters sidebar, numbered result rows, map, pagination.
- Guide (article)
- Byline and date, contents, price table, FAQ, related listings.
- Business profile (listing)
- Rating and review count, actions, photos, services, hours table, credentials, reviews, contact card with map.
- About
- How listings, ratings, and sponsored placements work, add-a-business steps, contact form.
- Rules
- Type specimen, color tokens, page types, do and don’t.
Do
- Write the rating as a number with the review count next to it: 4.8 · 212 reviews.
- Label every paid placement with the word Sponsored and link to how placements work.
- Show hours status in words (Open until 6:00 p.m.), not color alone.
- Give search two fields, what and where, each with a visible label.
- Keep result rows dense and scannable: name, rating, category, area, hours, phone.
Don’t
- Do not use stars as the only rating signal.
- Do not mix a sponsored listing into organic results without the label and a tinted row.
- Do not add aggregateRating JSON-LD until reviews are real and collected on the site.
- Do not list a real business without its permission.
- Do not put a photo slot on every row. Profiles get photos; results get facts.