Skip to content
Bernard's Blog
Go back

预设颜色方案

Updated:

我为这个 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; /* 较低对比度的背景 */
  --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;
}

Share this post on:

Previous Post
AstroPaper 4.0
Next Post
AstroPaper 3.0