nord.py 5.2 KB

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