# demo-01-variables Sass 变量与 CSS 自定义属性。 ## 运行 直接打开 `index.html`。 ## 观察 - Sass 变量在编译后消失,运行时改不了 - 自定义属性仍在 DOM 上,可以局部覆盖 - `data-theme="alt"` 只影响自己的子树 - 主题切换不需要重新编译