mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-28 06:52:00 +00:00
支持柔和的暗色主题
This commit is contained in:
@@ -24,13 +24,13 @@ export default defineGithubTheme({
|
||||
default: "#f0f6fc",
|
||||
disabled: "#656c7699",
|
||||
done: "#ab7df8",
|
||||
muted: "#9198a1",
|
||||
neutral: "#9198a1",
|
||||
severe: "#db6d28",
|
||||
sponsors: "#db61a2",
|
||||
success: "#3fb950",
|
||||
black: "#010409",
|
||||
white: "#ffffff",
|
||||
muted: "#9198a1",
|
||||
},
|
||||
bgColor: {
|
||||
accent: { emphasis: "#1f6feb", muted: "#388bfd1a" },
|
||||
|
||||
@@ -24,13 +24,13 @@ export default defineGithubTheme({
|
||||
default: "#1f2328",
|
||||
disabled: "#818b98",
|
||||
done: "#8250df",
|
||||
muted: "#59636e",
|
||||
neutral: "#59636e",
|
||||
severe: "#bc4c00",
|
||||
sponsors: "#bf3989",
|
||||
success: "#1a7f37",
|
||||
black: "#1f2328",
|
||||
white: "#ffffff",
|
||||
muted: "#59636e",
|
||||
},
|
||||
bgColor: {
|
||||
accent: { emphasis: "#0969da", muted: "#ddf4ff" },
|
||||
|
||||
129
themes/soft-dark.css.ts
Normal file
129
themes/soft-dark.css.ts
Normal file
@@ -0,0 +1,129 @@
|
||||
import { defineGithubTheme } from "src/core/github";
|
||||
import { prettylights2Chroma } from "src/core/prettylights";
|
||||
|
||||
export default defineGithubTheme(
|
||||
{
|
||||
isDarkTheme: true,
|
||||
display: {
|
||||
brown: { fgColor: "#b69a6d" },
|
||||
cyan: { fgColor: "#07ace4" },
|
||||
indigo: { fgColor: "#9899ec" },
|
||||
lemon: { fgColor: "#ba9b12" },
|
||||
olive: { fgColor: "#a2a626" },
|
||||
teal: { fgColor: "#1cb0ab" },
|
||||
},
|
||||
diffBlob: {
|
||||
addtionNum: { bgColor: "#57ab5a4d" },
|
||||
addtionWord: { bgColor: "#46954a66" },
|
||||
deletionNum: { bgColor: "#e5534b4d" },
|
||||
deletionWord: { bgColor: "#e5534b66" },
|
||||
hunkNum: { bgColor: { rest: "#143d79" } },
|
||||
},
|
||||
fgColor: {
|
||||
accent: "#478be6",
|
||||
attention: "#c69026",
|
||||
danger: "#e5534b",
|
||||
default: "#d1d7e0",
|
||||
disabled: "#656c76",
|
||||
done: "#986ee2",
|
||||
muted: "#9198a1",
|
||||
neutral: "#9198a1",
|
||||
severe: "#cc6b2c",
|
||||
sponsors: "#c96198",
|
||||
success: "#57ab5a",
|
||||
black: "#010409",
|
||||
white: "#cdd9e5",
|
||||
},
|
||||
bgColor: {
|
||||
accent: { emphasis: "#316dca", muted: "#4184e41a" },
|
||||
attention: { muted: "#ae7c1426" },
|
||||
success: { emphasis: "#347d39", muted: "#46954a26" },
|
||||
danger: { muted: "#e5534b1a" },
|
||||
done: { emphasis: "#8256d0" },
|
||||
default: "#212830",
|
||||
inset: "#151b23",
|
||||
muted: "#262c36",
|
||||
neutral: { muted: "#656c7633" },
|
||||
},
|
||||
borderColor: {
|
||||
accent: { emphasis: "#316dca" },
|
||||
default: "#3d444d",
|
||||
attention: { emphasis: "#966600" },
|
||||
success: { emphasis: "#347d39" },
|
||||
done: { emphasis: "#8256d0" },
|
||||
muted: "#3d444db3",
|
||||
translucent: "#cdd9e526",
|
||||
},
|
||||
button: {
|
||||
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#3b8640" } },
|
||||
danger: { fgColor: { rest: "#ea5c53", hover: "#ffffff" }, bgColor: { hover: "#ad2e2c" } },
|
||||
},
|
||||
control: {
|
||||
bgColor: { active: "#3d444d", hover: "#2f3742", rest: "#2a313c" },
|
||||
transparent: { bgColor: { active: "#656c7633", hover: "#656c7626", selected: "#656c761a" } },
|
||||
},
|
||||
shadow: { floating: { small: "#01040966" } },
|
||||
overlay: { backdrop: { bgColor: "#262c3666" } },
|
||||
underlineNav: { borderColor: { active: "#ec775c" } },
|
||||
contribution: {
|
||||
default: {
|
||||
bgColor: { num0: "#2a313c", num1: "#1b4721", num2: "#2b6a30", num3: "#46954a", num4: "#6bc46d" },
|
||||
borderColor: { num0: "#0104090d" },
|
||||
},
|
||||
},
|
||||
},
|
||||
prettylights2Chroma({
|
||||
syntax: {
|
||||
brackethighlighter: {
|
||||
angle: "#9198a1",
|
||||
unmatched: "#e5534b",
|
||||
},
|
||||
carriage: {
|
||||
return: {
|
||||
bg: "#ad2e2c",
|
||||
text: "#f0f6fc",
|
||||
},
|
||||
},
|
||||
comment: "#9198a1",
|
||||
constant: "#6cb6ff",
|
||||
constantOtherReferenceLink: "#96d0ff",
|
||||
entity: "#dcbdfb",
|
||||
entityTag: "#8ddb8c",
|
||||
invalid: {
|
||||
illegal: {
|
||||
bg: "#922323",
|
||||
text: "#f0f6fc",
|
||||
},
|
||||
},
|
||||
keyword: "#f47067",
|
||||
markup: {
|
||||
bold: "#f0f6fc",
|
||||
changed: {
|
||||
bg: "#682d0f",
|
||||
text: "#ffddb0",
|
||||
},
|
||||
deleted: {
|
||||
bg: "#78191b",
|
||||
text: "#ffd8d3",
|
||||
},
|
||||
heading: "#316dca",
|
||||
ignored: {
|
||||
bg: "#255ab2",
|
||||
text: "#f0f6fc",
|
||||
},
|
||||
inserted: {
|
||||
bg: "#1b4721",
|
||||
text: "#b4f1b4",
|
||||
},
|
||||
italic: "#f0f6fc",
|
||||
list: "#eac55f",
|
||||
},
|
||||
metaDiffRange: "#dcbdfb",
|
||||
storageModifierImport: "#f0f6fc",
|
||||
string: "#96d0ff",
|
||||
stringRegexp: "#8ddb8c",
|
||||
sublimelinterGutterMark: "#3d444d",
|
||||
variable: "#f69d50",
|
||||
},
|
||||
})
|
||||
);
|
||||
Reference in New Issue
Block a user