1
1
import type { OverTypeInstance } from 'overtype'
2
+ import OverType from 'overtype'
2
3
import type { CommentEnhancer , CommentSpot } from './enhancer'
3
4
import { GitHubIssueAddCommentEnhancer } from './enhancers/github/githubIssueAddComment'
4
5
import { GitHubPRAddCommentEnhancer } from './enhancers/github/githubPRAddComment'
@@ -19,6 +20,27 @@ export class EnhancerRegistry {
19
20
// Register all available handlers
20
21
this . register ( new GitHubIssueAddCommentEnhancer ( ) )
21
22
this . register ( new GitHubPRAddCommentEnhancer ( ) )
23
+ const textColor = 'rgb(31, 35, 40)'
24
+ const headingColor = 'rgb(174, 52, 151)'
25
+ OverType . setTheme ( {
26
+ colors : {
27
+ blockquote : 'rgb(89, 99, 110)' ,
28
+ code : '#59636e' ,
29
+ codeBg : '#f6f8fa' ,
30
+ cursor : '#f95738' ,
31
+ em : 'rgb(126, 123, 255)' ,
32
+ h1 : headingColor ,
33
+ h2 : headingColor ,
34
+ h3 : headingColor ,
35
+ hr : '#5a7a9b' ,
36
+ link : 'rgb(9, 105, 218)' ,
37
+ selection : 'rgba(244, 211, 94, 0.4)' ,
38
+ strong : 'rgb(45, 1, 142)' ,
39
+ syntaxMarker : textColor ,
40
+ text : textColor ,
41
+ } ,
42
+ name : 'custom-github' ,
43
+ } )
22
44
}
23
45
24
46
private register < T extends CommentSpot > ( enhancer : CommentEnhancer < T > ) : void {
0 commit comments