zenburn.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. """
  2. pygments.styles.zenburn
  3. ~~~~~~~~~~~~~~~~~~~~~~~
  4. Low contrast color scheme Zenburn.
  5. See: https://kippura.org/zenburnpage/
  6. https://github.com/jnurmine/Zenburn
  7. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
  8. :license: BSD, see LICENSE for details.
  9. """
  10. from pygments.style import Style
  11. from pygments.token import (
  12. Token, Name, Operator, Keyword, Generic, Comment, Number, String, Literal,
  13. Punctuation, Error,
  14. )
  15. class ZenburnStyle(Style):
  16. """
  17. Low contrast Zenburn style.
  18. """
  19. default_style = ""
  20. background_color = '#3f3f3f'
  21. highlight_color = '#484848'
  22. line_number_color = '#5d6262'
  23. line_number_background_color = '#353535'
  24. line_number_special_color = '#7a8080'
  25. line_number_special_background_color = '#353535'
  26. styles = {
  27. Token: '#dcdccc',
  28. Error: '#e37170 bold',
  29. Keyword: '#efdcbc',
  30. Keyword.Type: '#dfdfbf bold',
  31. Keyword.Constant: '#dca3a3',
  32. Keyword.Declaration: '#f0dfaf',
  33. Keyword.Namespace: '#f0dfaf',
  34. Name: '#dcdccc',
  35. Name.Tag: '#e89393 bold',
  36. Name.Entity: '#cfbfaf',
  37. Name.Constant: '#dca3a3',
  38. Name.Class: '#efef8f',
  39. Name.Function: '#efef8f',
  40. Name.Builtin: '#efef8f',
  41. Name.Builtin.Pseudo: '#dcdccc',
  42. Name.Attribute: '#efef8f',
  43. Name.Exception: '#c3bf9f bold',
  44. Literal: '#9fafaf',
  45. String: '#cc9393',
  46. String.Doc: '#7f9f7f',
  47. String.Interpol: '#dca3a3 bold',
  48. Number: '#8cd0d3',
  49. Number.Float: '#c0bed1',
  50. Operator: '#f0efd0',
  51. Punctuation: '#f0efd0',
  52. Comment: '#7f9f7f italic',
  53. Comment.Preproc: '#dfaf8f bold',
  54. Comment.PreprocFile: '#cc9393',
  55. Comment.Special: '#dfdfdf bold',
  56. Generic: '#ecbcbc bold',
  57. Generic.Emph: '#ffffff bold',
  58. Generic.Output: '#5b605e bold',
  59. Generic.Heading: '#efefef bold',
  60. Generic.Deleted: '#c3bf9f bg:#313c36',
  61. Generic.Inserted: '#709080 bg:#313c36 bold',
  62. Generic.Traceback: '#80d4aa bg:#2f2f2f bold',
  63. Generic.Subheading: '#efefef bold',
  64. }