Skip to content

Commit

Permalink
fix(ui): fix the light theme contrast for editor. (#7438)
Browse files Browse the repository at this point in the history
Co-authored-by: Miloš Paunović <[email protected]>
  • Loading branch information
Piyush-r-bhaskar and MilosPaunovic authored Feb 19, 2025
1 parent 8c83290 commit dc1728e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ui/src/components/inputs/MonacoEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
}
});
monaco.editor.defineTheme("light", {
base: "vs",
inherit: true,
rules: [
{token: "type", foreground: "#8405FF"},
{token: "string.yaml", foreground: "#001233"},
{token: "comment", foreground: "#8d99ae", fontStyle: "italic"},
],
colors: {
"editor.lineHighlightBackground": "#fbfaff",
"editorLineNumber.foreground": "#444444",
"editor.selectionBackground": "#E8E5FF",
"editor.wordHighlightBackground": "#E8E5FF",
}
});
export default defineComponent({
data() {
return {
Expand Down Expand Up @@ -76,7 +92,7 @@
},
theme: {
type: String,
default: "vs"
default: "light"
},
language: {
type: String,
Expand Down

0 comments on commit dc1728e

Please sign in to comment.