<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>CSS on Simon&#39;s Blog</title>
    <link>https://blog.simon-hu.org/categories/css/</link>
    <description>Recent content in CSS on Simon&#39;s Blog</description>
    <image>
      <title>Simon&#39;s Blog</title>
      <url>https://blog.simon-hu.org/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.simon-hu.org/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.163.3</generator>
    <language>en</language>
    <lastBuildDate>Mon, 04 Aug 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.simon-hu.org/categories/css/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[Note] CSS Color Options: Why is OKLCH better ?</title>
      <link>https://blog.simon-hu.org/posts/2025/08---auguest/2025-08-04-css-color-options/</link>
      <pubDate>Mon, 04 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.simon-hu.org/posts/2025/08---auguest/2025-08-04-css-color-options/</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;TLDR;&lt;/h2&gt;
&lt;p&gt;Use OKLCH over HSL/HSV/RGB/HEX because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Readable and Predictable&lt;/strong&gt;: OKLCH is human-readable and offers predictable results for color transformations, unlike RGB or hex.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Perceptual Lightness&lt;/strong&gt;: OKLCH provides consistent perceived lightness, unlike HSL, which improves color modifications and accessibility.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Palette Generation&lt;/strong&gt;: Designers can define formulas to automatically generate color palettes, simplifying design systems.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&#34;why-is-oklch-better-than-other-colours&#34;&gt;Why is OKLCH better than other colours?&lt;/h2&gt;
&lt;h3 id=&#34;readable-and-predictable-oklch-vs-hex-rgb-oklab&#34;&gt;Readable and Predictable (OKLCH vs HEX, RGB, OKLAB)&lt;/h3&gt;
&lt;p&gt;Compared to other colour options such as RGB and Hexadecimal, OKLCH, HSL (and OKLAB, HSV) is much more readable and predictable by the human brain if you are familiar with the cylindrical colour model, hence making it convenient for colour modification.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emmet Syntax and Wrap with Abbreviation</title>
      <link>https://blog.simon-hu.org/posts/2025/07---july/2025-07-28-emmet-syntax/</link>
      <pubDate>Mon, 28 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.simon-hu.org/posts/2025/07---july/2025-07-28-emmet-syntax/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Emmet is a common built-in software for text editors that dramatically speeds up coding in HTML (or XML, XSLT, and other structured formats) by using CSS-like abbreviations and shortcuts that expand into full code blocks. It essentially allows developers to write less code while still achieving the same output.&lt;/p&gt;
&lt;p&gt;&amp;ndash; Wikipedia &lt;a href=&#34;https://en.wikipedia.org/wiki/Emmet_(software)&#34;&gt;Emmet&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;expand-abbreciation&#34;&gt;Expand Abbreciation&lt;/h2&gt;
&lt;p&gt;You may use emmet to write very short abbreviated snippet that will expand to a proper HTML element(s), listed below are some of the very common use cases:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
