coffee.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. """
  2. pygments.styles.coffee
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. A warm and cozy theme based off gruvbox
  5. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. from pygments.style import Style
  9. from pygments.token import (Comment, Error, Generic, Keyword, Literal, Name,
  10. Number, Operator, Punctuation, String, Token)
  11. __all__ = ["CoffeeStyle"]
  12. class CoffeeStyle(Style):
  13. """
  14. A warm and cozy theme based off gruvbox
  15. """
  16. name = "coffee"
  17. background_color = "#262220"
  18. highlight_color = "#ddd0c0"
  19. line_number_color = "#4e4e4e"
  20. line_number_special_color = "#8f9494"
  21. styles = {
  22. Comment: "#70757A",
  23. Comment.Hashbang: "#8f9f9f",
  24. Comment.Preproc: "#fdd0c0",
  25. Comment.PreprocFile: "#c9b98f",
  26. Comment.Special: "#af5f5f",
  27. Error: "#af5f5f",
  28. Generic.Deleted: "#bb6868",
  29. Generic.Emph: "italic",
  30. Generic.Error: "#af5f5f",
  31. Generic.Inserted: "#849155",
  32. Generic.Output: "#ddd0c0",
  33. Generic.Strong: "bold",
  34. Generic.Traceback: "#af5f5f",
  35. Keyword: "#919191",
  36. Keyword.Constant: "#875f5f",
  37. Keyword.Declaration: "#875f5f",
  38. Keyword.Namespace: "#875f5f",
  39. Keyword.Reserved: "#b46276",
  40. Keyword.Type: "#af875f",
  41. Literal: "#af875f",
  42. Name: "#ddd0c0",
  43. Name.Attribute: "#ddd0c0",
  44. Name.Builtin: "#ddd0c0",
  45. Name.Builtin.Pseudo: "#87afaf",
  46. Name.Class: "#875f5f",
  47. Name.Constant: "#af8787",
  48. Name.Decorator: "#fdd0c0",
  49. Name.Entity: "#ddd0c0",
  50. Name.Exception: "#877575",
  51. Name.Function: "#fdd0c0",
  52. Name.Function.Magic: "#fdd0c0",
  53. Name.Other: "#ddd0c0",
  54. Name.Property: "#dfaf87",
  55. Name.Tag: "#87afaf",
  56. Name.Variable: "#ddd0c0",
  57. Number: "#87afaf",
  58. Operator: "#878787",
  59. Operator.Word: "#878787",
  60. Punctuation: "#ddd0c0",
  61. String: "#c9b98f",
  62. String.Affix: "#dfaf87",
  63. String.Doc: "#878787",
  64. String.Escape: "#af5f5f",
  65. String.Interpol: "#af5f5f",
  66. String.Other: "#fdd0c0",
  67. String.Regex: "#af5f5f",
  68. String.Symbol: "#af5f5f",
  69. Token: "#ddd0c0",
  70. }