Skip to content

Commit

Permalink
Syntax highlighter theme
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhigyaKrishna committed May 30, 2024
1 parent d1e0667 commit 176dfc1
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 59 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ kramdown:
input: GFM
syntax_highlighter: rouge
syntax_highlighter_opts:
css_class: 'highlight'
disable: true

paginate: 8
Expand Down
60 changes: 60 additions & 0 deletions _sass/1-tools/_syntax-highlighting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,63 @@
// .vi { color: #008080 } // Name.Variable.Instance
// .il { color: #099 } // Literal.Number.Integer.Long
}

pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}

code.hljs {
padding: 3px 5px
}

.hljs {
color: #abb2bf;
background: #282c34
}

.hljs-comment, .hljs-quote {
color: #5c6370;
font-style: italic
}

.hljs-doctag, .hljs-formula, .hljs-keyword {
color: #c678dd
}

.hljs-deletion, .hljs-name, .hljs-section, .hljs-selector-tag, .hljs-subst {
color: #e06c75
}

.hljs-literal {
color: #56b6c2
}

.hljs-addition, .hljs-attribute, .hljs-meta .hljs-string, .hljs-regexp, .hljs-string {
color: #98c379
}

.hljs-attr, .hljs-number, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-pseudo, .hljs-template-variable, .hljs-type, .hljs-variable {
color: #d19a66
}

.hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-symbol, .hljs-title {
color: #61aeee
}

.hljs-built_in, .hljs-class .hljs-title, .hljs-title.class_ {
color: #e6c07b
}

.hljs-emphasis {
font-style: italic
}

.hljs-strong {
font-weight: 700
}

.hljs-link {
text-decoration: underline
}
59 changes: 0 additions & 59 deletions _sass/1-tools/atom-one-dark.min.scss

This file was deleted.

0 comments on commit 176dfc1

Please sign in to comment.