syntax.garden
M↓dark-mode.md
// FIELD_NOTE_20260618

深色模式不是颜色反转

从亮度层级、语义色到代码高亮,构建真正舒适的双主题体验。

Reading
16
Connections
Related
设计令牌不是颜色字典间距里的数学与呼吸容器查询改变了组件的思考方式

黑色也有层级

把白色背景换成纯黑,只会得到刺眼的对比。舒适的深色界面依赖多层接近黑色的表面,以及更克制的文本亮度。

主题切换需要保持语义,而不是保持数值。surface-raised 在浅色中更亮,在深色中也可能更亮;text-muted 的目标始终是降低强调。

动画切换时只过渡颜色与阴影,避免让首次渲染出现闪烁。最好的主题切换不是炫技,而是让用户在不同光线里继续专注。

Attachments

0

Attachments are stored in the cloud and support large-file downloads; locked items require the author-provided password to download.

Discussion

0

Verified-email visitors only

Loading discussion…
guest · verification required
Sharing images/files: upload to the “Yuèpǐn Mùzǐ” drive first, then paste the generated ?q= pickup link here — it renders as a pickup card.
0 / 4000