Skip to content

Add Fraunces display headings and paper/wood texture treatment - #13

Merged
amrtgaber merged 1 commit into
mainfrom
ui-fraunces-textures
Jul 20, 2026
Merged

Add Fraunces display headings and paper/wood texture treatment#13
amrtgaber merged 1 commit into
mainfrom
ui-fraunces-textures

Conversation

@amrtgaber

Copy link
Copy Markdown
Contributor

Summary

First pass of the UI overhaul: gives the site a distinctive nature/print identity via typography and texture, all routed through the existing CSS-variable theme.

  • Headings move from Lora to Fraunces (body stays Lora). The Google Fonts request pins the opsz/wght/SOFT/WONK variable axes; base-layer styles set SOFT 30 on all headings and SOFT 60, WONK 1 on h1 for display personality. Per-element tracking-wide utilities are removed so letter-spacing is owned centrally by the base layer.
  • Paper-grain shell: .texture-paper overlays an inline-SVG fractal-noise grain (~350 bytes, tiles seamlessly, no network request) behind all content via a negative-z ::before inside an isolated stacking context. Strength is tunable via --paper-opacity (0.14 light / 0.11 dark).
  • Wood accent strips: .texture-wood (walnut base + horizontally-stretched turbulence streaks) replaces the header border-b and footer border-t as h-1.5 bands.
  • Warmer chrome: global --border/--input shift from neutral gray to tan; Card swaps shadow-sm for a warm-toned --shadow-card lift so cards read as paper on a textured desk.
  • Brand wordmarks use the heading face; footer's uppercase section labels are pinned to font-body (uppercase display-serif reads poorly).

Design knobs

--paper-opacity, --wood, --border, --shadow-card, and the SOFT/WONK values in @layer base are the tuning points, all in src/index.css.

Testing

  • Vitest suite and tsc -b/vite build pass.
  • Verified locally in light and dark modes on home, blog listing, article, about, and contact pages, including against production Ghost content.

- Load Fraunces (opsz/wght/SOFT/WONK axes) alongside Lora; --font-heading
  now resolves to Fraunces while body text stays Lora
- Base-layer heading styles: tighter tracking, SOFT 30 on all headings,
  SOFT 60 + WONK 1 on h1 for display personality
- Remove per-element tracking-wide utilities so letter-spacing is owned
  by the base layer
- Add .texture-paper: SVG fractal-noise paper grain over the page shell,
  strength tunable via --paper-opacity (light/dark variants)
- Add .texture-wood: walnut grain strips replacing the header border-b
  and footer border-t
- Warm the global --border/--input tone from neutral gray to tan
- Replace Card shadow-sm with warm-toned --shadow-card lift
- Brand wordmarks use the heading face; footer section labels pinned to
  font-body
@netlify

netlify Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploy Preview for treepolitics-web ready!

Name Link
🔨 Latest commit eaac1be
🔍 Latest deploy log https://app.netlify.com/projects/treepolitics-web/deploys/6a5e9a7ebbce380008b9d65c
😎 Deploy Preview https://deploy-preview-13--treepolitics-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@amrtgaber
amrtgaber merged commit 0786110 into main Jul 20, 2026
6 checks passed
@amrtgaber
amrtgaber deleted the ui-fraunces-textures branch July 20, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant