-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple Editor Style Changes (#1519)
* tmp * Update keywords set * use xcode theme for light and add more coloring * fix lint * updated color for light theme * comments
- Loading branch information
Showing
9 changed files
with
211 additions
and
46 deletions.
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
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,23 @@ | ||
import { monokaiInit } from '@uiw/codemirror-theme-monokai'; | ||
import { tags as t } from '@lezer/highlight'; | ||
import { xcodeLightInit } from '@uiw/codemirror-theme-xcode'; | ||
|
||
export const CustomMonokaiDarkTheme = monokaiInit({ | ||
settings: {}, | ||
styles: [ | ||
{ tag: [t.name], color: 'var(--text-dark)' }, | ||
{ tag: [t.constant(t.name), t.standard(t.name)], color: '#FD971F' }, | ||
], | ||
}); | ||
|
||
export const CustomXcodeTheme = xcodeLightInit({ | ||
settings: { | ||
background: 'var(--bg-color)', | ||
gutterBackground: 'var(--bg-color)', | ||
}, | ||
styles: [ | ||
{ tag: [t.special(t.propertyName)], color: '#005cc5' }, | ||
{ tag: [t.constant(t.name), t.standard(t.name)], color: '#D23423' }, | ||
{ tag: [t.number], color: '#098658' }, | ||
], | ||
}); |
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
Oops, something went wrong.