summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorranelpadon <ranel.padon@gmail.com>2021-12-28 21:38:57 +0800
committerGitHub <noreply@github.com>2021-12-28 14:38:57 +0100
commitd08ab2424e5c2cd1b8a1245091ec069ef2efcede (patch)
treeca4a374ac469d148f194eace0b714d1467b775fc
parent99f5bfa4ef66a6128f94a4d524135983b0e93225 (diff)
downloadpygments-git-d08ab2424e5c2cd1b8a1245091ec069ef2efcede.tar.gz
Refine the One Dark theme a bit for consistency with other popular projects (Atom, Vim, Alacritty, etc) using the same theme (#1979)
* Refine the One Dark a bit, for consistency with other projects using One Dark. * Revert the unintentional change in Operator's bold style.
-rw-r--r--pygments/styles/onedark.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/pygments/styles/onedark.py b/pygments/styles/onedark.py
index f061b2f3..b6a33b50 100644
--- a/pygments/styles/onedark.py
+++ b/pygments/styles/onedark.py
@@ -12,14 +12,14 @@
"""
from pygments.style import Style
-from pygments.token import Token, Punctuation, Keyword, Name, Comment, String, \
- Number, Operator, Generic, Whitespace
+from pygments.token import (Comment, Generic, Keyword, Name, Number, Operator,
+ Punctuation, String, Token, Whitespace)
class OneDarkStyle(Style):
"""
Theme inspired by One Dark Pro for Atom
-
+
.. versionadded:: 2.11
"""
@@ -31,29 +31,29 @@ class OneDarkStyle(Style):
Punctuation: '#ABB2BF',
Punctuation.Marker: '#ABB2BF',
- Keyword: '#D55FDE',
+ Keyword: '#C678DD',
Keyword.Constant: '#E5C07B',
- Keyword.Declaration: '#D55FDE',
- Keyword.Namespace: '#D55FDE',
- Keyword.Reserved: '#D55FDE',
+ Keyword.Declaration: '#C678DD',
+ Keyword.Namespace: '#C678DD',
+ Keyword.Reserved: '#C678DD',
Keyword.Type: '#E5C07B',
- Name: '#EF596F',
- Name.Attribute: '#EF596F',
+ Name: '#E06C75',
+ Name.Attribute: '#E06C75',
Name.Builtin: '#E5C07B',
Name.Class: '#E5C07B',
Name.Function: 'bold #61AFEF',
- Name.Function.Magic: 'bold #2BBAC5',
- Name.Other: '#EF596F',
- Name.Tag: '#EF596F',
+ Name.Function.Magic: 'bold #56B6C2',
+ Name.Other: '#E06C75',
+ Name.Tag: '#E06C75',
Name.Decorator: '#61AFEF',
Name.Variable.Class: '',
-
- String: '#89CA78',
+
+ String: '#98C379',
Number: '#D19A66',
- Operator: '#2BBAC5',
+ Operator: '#56B6C2',
Comment: '#7F848E'
}