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,27 @@ 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+ 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+ } )
2244 }
2345
2446 private register < T extends CommentSpot > ( enhancer : CommentEnhancer < T > ) : void {
0 commit comments