gruvbox.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. """
  2. pygments.styles.gruvbox
  3. ~~~~~~~~~~~~~~~~~~~~~~~
  4. pygments version of the "gruvbox" vim theme.
  5. https://github.com/morhetz/gruvbox
  6. :copyright: Copyright 2006-2021 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, \
  11. Number, Operator, Generic
  12. class GruvboxDarkStyle(Style):
  13. """
  14. Pygments version of the "gruvbox" dark vim theme.
  15. """
  16. background_color = '#282828'
  17. highlight_color = '#ebdbb2'
  18. styles = {
  19. Comment: 'italic #928374',
  20. Comment.PreProc: '#8ec07c',
  21. Comment.Special: 'bold italic #ebdbb2',
  22. Keyword: '#fb4934',
  23. Operator.Word: '#fb4934',
  24. String: '#b8bb26',
  25. String.Escape: '#fe8019',
  26. Number: '#d3869b',
  27. Name.Builtin: '#fe8019',
  28. Name.Variable: '#83a598',
  29. Name.Constant: '#d3869b',
  30. Name.Class: '#8ec07c',
  31. Name.Function: '#8ec07c',
  32. Name.Namespace: '#8ec07c',
  33. Name.Exception: '#fb4934',
  34. Name.Tag: '#8ec07c',
  35. Name.Attribute: '#fabd2f',
  36. Name.Decorator: '#fb4934',
  37. Generic.Heading: 'bold #ebdbb2',
  38. Generic.Subheading: 'underline #ebdbb2',
  39. Generic.Deleted: 'bg:#fb4934 #282828',
  40. Generic.Inserted: 'bg:#b8bb26 #282828',
  41. Generic.Error: '#fb4934',
  42. Generic.Emph: 'italic',
  43. Generic.Strong: 'bold',
  44. Generic.Prompt: '#a89984',
  45. Generic.Output: '#f2e5bc',
  46. Generic.Traceback: '#fb4934',
  47. Error: 'bg:#fb4934 #282828'
  48. }
  49. class GruvboxLightStyle(Style):
  50. """
  51. Pygments version of the "gruvbox" Light vim theme.
  52. """
  53. background_color = '#fbf1c7'
  54. highlight_color = '#3c3836'
  55. styles = {
  56. Comment: 'italic #928374',
  57. Comment.PreProc: '#427b58',
  58. Comment.Special: 'bold italic #3c3836',
  59. Keyword: '#9d0006',
  60. Operator.Word: '#9d0006',
  61. String: '#79740e',
  62. String.Escape: '#af3a03',
  63. Number: '#8f3f71',
  64. Name.Builtin: '#af3a03',
  65. Name.Variable: '#076678',
  66. Name.Constant: '#8f3f71',
  67. Name.Class: '#427b58',
  68. Name.Function: '#427b58',
  69. Name.Namespace: '#427b58',
  70. Name.Exception: '#9d0006',
  71. Name.Tag: '#427b58',
  72. Name.Attribute: '#b57614',
  73. Name.Decorator: '#9d0006',
  74. Generic.Heading: 'bold #3c3836',
  75. Generic.Subheading: 'underline #3c3836',
  76. Generic.Deleted: 'bg:#9d0006 #fbf1c7',
  77. Generic.Inserted: 'bg:#79740e #fbf1c7',
  78. Generic.Error: '#9d0006',
  79. Generic.Emph: 'italic',
  80. Generic.Strong: 'bold',
  81. Generic.Prompt: '#7c6f64',
  82. Generic.Output: '#32302f',
  83. Generic.Traceback: '#9d0006',
  84. Error: 'bg:#9d0006 #fbf1c7'
  85. }