Skip to content

Commit

Permalink
adjust code filed code highlight schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Dec 5, 2024
1 parent fc83130 commit 31d043f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/codefield/codeMirrorTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ const defaultSettings = {

const defaultStyles = [
{ tag: t.keyword, color: COLORS.purple300 },
{ tag: [t.name, t.deleted, t.character, t.macroName], color: COLORS.gray500 },
{ tag: [t.deleted, t.character], color: COLORS.gray500 },
{ tag: [t.name, t.macroName], color: COLORS.gray50 },
{ tag: [t.propertyName], color: COLORS.yellow300 },
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: COLORS.green300 },
{ tag: [t.function(t.variableName), t.labelName], color: COLORS.yellow300 },
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: COLORS.green300 },
{ tag: [t.definition(t.name), t.separator], color: COLORS.gray500 },
{ tag: [t.className], color: COLORS.purple300 },
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: COLORS.blue300 },
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: COLORS.blue400 },
{ tag: [t.typeName], color: COLORS.green300 },
{ tag: [t.operator, t.operatorKeyword], color: COLORS.purple300 },
{ tag: [t.operator, t.operatorKeyword], color: COLORS.blue200 },
{ tag: [t.url, t.escape, t.regexp, t.link], color: COLORS.green300 },
{ tag: [t.meta, t.comment], color: COLORS.gray500 },
{ tag: t.strong, fontWeight: "bold" },
{ tag: t.emphasis, fontStyle: "italic" },
{ tag: t.link, textDecoration: "underline" },
{ tag: t.heading, fontWeight: "bold", color: COLORS.purple300 },
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: COLORS.blue300 },
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: COLORS.blue400 },
{ tag: t.invalid, color: COLORS.red300 },
{ tag: t.strikethrough, textDecoration: "line-through" },
] satisfies CreateThemeOptions["styles"];
Expand Down

0 comments on commit 31d043f

Please sign in to comment.