<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DarkMode | 김미소의 포트폴리오</title><link>https://misosos.github.io/en/tags/darkmode/</link><atom:link href="https://misosos.github.io/en/tags/darkmode/index.xml" rel="self" type="application/rss+xml"/><description>DarkMode</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 02 Oct 2025 00:00:00 +0000</lastBuildDate><image><url>https://misosos.github.io/media/sharing.png</url><title>DarkMode</title><link>https://misosos.github.io/en/tags/darkmode/</link></image><item><title>Dark Mode Toggle</title><link>https://misosos.github.io/en/playground/ui-components/darkmode-toggle/</link><pubDate>Thu, 02 Oct 2025 00:00:00 +0000</pubDate><guid>https://misosos.github.io/en/playground/ui-components/darkmode-toggle/</guid><description>&lt;p&gt;I wanted to understand how the now-essential dark mode feature on modern websites actually works, so I implemented it myself from scratch.&lt;/p&gt;
&lt;p&gt;I started by using React’s useState to manage the &amp;rsquo;light&amp;rsquo; and &amp;lsquo;dark&amp;rsquo; themes and explored how TailwindCSS’s &lt;code&gt;dark:&lt;/code&gt; class operates. Beyond just toggling the state, I also experimented with persisting the user’s theme preference using localStorage so that it remains even after a page refresh.&lt;/p&gt;
&lt;p&gt;After implementing the functionality, I focused on enhancing the visual polish. I applied &lt;code&gt;transition-colors&lt;/code&gt; for smooth background transitions when switching themes and used Framer Motion to make the toggle switch move in a more playful and engaging way.&lt;/p&gt;
&lt;p&gt;Through this seemingly simple toggle, I was able to explore various aspects of state management, data persistence, and visual details that enhance the overall user experience.&lt;/p&gt;</description></item></channel></rss>