我为 astro-minimax 博客主题设计了一些预定义配色方案。你可以用这些配色方案替换原有的配色。
如果你不知道如何配置配色方案,请查看这篇博客文章。
Table of contents
Open Table of contents
浅色配色方案
浅色配色方案必须使用 CSS 选择器 :root 和 html[data-theme="light"] 来定义。
Lobster

:root,
html[data-theme="light"] {
--background: #f6eee1;
--foreground: #012c56;
--accent: #e14a39;
--muted: #efd8b0;
--border: #dc9891;
}cssLeaf Blue

:root,
html[data-theme="light"] {
--background: #f2f5ec;
--foreground: #353538;
--accent: #1158d1;
--muted: #bbc789;
--border: #7cadff;
}cssPinky light

:root,
html[data-theme="light"] {
--background: #fafcfc;
--foreground: #222e36;
--accent: #d3006a;
--muted: #f1bad4;
--border: #e3a9c6;
}css深色配色方案
深色配色方案必须定义为 html[data-theme="dark"]。
astro-minimax 1 原始深色主题

html[data-theme="dark"] {
--background: #2f3741;
--foreground: #e6e6e6;
--accent: #1ad9d9;
--muted: #596b81;
--border: #3b4655;
}cssDeep Oyster

html[data-theme="dark"] {
--background: #21233d;
--foreground: #f4f7f5;
--accent: #ff5256;
--muted: #4a4e86;
--border: #b12f32;
}cssPikky dark

html[data-theme="dark"] {
--background: #353640;
--foreground: #e9edf1;
--accent: #ff78c8;
--muted: #715566;
--border: #86436b;
}cssAstro dark (高对比度)
html[data-theme="dark"] {
--background: #212737;
--foreground: #eaedf3;
--accent: #ff6b01;
--muted: #8a3302;
--border: #ab4b08;
}cssAstro dark (astro-minimax 2 新默认深色主题)

html[data-theme="dark"] {
--background: #212737; /* lower contrast background */
--foreground: #eaedf3;
--accent: #ff6b01;
--muted: #8a3302;
--border: #ab4b08;
}cssAstro Deep Purple (astro-minimax 3 新深色主题)
html[data-theme="dark"] {
--background: #212737;
--foreground: #eaedf3;
--accent: #eb3fd3;
--muted: #7d4f7c;
--border: #642451;
}cssastro-minimax v4 特别版 (astro-minimax 4 新深色主题)
html[data-theme="dark"] {
--background: #000123;
--accent: #617bff;
--foreground: #eaedf3;
--muted: #0c0e4f;
--border: #303f8a;
}css
评论区
文明评论,共建和谐社区