<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>星觅海的博客</title>
    <link>https://mdui.xmhai.cn</link>
    <description>A pure static blog powered by MDUI v2</description>
    <language>zh-CN</language>
    <lastBuildDate>Mon, 20 Jul 2026 05:23:34 GMT</lastBuildDate>
    <atom:link href="https://mdui.xmhai.cn/rss.xml" rel="self" type="application/rss+xml"/>
    
      <item>
        <title>你好，世界</title>
        <link>https://mdui.xmhai.cn/#/post/hello-world</link>
        <guid isPermaLink="false">https://mdui.xmhai.cn/#/post/hello-world</guid>
        <pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate>
        <description>这是我的新博客的第一篇文章，使用 MDUI v2 和 Astro 构建。</description>
        <content:encoded><![CDATA[<img src="https://picsum.photos/seed/hello/800/400" alt="cover"/><br/><h1>你好，世界</h1>
<p>欢迎来到我的新博客！这是我使用 <strong>MDUI v2</strong> 和 <strong>Astro</strong> 构建的纯静态博客。</p>
<h2>为什么写博客？</h2>
<p>记录学习和生活，<strong>一起慢慢进步</strong>。</p>
<h2>技术栈</h2>
<ul>
<li><a href="https://astro.build">Astro</a> - 静态站点生成器</li>
<li><a href="https://www.mdui.org">MDUI v2</a> - Material Design 3 组件库</li>
<li><a href="https://waline.js.org">Waline</a> - 评论系统</li>
</ul>
<h2>代码示例</h2>
<pre><code class="language-javascript">// hello.js
function greet(name) {
  return `Hello, ${name}!`;
}

console.log(greet(&#39;World&#39;));
</code></pre>
<h2>视频示例</h2>
<p><p><a href="/posts/videos/demo.mp4">▶ 观看视频</a></p></p>
<p>希望你喜欢这个博客！</p>
]]></content:encoded>
        <category>生活</category>
        <category>随笔</category>
      </item>
    
    
      <item>
        <title>MDUI v2 主题系统详解</title>
        <link>https://mdui.xmhai.cn/#/post/mdui-theme</link>
        <guid isPermaLink="false">https://mdui.xmhai.cn/#/post/mdui-theme</guid>
        <pubDate>Wed, 15 Jul 2026 00:00:00 GMT</pubDate>
        <description>深入了解 MDUI v2 的主题系统，包括亮色模式、暗色模式和动态配色。</description>
        <content:encoded><![CDATA[<img src="https://picsum.photos/seed/mdui/800/400" alt="cover"/><br/><h1>MDUI v2 主题系统详解</h1>
<p>MDUI v2 提供了完善的主题系统，支持 Material Design 3 的动态配色。</p>
<h2>三种主题模式</h2>
<ul>
<li><strong>亮色模式</strong> (<code>mdui-theme-light</code>)</li>
<li><strong>暗色模式</strong> (<code>mdui-theme-dark</code>)</li>
<li><strong>跟随系统</strong> (<code>mdui-theme-auto</code>)</li>
</ul>
<h2>动态配色</h2>
<p>使用 <code>setColorScheme</code> 函数可以从任意颜色生成完整的配色方案：</p>
<pre><code class="language-javascript">import { setColorScheme } from &#39;mdui/functions/setColorScheme.js&#39;;

setColorScheme(&#39;#0061a4&#39;);
</code></pre>
<h2>设计令牌</h2>
<p>MDUI 使用 CSS 自定义属性实现设计令牌，可以全局修改样式：</p>
<pre><code class="language-css">:root {
  --mdui-shape-corner-large: 1.5rem;
}
</code></pre>
]]></content:encoded>
        <category>技术</category>
        <category>MDUI</category>
        <category>设计</category>
      </item>
    
  </channel>
</rss>