Skip to content
Donghai's Blog
Go back

预定义的配色方案(译)

原文章:Predefined color schemes

AstroPaper博客主题的作者设计了一些预定义的配色方案,你可以用这些配色方案替换原有的配色方案

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

Table of contents

Open Table of contents

明亮配色方案

明亮配色方案需要使用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 default dark theme

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黑色(高对比度)

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 Special (New dark theme in 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博客文章中的动态OG图片生成(译)
Next Post
自定义AstroPaper主题配色方案(译)
BlogsClub Meo Forever Blog