-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vikhyath A Maiya
committed
Oct 12, 2022
1 parent
e4e6169
commit 6c08c04
Showing
4 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {createTheme} from '../../core'; | ||
import {vitesseDark, palette} from './vitesseDark'; | ||
|
||
export const vitesseDarkTheme = createTheme({ | ||
id: 'vitesseDark', | ||
editorTheme: vitesseDark, | ||
properties: { | ||
darkMode: true, | ||
label: 'Vitesse Dark', | ||
previewBackground: `#0e0e0e`, | ||
terminal: { | ||
main: palette.foreground, | ||
text: palette.string, | ||
}, | ||
}, | ||
} as const); |
57 changes: 57 additions & 0 deletions
57
packages/highlight/src/lib/themes/vitesseDark/vitesseDark.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import {defineEditorTheme} from '../../core'; | ||
|
||
export const palette = { | ||
foreground: '#121212', | ||
comment: '#758575', | ||
string: '#d48372', | ||
literal: '#429988', | ||
keyword: '#4d9375', | ||
boolean: '#1c6b48', | ||
number: '#6394bf', | ||
variable: '#c2b36e', | ||
function: '#a1b567', | ||
deleted: '#a14f55', | ||
class: '#54b1bf', | ||
builtin: '#e0a569', | ||
property: '#dd8e6e', | ||
namespace: '#db889a', | ||
punctuation: '#858585', | ||
decorator: '#bd8f8f', | ||
regex: '#ab5e3f', | ||
lineNumber: '#888888', | ||
selectionBackground: '#444444', | ||
}; | ||
|
||
export const vitesseDark = [ | ||
defineEditorTheme({ | ||
highlight: { | ||
punctuation: palette.punctuation, | ||
delimiters: palette.punctuation, | ||
numbers: palette.number, | ||
strings: palette.string, | ||
boolean: palette.boolean, | ||
regexp: palette.regex, | ||
variableName: palette.property, | ||
keywords: palette.keyword, | ||
base: palette.string, | ||
tag: palette.punctuation, | ||
comments: palette.comment, | ||
propertyName: palette.property, | ||
className: palette.class, | ||
function: palette.function, | ||
}, | ||
selection: {}, | ||
lineNumbers: { | ||
color: palette.lineNumber, | ||
}, | ||
cursor: { | ||
color: palette.punctuation, | ||
}, | ||
autocomplete: { | ||
background: palette.string, | ||
border: palette.punctuation, | ||
selectedBackground: palette.selectionBackground, | ||
}, | ||
darkMode: true, | ||
}), | ||
]; |