<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Css on Leyline — Demo</title><link>https://jordinebot.github.io/hugo-leyline/tags/css/</link><description>Recent content in Css on Leyline — Demo</description><generator>Hugo 0.161.1</generator><language>en</language><atom:link href="https://jordinebot.github.io/hugo-leyline/tags/css/index.xml" rel="self" type="application/rss+xml"/><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>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></channel></rss>