zenburn.py 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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-2024 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 Token, Name, Operator, Keyword, Generic, Comment, \
  12. Number, String, Literal, Punctuation, Error
  13. __all__ = ['ZenburnStyle']
  14. class ZenburnStyle(Style):
  15. """
  16. Low contrast Zenburn style.
  17. """
  18. name = 'zenburn'
  19. background_color = '#3f3f3f'
  20. highlight_color = '#484848'
  21. line_number_color = '#5d6262'
  22. line_number_background_color = '#353535'
  23. line_number_special_color = '#7a8080'
  24. line_number_special_background_color = '#353535'
  25. styles = {
  26. Token: '#dcdccc',
  27. Error: '#e37170 bold',
  28. Keyword: '#efdcbc',
  29. Keyword.Type: '#dfdfbf bold',
  30. Keyword.Constant: '#dca3a3',
  31. Keyword.Declaration: '#f0dfaf',
  32. Keyword.Namespace: '#f0dfaf',
  33. Name: '#dcdccc',
  34. Name.Tag: '#e89393 bold',
  35. Name.Entity: '#cfbfaf',
  36. Name.Constant: '#dca3a3',
  37. Name.Class: '#efef8f',
  38. Name.Function: '#efef8f',
  39. Name.Builtin: '#efef8f',
  40. Name.Builtin.Pseudo: '#dcdccc',
  41. Name.Attribute: '#efef8f',
  42. Name.Exception: '#c3bf9f bold',
  43. Literal: '#9fafaf',
  44. String: '#cc9393',
  45. String.Doc: '#7f9f7f',
  46. String.Interpol: '#dca3a3 bold',
  47. Number: '#8cd0d3',
  48. Number.Float: '#c0bed1',
  49. Operator: '#f0efd0',
  50. Punctuation: '#f0efd0',
  51. Comment: '#7f9f7f italic',
  52. Comment.Preproc: '#dfaf8f bold',
  53. Comment.PreprocFile: '#cc9393',
  54. Comment.Special: '#dfdfdf bold',
  55. Generic: '#ecbcbc bold',
  56. Generic.Emph: '#ffffff bold',
  57. Generic.Output: '#5b605e bold',
  58. Generic.Heading: '#efefef bold',
  59. Generic.Deleted: '#c3bf9f bg:#313c36',
  60. Generic.Inserted: '#709080 bg:#313c36 bold',
  61. Generic.Traceback: '#80d4aa bg:#2f2f2f bold',
  62. Generic.Subheading: '#efefef bold',
  63. }