paraiso_dark.py 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. """
  2. pygments.styles.paraiso_dark
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Paraíso (Dark) by Jan T. Sott
  5. Pygments template by Jan T. Sott (https://github.com/idleberg)
  6. Created with Base16 Builder by Chris Kempson
  7. (https://github.com/chriskempson/base16-builder).
  8. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
  9. :license: BSD, see LICENSE for details.
  10. """
  11. from pygments.style import Style
  12. from pygments.token import Keyword, Name, Comment, String, Error, Text, \
  13. Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
  14. __all__ = ['ParaisoDarkStyle']
  15. BACKGROUND = "#2f1e2e"
  16. CURRENT_LINE = "#41323f"
  17. SELECTION = "#4f424c"
  18. FOREGROUND = "#e7e9db"
  19. COMMENT = "#776e71"
  20. RED = "#ef6155"
  21. ORANGE = "#f99b15"
  22. YELLOW = "#fec418"
  23. GREEN = "#48b685"
  24. AQUA = "#5bc4bf"
  25. BLUE = "#06b6ef"
  26. PURPLE = "#815ba4"
  27. class ParaisoDarkStyle(Style):
  28. name = 'paraiso-dark'
  29. background_color = BACKGROUND
  30. highlight_color = SELECTION
  31. styles = {
  32. # No corresponding class for the following:
  33. Text: FOREGROUND, # class: ''
  34. Whitespace: "", # class: 'w'
  35. Error: RED, # class: 'err'
  36. Other: "", # class 'x'
  37. Comment: COMMENT, # class: 'c'
  38. Comment.Multiline: "", # class: 'cm'
  39. Comment.Preproc: "", # class: 'cp'
  40. Comment.Single: "", # class: 'c1'
  41. Comment.Special: "", # class: 'cs'
  42. Keyword: PURPLE, # class: 'k'
  43. Keyword.Constant: "", # class: 'kc'
  44. Keyword.Declaration: "", # class: 'kd'
  45. Keyword.Namespace: AQUA, # class: 'kn'
  46. Keyword.Pseudo: "", # class: 'kp'
  47. Keyword.Reserved: "", # class: 'kr'
  48. Keyword.Type: YELLOW, # class: 'kt'
  49. Operator: AQUA, # class: 'o'
  50. Operator.Word: "", # class: 'ow' - like keywords
  51. Punctuation: FOREGROUND, # class: 'p'
  52. Name: FOREGROUND, # class: 'n'
  53. Name.Attribute: BLUE, # class: 'na' - to be revised
  54. Name.Builtin: "", # class: 'nb'
  55. Name.Builtin.Pseudo: "", # class: 'bp'
  56. Name.Class: YELLOW, # class: 'nc' - to be revised
  57. Name.Constant: RED, # class: 'no' - to be revised
  58. Name.Decorator: AQUA, # class: 'nd' - to be revised
  59. Name.Entity: "", # class: 'ni'
  60. Name.Exception: RED, # class: 'ne'
  61. Name.Function: BLUE, # class: 'nf'
  62. Name.Property: "", # class: 'py'
  63. Name.Label: "", # class: 'nl'
  64. Name.Namespace: YELLOW, # class: 'nn' - to be revised
  65. Name.Other: BLUE, # class: 'nx'
  66. Name.Tag: AQUA, # class: 'nt' - like a keyword
  67. Name.Variable: RED, # class: 'nv' - to be revised
  68. Name.Variable.Class: "", # class: 'vc' - to be revised
  69. Name.Variable.Global: "", # class: 'vg' - to be revised
  70. Name.Variable.Instance: "", # class: 'vi' - to be revised
  71. Number: ORANGE, # class: 'm'
  72. Number.Float: "", # class: 'mf'
  73. Number.Hex: "", # class: 'mh'
  74. Number.Integer: "", # class: 'mi'
  75. Number.Integer.Long: "", # class: 'il'
  76. Number.Oct: "", # class: 'mo'
  77. Literal: ORANGE, # class: 'l'
  78. Literal.Date: GREEN, # class: 'ld'
  79. String: GREEN, # class: 's'
  80. String.Backtick: "", # class: 'sb'
  81. String.Char: FOREGROUND, # class: 'sc'
  82. String.Doc: COMMENT, # class: 'sd' - like a comment
  83. String.Double: "", # class: 's2'
  84. String.Escape: ORANGE, # class: 'se'
  85. String.Heredoc: "", # class: 'sh'
  86. String.Interpol: ORANGE, # class: 'si'
  87. String.Other: "", # class: 'sx'
  88. String.Regex: "", # class: 'sr'
  89. String.Single: "", # class: 's1'
  90. String.Symbol: "", # class: 'ss'
  91. Generic: "", # class: 'g'
  92. Generic.Deleted: RED, # class: 'gd',
  93. Generic.Emph: "italic", # class: 'ge'
  94. Generic.Error: "", # class: 'gr'
  95. Generic.Heading: "bold " + FOREGROUND, # class: 'gh'
  96. Generic.Inserted: GREEN, # class: 'gi'
  97. Generic.Output: "", # class: 'go'
  98. Generic.Prompt: "bold " + COMMENT, # class: 'gp'
  99. Generic.Strong: "bold", # class: 'gs'
  100. Generic.EmphStrong: "bold italic", # class: 'ges'
  101. Generic.Subheading: "bold " + AQUA, # class: 'gu'
  102. Generic.Traceback: "", # class: 'gt'
  103. }