diff --git a/README.md b/README.md index e9a160c..42fbe04 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ css/ style.css design tokens, components, page styles js/ typefolio.js menu and slider -fonts/ self-hosted Roboto Slab (Apache 2.0) +fonts/ self-hosted Inter (SIL Open Font License 1.1) images/ placeholder artwork, each in AVIF, WebP and the original _headers cache and security headers for Cloudflare Pages / Netlify tests/ development only, see tests/README.md @@ -169,8 +169,8 @@ Everything is a custom property at the top of `css/style.css`: --color-accent: #22eedd; --color-accent-text: #097b72; /* darkened, for small text on white */ --color-text: #111; - --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif; - --font-serif: "Roboto Slab", Georgia, "Times New Roman", serif; + --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; + --tracking-text: -0.011em; } ``` @@ -182,6 +182,21 @@ and is unreadable at body size. If you change one, change both. The dark palette is a second `:root` block under `@media (prefers-color-scheme: dark)`. To ship light-only, delete that block. +### The wordmark + +The header logo is text, not an image: + +```html +

+ Bernd +

+``` + +Put your own name in, and drop the `` if you do not want the ring. It is +set in the page typeface at `--tracking-wordmark` and sized in `cqw` against +the column it sits in, so it fills the header at every width without a +breakpoint. + ### The grid ```html @@ -203,6 +218,20 @@ The dark palette is a second `:root` block under Columns are full width below 768px unless a `.mobile-*` class says otherwise. +Every width is a percentage of the element's own container, so a grid nested +in a column counts against that column rather than the page. Mark the outer +column `.nested` to drop its padding, then number the columns inside it out of +twelve again: three equal cells inside a `.desktop-9` column are `.desktop-4`, +not `.desktop-3`. + +```html +
+
...
+
...
+
...
+
+``` + ### Sliders ```html @@ -220,7 +249,9 @@ Columns are full width below 768px unless a `.mobile-*` class says otherwise. ``` The track is a CSS scroll-snap container, so swipe, trackpad and arrow keys -work with no script at all. `js/typefolio.js` only keeps the buttons in step. +work with no script at all. `js/typefolio.js` keeps the buttons in step and +adds mouse drag, which is the one gesture a scroll container does not give +you for free. - Drop `data-slider-autoplay` to leave it still. - Add `.is-peeking` to let neighbouring slides show at the edges. @@ -235,6 +266,10 @@ Write the navigation once, as `