Skip to content
返回

预定义配色方案

更新于:
Edit page

我为这个 AstroPaper 博客主题制作了一些预定义的配色方案。你可以用这些配色方案替换原来的。

如果你不知道如何配置配色方案,请查看这篇博客文章

目录

明亮配色方案

明亮配色方案必须使用 CSS 选择器 :roothtml[data-theme="light"] 来定义。

龙虾色

lobster-color-scheme

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

叶蓝色

leaf-blue-color-scheme

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

粉色明亮

pinky-color-scheme

:root,
html[data-theme="light"] {
  --background: #fafcfc;
  --foreground: #222e36;
  --accent: #d3006a;
  --muted: #f1bad4;
  --border: #e3a9c6;
}

暗黑配色方案

暗黑配色方案必须定义为 html[data-theme="dark"]

AstroPaper 1 原始暗黑主题

AstroPaper 1 default dark theme

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

深海牡蛎

deep-oyster-color-scheme

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

粉色暗黑

pinky-dark-color-scheme

html[data-theme="dark"] {
  --background: #353640;
  --foreground: #e9edf1;
  --accent: #ff78c8;
  --muted: #715566;
  --border: #86436b;
}

Astro 暗黑(高对比度)

astro-dark-color-scheme

html[data-theme="dark"] {
  --background: #212737;
  --foreground: #eaedf3;
  --accent: #ff6b01;
  --muted: #8a3302;
  --border: #ab4b08;
}

Astro 暗黑(AstroPaper 2 中的新默认暗黑主题)

new dark color scheme - low contrast

html[data-theme="dark"] {
  --background: #212737; /* lower contrast background */
  --foreground: #eaedf3;
  --accent: #ff6b01;
  --muted: #8a3302;
  --border: #ab4b08;
}

Astro 深紫色(AstroPaper 3 中的新暗黑主题)

AstroPaper v3 new theme

html[data-theme="dark"] {
  --background: #212737;
  --foreground: #eaedf3;
  --accent: #eb3fd3;
  --muted: #7d4f7c;
  --border: #642451;
}

AstroPaper v4 特别版(AstroPaper 4 中的新暗黑主题)

AstroPaper v4 new theme

html[data-theme="dark"] {
  --background: #000123;
  --accent: #617bff;
  --foreground: #eaedf3;
  --muted: #0c0e4f;
  --border: #303f8a;
}

Edit page
分享到别处:

上一篇文章
如何使用 Git 钩子设置创建和修改日期
下一篇文章
如何更新 AstroPaper 的依赖项