|
| 1 | +import type { editor } from 'monaco-editor'; |
| 2 | + |
| 3 | +export const VITESSE_DARK_THEME = 'vitesse-dark'; |
| 4 | +export const VITESSE_LIGHT_THEME = 'vitesse-light'; |
| 5 | + |
| 6 | +export const VITESSE_DARK_MONACO_THEME: editor.IStandaloneThemeData = { |
| 7 | + base: 'vs-dark', |
| 8 | + inherit: true, |
| 9 | + colors: { |
| 10 | + 'editor.background': '#121212', |
| 11 | + 'editor.foreground': '#dbd7caee', |
| 12 | + 'editor.lineHighlightBackground': '#181818', |
| 13 | + 'editor.selectionBackground': '#eeeeee18', |
| 14 | + 'editor.selectionHighlightBackground': '#eeeeee10', |
| 15 | + 'editor.inactiveSelectionBackground': '#eeeeee10', |
| 16 | + 'editor.findMatchBackground': '#e6cc7722', |
| 17 | + 'editor.findMatchHighlightBackground': '#e6cc7744', |
| 18 | + 'editor.wordHighlightBackground': '#1c6b4805', |
| 19 | + 'editor.wordHighlightStrongBackground': '#1c6b4810', |
| 20 | + 'editorCursor.foreground': '#dbd7caee', |
| 21 | + 'editorLineNumber.foreground': '#dedcd550', |
| 22 | + 'editorLineNumber.activeForeground': '#bfbaaa', |
| 23 | + 'editorGutter.background': '#121212', |
| 24 | + 'editorIndentGuide.background': '#ffffff15', |
| 25 | + 'editorIndentGuide.activeBackground': '#ffffff30', |
| 26 | + 'editorWhitespace.foreground': '#ffffff15', |
| 27 | + 'editorError.foreground': '#cb7676', |
| 28 | + 'editorWarning.foreground': '#d4976c', |
| 29 | + 'editorInfo.foreground': '#6394bf', |
| 30 | + 'editorHint.foreground': '#4d9375', |
| 31 | + 'editorWidget.background': '#121212', |
| 32 | + 'editorWidget.foreground': '#dbd7caee', |
| 33 | + 'editorHoverWidget.background': '#181818', |
| 34 | + 'editorHoverWidget.foreground': '#dbd7caee', |
| 35 | + 'editorHoverWidget.border': '#191919', |
| 36 | + 'editorSuggestWidget.background': '#121212', |
| 37 | + 'editorSuggestWidget.foreground': '#dbd7caee', |
| 38 | + 'editorSuggestWidget.selectedBackground': '#181818', |
| 39 | + 'editorSuggestWidget.highlightForeground': '#4d9375', |
| 40 | + 'editorBracketMatch.background': '#4d937520', |
| 41 | + 'editorBracketHighlight.foreground1': '#5eaab5', |
| 42 | + 'editorBracketHighlight.foreground2': '#4d9375', |
| 43 | + 'editorBracketHighlight.foreground3': '#d4976c', |
| 44 | + 'editorBracketHighlight.foreground4': '#d9739f', |
| 45 | + 'editorBracketHighlight.foreground5': '#e6cc77', |
| 46 | + 'editorBracketHighlight.foreground6': '#6394bf', |
| 47 | + 'scrollbar.shadow': '#00000000', |
| 48 | + 'scrollbarSlider.background': '#dedcd510', |
| 49 | + 'scrollbarSlider.hoverBackground': '#dedcd550', |
| 50 | + 'scrollbarSlider.activeBackground': '#dedcd550', |
| 51 | + }, |
| 52 | + rules: [ |
| 53 | + { token: '', foreground: 'dbd7ca' }, |
| 54 | + { token: 'comment', foreground: '758575', fontStyle: 'italic' }, |
| 55 | + { token: 'comment.block.json', foreground: '758575', fontStyle: 'italic' }, |
| 56 | + { token: 'comment.line.json', foreground: '758575', fontStyle: 'italic' }, |
| 57 | + { token: 'delimiter.bracket.json', foreground: '666666' }, |
| 58 | + { token: 'delimiter.array.json', foreground: '666666' }, |
| 59 | + { token: 'delimiter.colon.json', foreground: '666666' }, |
| 60 | + { token: 'delimiter.comma.json', foreground: '666666' }, |
| 61 | + { token: 'keyword.json', foreground: '4d9375' }, |
| 62 | + { token: 'number.json', foreground: '4C9A91' }, |
| 63 | + { token: 'string.key.json', foreground: 'b8a965' }, |
| 64 | + { token: 'string.value.json', foreground: 'c98a7d' }, |
| 65 | + { token: 'string', foreground: 'c98a7d' }, |
| 66 | + { token: 'number', foreground: '4C9A91' }, |
| 67 | + { token: 'keyword', foreground: '4d9375' }, |
| 68 | + ], |
| 69 | +}; |
| 70 | + |
| 71 | +export const VITESSE_LIGHT_MONACO_THEME: editor.IStandaloneThemeData = { |
| 72 | + base: 'vs', |
| 73 | + inherit: true, |
| 74 | + colors: { |
| 75 | + 'editor.background': '#ffffff', |
| 76 | + 'editor.foreground': '#393a34', |
| 77 | + 'editor.lineHighlightBackground': '#f7f7f7', |
| 78 | + 'editor.selectionBackground': '#22222218', |
| 79 | + 'editor.selectionHighlightBackground': '#22222210', |
| 80 | + 'editor.inactiveSelectionBackground': '#22222210', |
| 81 | + 'editor.findMatchBackground': '#e6cc7744', |
| 82 | + 'editor.findMatchHighlightBackground': '#e6cc7766', |
| 83 | + 'editor.wordHighlightBackground': '#1c6b4805', |
| 84 | + 'editor.wordHighlightStrongBackground': '#1c6b4810', |
| 85 | + 'editorCursor.foreground': '#393a34', |
| 86 | + 'editorLineNumber.foreground': '#393a3450', |
| 87 | + 'editorLineNumber.activeForeground': '#4e4f47', |
| 88 | + 'editorGutter.background': '#ffffff', |
| 89 | + 'editorIndentGuide.background': '#00000015', |
| 90 | + 'editorIndentGuide.activeBackground': '#00000030', |
| 91 | + 'editorWhitespace.foreground': '#00000015', |
| 92 | + 'editorError.foreground': '#ab5959', |
| 93 | + 'editorWarning.foreground': '#a65e2b', |
| 94 | + 'editorInfo.foreground': '#296aa3', |
| 95 | + 'editorHint.foreground': '#1e754f', |
| 96 | + 'editorWidget.background': '#ffffff', |
| 97 | + 'editorWidget.foreground': '#393a34', |
| 98 | + 'editorHoverWidget.background': '#f7f7f7', |
| 99 | + 'editorHoverWidget.foreground': '#393a34', |
| 100 | + 'editorHoverWidget.border': '#f0f0f0', |
| 101 | + 'editorSuggestWidget.background': '#ffffff', |
| 102 | + 'editorSuggestWidget.foreground': '#393a34', |
| 103 | + 'editorSuggestWidget.selectedBackground': '#f7f7f7', |
| 104 | + 'editorSuggestWidget.highlightForeground': '#1c6b48', |
| 105 | + 'editorBracketMatch.background': '#1c6b4820', |
| 106 | + 'editorBracketHighlight.foreground1': '#2993a3', |
| 107 | + 'editorBracketHighlight.foreground2': '#1e754f', |
| 108 | + 'editorBracketHighlight.foreground3': '#a65e2b', |
| 109 | + 'editorBracketHighlight.foreground4': '#a13865', |
| 110 | + 'editorBracketHighlight.foreground5': '#bda437', |
| 111 | + 'editorBracketHighlight.foreground6': '#296aa3', |
| 112 | + 'scrollbar.shadow': '#6a737d33', |
| 113 | + 'scrollbarSlider.background': '#393a3410', |
| 114 | + 'scrollbarSlider.hoverBackground': '#393a3450', |
| 115 | + 'scrollbarSlider.activeBackground': '#393a3450', |
| 116 | + }, |
| 117 | + rules: [ |
| 118 | + { token: '', foreground: '393a34' }, |
| 119 | + { token: 'comment', foreground: 'a0ada0', fontStyle: 'italic' }, |
| 120 | + { token: 'comment.block.json', foreground: 'a0ada0', fontStyle: 'italic' }, |
| 121 | + { token: 'comment.line.json', foreground: 'a0ada0', fontStyle: 'italic' }, |
| 122 | + { token: 'delimiter.bracket.json', foreground: '999999' }, |
| 123 | + { token: 'delimiter.array.json', foreground: '999999' }, |
| 124 | + { token: 'delimiter.colon.json', foreground: '999999' }, |
| 125 | + { token: 'delimiter.comma.json', foreground: '999999' }, |
| 126 | + { token: 'keyword.json', foreground: '1e754f' }, |
| 127 | + { token: 'number.json', foreground: '2f798a' }, |
| 128 | + { token: 'string.key.json', foreground: '998418' }, |
| 129 | + { token: 'string.value.json', foreground: 'b56959' }, |
| 130 | + { token: 'string', foreground: 'b56959' }, |
| 131 | + { token: 'number', foreground: '2f798a' }, |
| 132 | + { token: 'keyword', foreground: '1e754f' }, |
| 133 | + ], |
| 134 | +}; |
| 135 | + |
1 | 136 | export const DEFAULT_JSON = `{ |
2 | 137 | "name": "JSON Formatter", |
3 | 138 | "version": "${__BUILD_VERSION__}", |
|
0 commit comments