File size: 5,391 Bytes
9c6594c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
"""
pygments.styles.nord
~~~~~~~~~~~~~~~~~~~~
pygments version of the "nord" theme by Arctic Ice Studio
https://www.nordtheme.com/
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, Number, \
Operator, Generic, Whitespace, Punctuation, Text, Token
__all__ = ['NordStyle', 'NordDarkerStyle']
class NordStyle(Style):
"""
Pygments version of the "nord" theme by Arctic Ice Studio.
"""
name = 'nord'
line_number_color = "#D8DEE9"
line_number_background_color = "#242933"
line_number_special_color = "#242933"
line_number_special_background_color = "#D8DEE9"
background_color = "#2E3440"
highlight_color = "#3B4252"
styles = {
Token: "#d8dee9",
Whitespace: '#d8dee9',
Punctuation: '#eceff4',
Comment: 'italic #616e87',
Comment.Preproc: '#5e81ac',
Keyword: 'bold #81a1c1',
Keyword.Pseudo: 'nobold #81a1c1',
Keyword.Type: 'nobold #81a1c1',
Operator: 'bold #81a1c1',
Operator.Word: 'bold #81a1c1',
Name: '#d8dee9',
Name.Builtin: '#81a1c1',
Name.Function: '#88c0d0',
Name.Class: '#8fbcbb',
Name.Namespace: '#8fbcbb',
Name.Exception: '#bf616a',
Name.Variable: '#d8dee9',
Name.Constant: '#8fbcbb',
Name.Entity: '#d08770',
Name.Attribute: '#8fbcbb',
Name.Tag: '#81a1c1',
Name.Decorator: '#d08770',
String: '#a3be8c',
String.Doc: '#616e87',
String.Interpol: '#a3be8c',
String.Escape: '#ebcb8b',
String.Regex: '#ebcb8b',
String.Symbol: '#a3be8c',
String.Other: '#a3be8c',
Number: '#b48ead',
Generic.Heading: 'bold #88c0d0',
Generic.Subheading: 'bold #88c0d0',
Generic.Deleted: '#bf616a',
Generic.Inserted: '#a3be8c',
Generic.Error: '#bf616a',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: 'bold #616e88',
Generic.Output: '#d8dee9',
Generic.Traceback: '#bf616a',
Error: '#bf616a',
Text: '#d8dee9',
}
class NordDarkerStyle(Style):
"""
Pygments version of a darker "nord" theme by Arctic Ice Studio
"""
name = 'nord-darker'
line_number_color = "#D8DEE9"
line_number_background_color = "#242933"
line_number_special_color = "#242933"
line_number_special_background_color = "#D8DEE9"
background_color = "#242933"
highlight_color = "#3B4252"
styles = {
Token: "#d8dee9",
Whitespace: '#d8dee9',
Punctuation: '#eceff4',
Comment: 'italic #616e87',
Comment.Preproc: '#5e81ac',
Keyword: 'bold #81a1c1',
Keyword.Pseudo: 'nobold #81a1c1',
Keyword.Type: 'nobold #81a1c1',
Operator: 'bold #81a1c1',
Operator.Word: 'bold #81a1c1',
Name: '#d8dee9',
Name.Builtin: '#81a1c1',
Name.Function: '#88c0d0',
Name.Class: '#8fbcbb',
Name.Namespace: '#8fbcbb',
Name.Exception: '#bf616a',
Name.Variable: '#d8dee9',
Name.Constant: '#8fbcbb',
Name.Entity: '#d08770',
Name.Attribute: '#8fbcbb',
Name.Tag: '#81a1c1',
Name.Decorator: '#d08770',
String: '#a3be8c',
String.Doc: '#616e87',
String.Interpol: '#a3be8c',
String.Escape: '#ebcb8b',
String.Regex: '#ebcb8b',
String.Symbol: '#a3be8c',
String.Other: '#a3be8c',
Number: '#b48ead',
Generic.Heading: 'bold #88c0d0',
Generic.Subheading: 'bold #88c0d0',
Generic.Deleted: '#bf616a',
Generic.Inserted: '#a3be8c',
Generic.Error: '#bf616a',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.Prompt: 'bold #616e88',
Generic.Output: '#d8dee9',
Generic.Traceback: '#bf616a',
Error: '#bf616a',
Text: '#d8dee9',
}
|