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