hexo-theme-solitude 1.12.0 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/.github/logo.svg +18 -42
  2. package/README.md +7 -16
  3. package/README_en-US.md +7 -17
  4. package/README_zh-Hant.md +13 -23
  5. package/_config.yml +27 -23
  6. package/languages/default.yml +14 -0
  7. package/languages/en.yml +14 -1
  8. package/languages/zh-CN.yml +13 -0
  9. package/languages/zh-TW.yml +13 -0
  10. package/layout/includes/body/mode.pug +3 -3
  11. package/layout/includes/inject/body.pug +2 -0
  12. package/layout/includes/inject/head.pug +2 -1
  13. package/layout/includes/widgets/home/carousel.pug +18 -1
  14. package/layout/includes/widgets/home/postList.pug +4 -3
  15. package/layout/includes/widgets/page/about/other.pug +71 -70
  16. package/layout/includes/widgets/post/copyright.pug +46 -0
  17. package/layout/includes/widgets/post/postMeta.pug +1 -1
  18. package/layout/includes/widgets/post/postNav.pug +4 -4
  19. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -0
  20. package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
  21. package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
  22. package/layout/post.pug +0 -22
  23. package/package.json +1 -1
  24. package/plugins.yml +6 -1
  25. package/scripts/event/merge_config.js +1 -0
  26. package/scripts/filter/post_image.js +13 -0
  27. package/scripts/helper/page.js +6 -2
  28. package/scripts/tags/btns.js +35 -0
  29. package/source/css/_global/index.styl +1 -0
  30. package/source/css/_highlight/color.styl +69 -131
  31. package/source/css/_highlight/highlight/diff.styl +34 -62
  32. package/source/css/_highlight/prismjs/diff.styl +60 -59
  33. package/source/css/_layout/article-container.styl +1 -5
  34. package/source/css/_layout/recent-post.styl +19 -7
  35. package/source/css/_page/_home/carousel.styl +2 -0
  36. package/source/css/_page/music.styl +8 -1
  37. package/source/css/_page/other.styl +1 -0
  38. package/source/css/_post/commentBarrage.styl +2 -11
  39. package/source/css/_post/copyright.styl +129 -2
  40. package/source/css/_post/meta.styl +1 -31
  41. package/source/css/_post/pagination.styl +13 -0
  42. package/source/css/_post/postAI.styl +2 -3
  43. package/source/css/_post/relatedPost.styl +115 -129
  44. package/source/css/_post/tools.styl +166 -274
  45. package/source/css/_tags/btns.styl +212 -0
  46. package/source/css/third_party/snackbar.min.css +1 -1
  47. package/source/css/third_party/tianli_talk.styl +16 -1
  48. package/source/js/main.js +97 -277
  49. package/source/js/music.js +1 -0
  50. package/source/js/right_menu.js +163 -136
@@ -1,82 +1,83 @@
1
1
  - var tj = site.data.about.tj
2
2
  - var oneself = site.data.about.oneself
3
3
 
4
- .author-content
5
- if tj
6
- .about-statistic.author-content-item(style=`background: url(${tj.img});`)
7
- .card-content
8
- .author-content-item-tips=_p('about.other.tj.tip')
9
- span.author-content-item-title=_p('about.other.tj.title')
10
- #statistic
11
- .post-tips
12
- = _p('about.other.tj.post_tip')
13
- case tj.provider
14
- when '51la'
15
- a(href="https://v6.51.la/") 51la网站统计
16
- when 'baidu'
17
- a(href="https://tongji.baidu.com/") 百度统计
18
- if tj.button
19
- .banner-button-group
20
- a.banner-button(href=url_for(tj.button_link))
21
- i.solitude.st-right-btn-fill
22
- span.banner-button-text= tj.button_text
4
+ if tj || oneself
5
+ .author-content
6
+ if tj
7
+ .about-statistic.author-content-item(style=`background: url(${tj.img});`)
8
+ .card-content
9
+ .author-content-item-tips=_p('about.other.tj.tip')
10
+ span.author-content-item-title=_p('about.other.tj.title')
11
+ #statistic
12
+ .post-tips
13
+ = _p('about.other.tj.post_tip')
14
+ case tj.provider
15
+ when '51la'
16
+ a(href="https://v6.51.la/") 51la网站统计
17
+ when 'baidu'
18
+ a(href="https://tongji.baidu.com/") 百度统计
19
+ if tj.button
20
+ .banner-button-group
21
+ a.banner-button(href=url_for(tj.button_link))
22
+ i.solitude.st-right-btn-fill
23
+ span.banner-button-text= tj.button_text
23
24
 
24
- case tj.provider
25
- when '51la'
26
- script.
27
- fetch("#{tj.url}")
28
- .then(res => res.text())
29
- .then(data => {
30
- const title = ["最近活跃", "今日人数", "今日访问", "昨日人数", "昨日访问", "本月访问", "总访问量"];
31
- let num = data.match(/(<\/span><span>).*?(\/span><\/p>)/g);
32
- num = num.map(el => {
33
- let val = el.replace(/(<\/span><span>)/g, "");
34
- return val.replace(/(<\/span><\/p>)/g, "");
25
+ case tj.provider
26
+ when '51la'
27
+ script.
28
+ fetch("#{tj.url}")
29
+ .then(res => res.text())
30
+ .then(data => {
31
+ const title = ["最近活跃", "今日人数", "今日访问", "昨日人数", "昨日访问", "本月访问", "总访问量"];
32
+ let num = data.match(/(<\/span><span>).*?(\/span><\/p>)/g);
33
+ num = num.map(el => {
34
+ let val = el.replace(/(<\/span><span>)/g, "");
35
+ return val.replace(/(<\/span><\/p>)/g, "");
36
+ });
37
+ const s = document.getElementById("statistic");
38
+ let html = '';
39
+ for (let i = 0; i < num.length; i++) {
40
+ if (i === 0 || i === num.length - 1) continue;
41
+ html += `<div><span>${title[i]}</span><span id="${title[i]}">${num[i]}</span></div>`;
42
+ }
43
+ s.innerHTML = html;
35
44
  });
36
- const s = document.getElementById("statistic");
37
- let html = '';
38
- for (let i = 0; i < num.length; i++) {
39
- if (i === 0 || i === num.length - 1) continue;
40
- html += `<div><span>${title[i]}</span><span id="${title[i]}">${num[i]}</span></div>`;
41
- }
42
- s.innerHTML = html;
43
- });
44
- when 'baidu'
45
- script.
46
- fetch("#{tj.url}")
47
- .then(res => res.json())
48
- .then(data => {
49
- const title = {"today_uv": "今日人数", "today_pv": "今日访问", "yesterday_uv": "昨日人数", "yesterday_pv": "昨日访问", "last_month_pv": "最近月访问", "last_year_pv": "最近年访问"};
45
+ when 'baidu'
46
+ script.
47
+ fetch("#{tj.url}")
48
+ .then(res => res.json())
49
+ .then(data => {
50
+ const title = {"today_uv": "今日人数", "today_pv": "今日访问", "yesterday_uv": "昨日人数", "yesterday_pv": "昨日访问", "last_month_pv": "最近月访问", "last_year_pv": "最近年访问"};
50
51
 
51
- let s = document.getElementById("statistic");
52
+ let s = document.getElementById("statistic");
52
53
 
53
- for (let key in data) {
54
- if (data.hasOwnProperty(key) && title[key]) {
55
- s.innerHTML += `<div><span>${title[key]}</span><span id="${key}">${data[key]}</span></div>`;
56
- }
57
- }
58
- });
54
+ for (let key in data) {
55
+ if (data.hasOwnProperty(key) && title[key]) {
56
+ s.innerHTML += `<div><span>${title[key]}</span><span id="${key}">${data[key]}</span></div>`;
57
+ }
58
+ }
59
+ });
59
60
 
60
61
 
61
- if oneself
62
- style.
63
- :root {
64
- --site-about-oneself-map--light: url(#{oneself.map.light});
65
- --site-about-oneself-map--dark: url(#{oneself.map.dark});
66
- }
67
- .author-content-item-group.column.mapAndInfo
68
- .author-content-item.map.single
69
- span.map-title=_p('about.other.oneself.map_title') + oneself.location
70
- .author-content-item.selfInfo.single
71
- div
72
- span.selfInfo-title=_p('about.other.oneself.info_title1')
73
- span.selfInfo-content(style="color: #43a6c6;")= oneself.birthYear
74
- div
75
- span.selfInfo-title= oneself.university
76
- span.selfInfo-content(style="color: #c69043;")= oneself.major
77
- div
78
- span.selfInfo-title=_p('about.other.oneself.info_title2')
79
- span.selfInfo-content(style="color: #b04fe6;")= oneself.occupation
62
+ if oneself
63
+ style.
64
+ :root {
65
+ --site-about-oneself-map--light: url(#{oneself.map.light});
66
+ --site-about-oneself-map--dark: url(#{oneself.map.dark});
67
+ }
68
+ .author-content-item-group.column.mapAndInfo
69
+ .author-content-item.map.single
70
+ span.map-title=_p('about.other.oneself.map_title') + oneself.location
71
+ .author-content-item.selfInfo.single
72
+ div
73
+ span.selfInfo-title=_p('about.other.oneself.info_title1')
74
+ span.selfInfo-content(style="color: #43a6c6;")= oneself.birthYear
75
+ div
76
+ span.selfInfo-title= oneself.university
77
+ span.selfInfo-content(style="color: #c69043;")= oneself.major
78
+ div
79
+ span.selfInfo-title=_p('about.other.oneself.info_title2')
80
+ span.selfInfo-content(style="color: #b04fe6;")= oneself.occupation
80
81
 
81
82
  - var cause = site.data.about.cause
82
83
 
@@ -15,6 +15,52 @@
15
15
  a.reward-link-button(href=url_for(theme.post.rss))
16
16
  i.solitude.st-plant-fill
17
17
  = _p('footer.rss')
18
+ if theme.post.share.enable
19
+ .social-share
20
+ - const path = config.url + url_for(page.path);
21
+ - const encodedPath = encodeURIComponent(path);
22
+ - const encodedTitle = encodeURIComponent(page.title);
23
+ - const encodedDescription = encodeURIComponent(page.description);
24
+ - const encodedIcon = encodeURIComponent(page.cover || theme.site.icon);
25
+ each item in theme.post.share.list || []
26
+ case item
27
+ when 'qq'
28
+ a.social-share-ico.icon-qq(href=`https://connect.qq.com/widget/shareqq/index.html?url=${encodedPath}&title=${encodedTitle}&desc=${encodedDescription}&summary=${encodedDescription}&site=${encodedTitle}&pics=${encodedIcon}` title=_p('post.share.qq'))
29
+ i.solitude.st-qq-fill
30
+ when 'weibo'
31
+ a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title=_p('post.share.weibo'))
32
+ i.solitude.st-weibo-fill
33
+ when 'telegram'
34
+ a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title=_p('post.share.telegram'))
35
+ i.solitude.st-telegram-fill
36
+ when 'whatsapp'
37
+ a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title=_p('post.share.whatsapp'))
38
+ i.solitude.st-whatsapp-fill
39
+ when 'linkedin'
40
+ a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title=_p('post.share.linkedin'))
41
+ i.solitude.st-linkedin-box-fill
42
+ when 'facebook'
43
+ a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title=_p('post.share.facebook'))
44
+ i.solitude.st-facebook-fill
45
+ when 'twitter'
46
+ a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title=_p('post.share.twitter'))
47
+ i.solitude.st-twitter-x-fill
48
+ when 'link'
49
+ .social-share-ico.icon-link(onclick=`utils.copy("${path}")` title=_p('post.share.link'))
50
+ i.solitude.st-links-line
51
+ when 'qrcode'
52
+ .social-share-ico.icon-qrcode(title=_p('post.share.qrcode'))
53
+ i.solitude.st-qr-code-fill
54
+ .share-main
55
+ .share-main-all
56
+ #qrcode
57
+ .reward-dec=_p('post.share.qrcode')
58
+ script(pjax).
59
+ typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), '!{path}');
60
+ window.addEventListener('DOMContentLoaded', () => {
61
+ new QRCode(document.getElementById("qrcode"), '!{path}');
62
+ });
63
+
18
64
  if copyright.enable || page.copyright
19
65
  .post-copyright__notice
20
66
  span.post-copyright-info
@@ -78,7 +78,7 @@
78
78
  span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
79
79
  i.solitude.st-loading-line
80
80
  when 'Artalk'
81
- span#ArtalkCount.artalk-count
81
+ span.artalk-count
82
82
  i.solitude.st-loading-line
83
83
 
84
84
  include ./wave
@@ -3,23 +3,23 @@ nav.needEndHide.pagination-post#pagination
3
3
  .prev-post.pull-left
4
4
  a(href=url_for(page.prev.path))
5
5
  .pagination-info
6
- .label 上一篇
6
+ .label=_p('post.nav.prev')
7
7
  .prev_info= page.prev.title
8
8
  .next-post.pull-right
9
9
  a(href=url_for(page.next.path))
10
10
  .pagination-info
11
- .label 下一篇
11
+ .label=_p('post.nav.next')
12
12
  .next_info= page.next.title
13
13
  else
14
14
  if !page.prev && page.next
15
15
  .next-post.pull-full
16
16
  a(href=url_for(page.next.path))
17
17
  div.pagination-info
18
- .label 下一篇
18
+ .label=_p('post.nav.next')
19
19
  .next_info= page.next.title
20
20
  if !page.next && page.prev
21
21
  .prev-post.pull-full
22
22
  a(href=url_for(page.prev.path))
23
23
  .pagination-info
24
- .label 上一篇
24
+ .label=_p('post.nav.prev')
25
25
  .prev_info= page.prev.title
@@ -60,6 +60,7 @@ script.
60
60
  }
61
61
  }
62
62
  const newestCommentInit = () => {
63
+ if (!document.querySelector('.card-recent-comment')) return
63
64
  const data = utils.saveToLocal.get('twikoo-newest-comment')
64
65
  data ? generateHtml(data) : getComment()
65
66
  }
@@ -21,6 +21,7 @@ script.
21
21
 
22
22
  const $asideList = document.querySelector('.card-recent-comment .aside-list')
23
23
  const newestCommentInit = () => {
24
+ if (!document.querySelector('.card-recent-comment')) return
24
25
  const data = utils.saveToLocal.get('valine-newest-comment')
25
26
  if (data) {
26
27
  generateHtml(data)
@@ -20,6 +20,7 @@ script.
20
20
 
21
21
  const $asideList = document.querySelector('.card-recent-comment .aside-list')
22
22
  const newestCommentInit = () => {
23
+ if (!document.querySelector('.card-recent-comment')) return
23
24
  const data = utils.saveToLocal.get('waline-newest-comment')
24
25
  if (data) {
25
26
  generateHtml(data)
package/layout/post.pug CHANGED
@@ -15,28 +15,6 @@ block content
15
15
  span.tags-punctuation
16
16
  | #{data.name}
17
17
  span.tagsPageCount #{data.length}
18
- .social-share
19
- - const path = config.url + url_for(page.path);
20
- - const encodedPath = encodeURIComponent(path);
21
- - const encodedTitle = encodeURIComponent(page.title);
22
- - const encodedDescription = encodeURIComponent(page.description);
23
- - const encodedIcon = encodeURIComponent(page.cover || theme.site.icon);
24
- each item in theme.post.share.list || []
25
- case item
26
- when 'qq'
27
- a.social-share-ico.icon-qq(href=`https://connect.qq.com/widget/shareqq/index.html?url=${encodedPath}&title=${encodedTitle}&desc=${encodedDescription}&summary=${encodedDescription}&site=${encodedTitle}&pics=${encodedIcon}` title="QQ")
28
- when 'weibo'
29
- a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title="Weibo")
30
- when 'telegram'
31
- a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title="Telegram")
32
- when 'whatsapp'
33
- a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title="WhatsApp")
34
- when 'linkedin'
35
- a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title="LinkedIn")
36
- when 'facebook'
37
- a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title="Facebook")
38
- when 'twitter'
39
- a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title="Twitter")
40
18
  if theme.google_adsense.enable && !theme.google_adsense.auto_ads && theme.google_adsense.post_content
41
19
  div.google-ads-warp
42
20
  ins.adsbygoogle(style="display:block; text-align:center; height:284px", data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -114,4 +114,9 @@ mermaid_js:
114
114
  blueimp_md5:
115
115
  name: blueimp-md5
116
116
  file: js/md5.min.js
117
- version: 2.19.0
117
+ version: 2.19.0
118
+ qrcode:
119
+ name: qrcodejs
120
+ file: qrcode.min.js
121
+ version: 1.0.0
122
+ other_name: qrcodejs
@@ -104,6 +104,7 @@ hexo.extend.filter.register('before_generate', () => {
104
104
  },
105
105
  index_post_list: {
106
106
  direction: 'column',
107
+ column: 2,
107
108
  content: false,
108
109
  length: 500,
109
110
  cover: 'both'
@@ -0,0 +1,13 @@
1
+ 'use strict'
2
+
3
+ hexo.extend.filter.register('before_post_render', data => {
4
+ const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
5
+ let { cover: coverVal } = data
6
+
7
+ // Add path to top_img and cover if post_asset_folder is enabled
8
+ if (hexo.config.post_asset_folder) {
9
+ if (coverVal && coverVal.indexOf('/') === -1 && imgTestReg.test(coverVal)) data.cover = `${data.path}${coverVal}`
10
+ }
11
+
12
+ return data
13
+ })
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const { stripHTML, escapeHTML } = require('hexo-util')
2
+ const { stripHTML, escapeHTML, prettyUrls } = require("hexo-util");
3
3
  hexo.extend.helper.register('page_description', function () {
4
4
  const { config, page } = this
5
5
  let description = page.description || page.content || page.title || config.description
@@ -10,4 +10,8 @@ hexo.extend.helper.register('page_description', function () {
10
10
  ).replace(/\n/g, ' ').replace(/\s+/g, ' ');
11
11
  return description
12
12
  }
13
- })
13
+ })
14
+
15
+ hexo.extend.helper.register("urlNoIndex", function (url = null) {
16
+ return prettyUrls(url || this.url, { trailing_index: false, trailing_html: true });
17
+ });
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ function postBtns(args, content) {
4
+ return `<div class="btns ${args.join(" ")}">
5
+ ${content}
6
+ </div>`;
7
+ }
8
+
9
+ function postCell(args, content) {
10
+ args = args.join(" ").split(",");
11
+ let text = args[0] || "";
12
+ let url = args[1] || "";
13
+ text = text.trim();
14
+ url = url.trim();
15
+ if (url.length > 0) {
16
+ url = "href='" + url + "'";
17
+ }
18
+ let icon = "";
19
+ let img = "https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus/lib/assets/default.svg";
20
+ if (args.length > 2) {
21
+ if (args[2].indexOf(" solitude") > -1) {
22
+ icon = args[2].trim();
23
+ } else {
24
+ img = args[2].trim();
25
+ }
26
+ }
27
+ if (icon.length > 0) {
28
+ return `<a class="button no-text-decoration" ${url} title='${text}'><i class='${icon}'></i>${text}</a>`;
29
+ } else {
30
+ return `<a class="button no-text-decoration" ${url} title='${text}'><img src='${img}'>${text}</a>`;
31
+ }
32
+ }
33
+
34
+ hexo.extend.tag.register("btns", postBtns, { ends: true });
35
+ hexo.extend.tag.register("cell", postCell);
@@ -363,6 +363,7 @@ b, strong
363
363
  i.solitude
364
364
  font-size 22px
365
365
  line-height 1
366
+ font-synthesis style
366
367
 
367
368
  .layout
368
369
  display: flex
@@ -1,134 +1,72 @@
1
1
  $highlight_color = hexo-config('highlight.color')
2
2
 
3
3
  if $highlight_color == "default"
4
- $highlight-comment = #969896
5
- $highlight-red = #FF5370
6
- $highlight-orange = #F78C6C
7
- $highlight-yellow = #FFCB6B
8
- $highlight-green = #C3E88D
9
- $highlight-aqua = #89DDFF
10
- $highlight-blue = #82AAFF
11
- $highlight-purple = #C792EA
12
- $highlight-deletion = #BF42BF
13
- $highlight-addition = #105EDE
14
- else if $highlight_color == "dark"
15
- $highlight-comment = #6272A4
16
- $highlight-red = #FF5370
17
- $highlight-orange = #F78C6C
18
- $highlight-yellow = #FFCB6B
19
- $highlight-green = #C3E88D
20
- $highlight-aqua = #89DDFF
21
- $highlight-blue = #82AAFF
22
- $highlight-purple = #C792EA
23
- $highlight-deletion = #BF42BF
24
- $highlight-addition = #105EDE
25
- else if $highlight_color == "funky"
26
- $highlight-comment = #6272A4
27
- $highlight-red = #FF5370
28
- $highlight-orange = #FFCB6B
29
- $highlight-yellow = #C3E88D
30
- $highlight-green = #89DDFF
31
- $highlight-aqua = #82AAFF
32
- $highlight-blue = #C792EA
33
- $highlight-purple = #FF5370
34
- $highlight-deletion = #F07178
35
- $highlight-addition = #C3E88D
36
- else if $highlight_color == "okaidia"
37
- $highlight-comment = #6272A4
38
- $highlight-red = #FF5370
39
- $highlight-orange = #FFCB6B
40
- $highlight-yellow = #C3E88D
41
- $highlight-green = #89DDFF
42
- $highlight-aqua = #82AAFF
43
- $highlight-blue = #C792EA
44
- $highlight-purple = #FF5370
45
- $highlight-deletion = #F07178
46
- $highlight-addition = #C3E88D
47
- else if $highlight_color == "tomorrow"
48
- $highlight-comment = #6272A4
49
- $highlight-red = #FF5370
50
- $highlight-orange = #F78C6C
51
- $highlight-yellow = #FFCB6B
52
- $highlight-green = #C3E88D
53
- $highlight-aqua = #89DDFF
54
- $highlight-blue = #82AAFF
55
- $highlight-purple = #C792EA
56
- $highlight-deletion = #BF42BF
57
- $highlight-addition = #105EDE
58
- else if $highlight_color == "twilight"
59
- $highlight-comment = #6272A4
60
- $highlight-red = #FF5370
61
- $highlight-orange = #F78C6C
62
- $highlight-yellow = #FFCB6B
63
- $highlight-green = #C3E88D
64
- $highlight-aqua = #89DDFF
65
- $highlight-blue = #82AAFF
66
- $highlight-purple = #C792EA
67
- $highlight-deletion = #BF42BF
68
- $highlight-addition = #105EDE
69
- else if $highlight_color == "darcula"
70
- $highlight-comment = #6272A4
71
- $highlight-red = #FF5370
72
- $highlight-orange = #F78C6C
73
- $highlight-yellow = #FFCB6B
74
- $highlight-green = #C3E88D
75
- $highlight-aqua = #89DDFF
76
- $highlight-blue = #82AAFF
77
- $highlight-purple = #C792EA
78
- $highlight-deletion = #BF42BF
79
- $highlight-addition = #105EDE
80
- else if $highlight_color == "material"
81
- $highlight-comment = #546E7A
82
- $highlight-red = #FF5370
83
- $highlight-orange = #FFCB6B
84
- $highlight-yellow = #C3E88D
85
- $highlight-green = #89DDFF
86
- $highlight-aqua = #82AAFF
87
- $highlight-blue = #C792EA
88
- $highlight-purple = #FF5370
89
- $highlight-deletion = #F07178
90
- $highlight-addition = #C3E88D
91
- else if $highlight_color == "solarized-light"
92
- $highlight-comment = #93A1A1
93
- $highlight-red = #DC322F
94
- $highlight-orange = #CB4B16
95
- $highlight-yellow = #B58900
96
- $highlight-green = #859900
97
- $highlight-aqua = #2AA198
98
- $highlight-blue = #268BD2
99
- $highlight-purple = #6C71C4
100
- $highlight-deletion = #D33682
101
- $highlight-addition = #859900
102
- else if $highlight_color == "solarized-dark"
103
- $highlight-comment = #657B83
104
- $highlight-red = #DC322F
105
- $highlight-orange = #CB4B16
106
- $highlight-yellow = #B58900
107
- $highlight-green = #859900
108
- $highlight-aqua = #2AA198
109
- $highlight-blue = #268BD2
110
- $highlight-purple = #6C71C4
111
- $highlight-deletion = #D33682
112
- $highlight-addition = #859900
113
- else if $highlight_color == "github"
114
- $highlight-comment = #969896
115
- $highlight-red = #D73A49
116
- $highlight-orange = #BD2C00
117
- $highlight-yellow = #E5C07B
118
- $highlight-green = #28A745
119
- $highlight-aqua = #00A9C0
120
- $highlight-blue = #0366D6
121
- $highlight-purple = #6F42C1
122
- $highlight-deletion = #D73A49
123
- $highlight-addition = #28A745
124
- else
125
- $highlight-comment = #6272A4
126
- $highlight-red = #FF5370
127
- $highlight-orange = #F78C6C
128
- $highlight-yellow = #FFCB6B
129
- $highlight-green = #C3E88D
130
- $highlight-aqua = #89DDFF
131
- $highlight-blue = #82AAFF
132
- $highlight-purple = #C792EA
133
- $highlight-deletion = #BF42BF
134
- $highlight-addition = #105EDE
4
+ $highlight-variable-dark = #569CD6
5
+ $highlight-number-dark = #B5CEA8
6
+ $highlight-string-dark = #CE9178
7
+ $highlight-title-dark = #DCDCAA
8
+ $highlight-emphasis-dark = #6A9955
9
+ $highlight-variable-light = #0000FF
10
+ $highlight-number-light = #098658
11
+ $highlight-string-light = #A31515
12
+ $highlight-title-light = #795E26
13
+ $highlight-emphasis-light = #0451A5
14
+ $highlight-parameter-dark = #FFB86C
15
+ $highlight-parameter-light = #FFB86C
16
+ $highlight-comment-dark = $highlight-string-dark
17
+ $highlight-comment-light = $highlight-string-light
18
+ $highlight-deleted = #f00
19
+ $highlight-inserted = #35cd4b
20
+ else if $highlight_color == "solidity"
21
+ $highlight-variable-dark = #D74BDE
22
+ $highlight-number-dark = #8DA1A0
23
+ $highlight-string-dark = #5B876D
24
+ $highlight-title-dark = #D74BDE
25
+ $highlight-emphasis-dark = #BA9C23
26
+ $highlight-variable-light = #0000FF
27
+ $highlight-number-light = #098658
28
+ $highlight-string-light = #A31515
29
+ $highlight-title-light = #795E26
30
+ $highlight-emphasis-light = #0451A5
31
+ $highlight-parameter-dark = #FFB86C
32
+ $highlight-parameter-light = #FFB86C
33
+ $highlight-comment-dark = $highlight-string-dark
34
+ $highlight-comment-light = $highlight-string-light
35
+ $highlight-deleted = #f00
36
+ $highlight-inserted = #35cd4b
37
+ else if $highlight_color == "dracula"
38
+ $highlight-variable-dark = #FF79C6
39
+ $highlight-number-dark = #BD93F9
40
+ $highlight-string-dark = #F1FA8C
41
+ $highlight-title-dark = #50FA7B
42
+ $highlight-emphasis-dark = #8BE9FD
43
+ $highlight-variable-light = #FF79C6
44
+ $highlight-number-light = #BD93F9
45
+ $highlight-string-light = #A31515
46
+ $highlight-title-light = #795E26
47
+ $highlight-emphasis-light = #0451A5
48
+ $highlight-parameter-dark = #FFB86C
49
+ $highlight-parameter-light = #FFB86C
50
+ $highlight-comment-dark = #6272A4
51
+ $highlight-comment-light = #6272A4
52
+ $highlight-important-dark = #BD93F9
53
+ $highlight-important-light = #BD93F9
54
+ $highlight-deleted = #f00
55
+ $highlight-inserted = #35cd4b
56
+ else
57
+ $highlight-variable-dark = #569CD6
58
+ $highlight-number-dark = #B5CEA8
59
+ $highlight-string-dark = #CE9178
60
+ $highlight-title-dark = #DCDCAA
61
+ $highlight-emphasis-dark = #6A9955
62
+ $highlight-variable-light = #0000FF
63
+ $highlight-number-light = #098658
64
+ $highlight-string-light = #A31515
65
+ $highlight-title-light = #795E26
66
+ $highlight-emphasis-light = #0451A5
67
+ $highlight-parameter-dark = #FFB86C
68
+ $highlight-parameter-light = #FFB86C
69
+ $highlight-comment-dark = $highlight-string-dark
70
+ $highlight-comment-light = $highlight-string-light
71
+ $highlight-deleted = #f00
72
+ $highlight-inserted = #35cd4b