fix: Improve code highlighting in dark mode

closes #5021
This commit is contained in:
Tom Moor
2023-07-15 16:54:32 -04:00
parent 6e9e1c15a5
commit b1230d0c81
3 changed files with 114 additions and 98 deletions

View File

@@ -74,6 +74,7 @@ const buildBaseTheme = (input: Partial<Colors>) => {
codeNumber: "#d73a49",
codeProperty: "#c08b30",
codeTag: "#3d8fd1",
codeClassName: "#3d8fd1",
codeString: "#032f62",
codeSelector: "#6679cc",
codeAttr: "#c76b29",
@@ -226,7 +227,13 @@ export const buildDarkTheme = (input: Partial<Colors>): DefaultTheme => {
code: colors.almostWhite,
codeBackground: colors.black75,
codeBorder: colors.white10,
codeString: "#3d8fd1",
codeTag: "#b5cea8",
codeString: "#ce9178",
codeKeyword: "#569CD6",
codeFunction: "#dcdcaa",
codeClassName: "#4ec9b0",
codeImportant: "#569CD6",
codeAttr: "#9cdcfe",
embedBorder: colors.black50,
horizontalRule: lighten(0.1, colors.almostBlack),
noticeInfoText: colors.white,