<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Design on Leyline — Demo</title><link>https://jordinebot.github.io/hugo-leyline/tags/design/</link><description>Recent content in Design on Leyline — Demo</description><generator>Hugo 0.161.1</generator><language>en</language><atom:link href="https://jordinebot.github.io/hugo-leyline/tags/design/index.xml" rel="self" type="application/rss+xml"/><item><title>Welcome to Leyline</title><link>https://jordinebot.github.io/hugo-leyline/posts/welcome-to-leyline/</link><pubDate>Mon, 11 May 2026 10:00:00 +0200</pubDate><guid>https://jordinebot.github.io/hugo-leyline/posts/welcome-to-leyline/</guid><description>&lt;p&gt;Leyline is a minimal Hugo theme aimed at writing. It does a few things well:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sticky header with a logo, menu, and quick controls.&lt;/li&gt;
&lt;li&gt;A light/dark switcher that respects your OS preference until you choose otherwise.&lt;/li&gt;
&lt;li&gt;A quiet home page that surfaces your latest posts.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="why-leyline"&gt;Why &amp;ldquo;Leyline&amp;rdquo;?&lt;/h2&gt;
&lt;p&gt;The name nods to invisible threads of structure — the kind of design you don&amp;rsquo;t notice because everything is where you&amp;rsquo;d expect.&lt;/p&gt;
&lt;h2 id="whats-next"&gt;What&amp;rsquo;s next&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Wire up real search.&lt;/li&gt;
&lt;li&gt;Add a couple of utility shortcodes.&lt;/li&gt;
&lt;li&gt;Ship a darker, denser variant for code-heavy blogs.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>The mobile menu morph</title><link>https://jordinebot.github.io/hugo-leyline/posts/the-mobile-menu-morph/</link><pubDate>Mon, 04 May 2026 10:30:00 +0200</pubDate><guid>https://jordinebot.github.io/hugo-leyline/posts/the-mobile-menu-morph/</guid><description>&lt;p&gt;The first version of Leyline&amp;rsquo;s mobile menu had two icons stacked in the button: a hamburger and an X. CSS swapped them based on whether the menu was open. It worked, but it felt like flipping a switch.&lt;/p&gt;
&lt;p&gt;The second version is a single SVG with three &lt;code&gt;&amp;lt;line&amp;gt;&lt;/code&gt; elements. When the menu opens, the top line rotates 45° and translates down to the centre. The bottom mirrors it. The middle line fades out and shrinks. They meet in the middle and form an X.&lt;/p&gt;</description></item><item><title>Notes on typography</title><link>https://jordinebot.github.io/hugo-leyline/posts/page-bundle-example/</link><pubDate>Wed, 22 Apr 2026 18:00:00 +0200</pubDate><guid>https://jordinebot.github.io/hugo-leyline/posts/page-bundle-example/</guid><description>&lt;p&gt;A few short notes on the type choices in this theme.&lt;/p&gt;
&lt;h2 id="one-family-three-weights"&gt;One family, three weights&lt;/h2&gt;
&lt;p&gt;Leyline ships with Inter at weights 400, 500, and 700. That&amp;rsquo;s enough to support body text, UI accents, and headings without pulling in a second family.&lt;/p&gt;
&lt;h2 id="letter-spacing"&gt;Letter-spacing&lt;/h2&gt;
&lt;p&gt;Headings use a slight negative letter-spacing (&lt;code&gt;-0.015em&lt;/code&gt;) to tighten the look at large sizes. Below ~1.25rem the effect is barely noticeable; above it, copy feels less airy.&lt;/p&gt;
&lt;h2 id="reading-width"&gt;Reading width&lt;/h2&gt;
&lt;p&gt;Prose containers cap at 720px — about 70 characters per line at the default size. Wider feels like a wiki; narrower feels like a Twitter thread.&lt;/p&gt;</description></item><item><title>color-mix() is here. Use it.</title><link>https://jordinebot.github.io/hugo-leyline/posts/color-mix-is-here/</link><pubDate>Wed, 15 Apr 2026 09:00:00 +0200</pubDate><guid>https://jordinebot.github.io/hugo-leyline/posts/color-mix-is-here/</guid><description>&lt;p&gt;For years, &amp;ldquo;a lighter version of the accent colour&amp;rdquo; meant baking in a second hex value. Now there&amp;rsquo;s &lt;code&gt;color-mix()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Leyline&amp;rsquo;s tag chips use this pattern: on hover, the background fills with the accent at 10% over the page background, the border picks up 35% accent, and the text becomes the full accent. None of it requires defining &lt;code&gt;--accent-light&lt;/code&gt; or &lt;code&gt;--accent-soft&lt;/code&gt; — the theme just mixes on demand.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-css" data-lang="css"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;.&lt;span style="color:#a6e22e"&gt;tag&lt;/span&gt;:&lt;span style="color:#a6e22e"&gt;hover&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;background&lt;/span&gt;: &lt;span style="color:#a6e22e"&gt;color-mix&lt;/span&gt;(in srgb, &lt;span style="color:#a6e22e"&gt;var&lt;/span&gt;(&lt;span style="color:#f92672"&gt;--&lt;/span&gt;accent) &lt;span style="color:#ae81ff"&gt;10&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;%&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;var&lt;/span&gt;(&lt;span style="color:#f92672"&gt;--&lt;/span&gt;bg));
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;border-color&lt;/span&gt;: &lt;span style="color:#a6e22e"&gt;color-mix&lt;/span&gt;(in srgb, &lt;span style="color:#a6e22e"&gt;var&lt;/span&gt;(&lt;span style="color:#f92672"&gt;--&lt;/span&gt;accent) &lt;span style="color:#ae81ff"&gt;35&lt;/span&gt;&lt;span style="color:#66d9ef"&gt;%&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;var&lt;/span&gt;(&lt;span style="color:#f92672"&gt;--&lt;/span&gt;border));
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;color&lt;/span&gt;: &lt;span style="color:#a6e22e"&gt;var&lt;/span&gt;(&lt;span style="color:#f92672"&gt;--&lt;/span&gt;accent);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Any change to &lt;code&gt;--accent&lt;/code&gt; cascades correctly through every state. Set the accent to coral and the tag-chip hover becomes a coral wash. No find-and-replace; no extra variables to define.&lt;/p&gt;</description></item><item><title>Dark mode, quick take</title><link>https://jordinebot.github.io/hugo-leyline/posts/dark-mode-quick-take/</link><pubDate>Mon, 30 Mar 2026 09:30:00 +0200</pubDate><guid>https://jordinebot.github.io/hugo-leyline/posts/dark-mode-quick-take/</guid><description>&lt;p&gt;The theme switcher in Leyline follows a simple rule: on the first visit, match the user&amp;rsquo;s OS preference. Once they tap the toggle, lock to their choice via &lt;code&gt;localStorage&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This avoids two common annoyances: a site that ignores &lt;code&gt;prefers-color-scheme&lt;/code&gt;, and a site that resets to its default every time you come back.&lt;/p&gt;</description></item></channel></rss>