Skip to content
Go back

预定义配色方案

Updated:
Edit page

我为这个 AstroPaper 博客主题精心设计了一些预定义的配色方案。您可以用这些配色方案替换原来的配色方案。

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

目录

浅色配色方案

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

Lobster

lobster-color-scheme

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

Leaf Blue

leaf-blue-color-scheme

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

Pinky light

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 默认深色主题

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

Deep Oyster

deep-oyster-color-scheme

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

Pikky dark

pinky-dark-color-scheme

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

Astro dark(高对比度)

astro-dark-color-scheme

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

Astro dark(AstroPaper 2 中的新默认深色主题)

新深色配色方案 - 低对比度

html[data-theme="dark"] {
  --background: #212737; /* 较低对比度背景 */
  --foreground: #eaedf3;
  --accent: #ff6b01;
  --muted: #8a3302;
  --border: #ab4b08;
}

Astro Deep Purple(AstroPaper 3 中的新深色主题)

AstroPaper v3 新主题

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

AstroPaper v4 Special(AstroPaper 4 中的新深色主题)

AstroPaper v4 新主题

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

Edit page
Share this post on:

Previous Post
AstroPaper 4.0
Next Post
AstroPaper 3.0