<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Usability on dev notes</title>
    <link>https://juhanakristianblog.netlify.app/tags/usability/</link>
    <description>Recent content in Usability on dev notes</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 14 May 2020 09:33:01 +0000</lastBuildDate>
    <atom:link href="https://juhanakristianblog.netlify.app/tags/usability/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Dark mode using prefers-color-scheme rule and CSS variables</title>
      <link>https://juhanakristianblog.netlify.app/posts/dark-mode-using-prefers-color-scheme/</link>
      <pubDate>Thu, 14 May 2020 09:33:01 +0000</pubDate>
      <guid>https://juhanakristianblog.netlify.app/posts/dark-mode-using-prefers-color-scheme/</guid>
      <description>&lt;p&gt;In this article I&amp;rsquo;ll show you how to implement dark mode in your blog or site using &lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/CSS/--*&#34;&gt;CSS variables&lt;/a&gt; and how the toggle it automatically based on the users &lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme&#34;&gt;preferred color scheme&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;CSS variables are a new way to make CSS more maintainable by defining reusable variables which are defined in one place and can be referenced in multiple other places.&lt;/p&gt;&#xA;&lt;p&gt;For our dark mode example we&amp;rsquo;ll be changing the sites background and text colors when the user has set dark mode as preference at &lt;a href=&#34;https://support.apple.com/en-us/HT208976&#34;&gt;system level&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
