paraiso_light.py 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. """
  2. pygments.styles.paraiso_light
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Paraíso (Light) 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-2021 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. BACKGROUND = "#e7e9db"
  15. CURRENT_LINE = "#b9b6b0"
  16. SELECTION = "#a39e9b"
  17. FOREGROUND = "#2f1e2e"
  18. COMMENT = "#8d8687"
  19. RED = "#ef6155"
  20. ORANGE = "#f99b15"
  21. YELLOW = "#fec418"
  22. GREEN = "#48b685"
  23. AQUA = "#5bc4bf"
  24. BLUE = "#06b6ef"
  25. PURPLE = "#815ba4"
  26. class ParaisoLightStyle(Style):
  27. default_style = ''
  28. background_color = BACKGROUND
  29. highlight_color = SELECTION
  30. background_color = BACKGROUND
  31. highlight_color = SELECTION
  32. styles = {
  33. # No corresponding class for the following:
  34. Text: FOREGROUND, # class: ''
  35. Whitespace: "", # class: 'w'
  36. Error: RED, # class: 'err'
  37. Other: "", # class 'x'
  38. Comment: COMMENT, # class: 'c'
  39. Comment.Multiline: "", # class: 'cm'
  40. Comment.Preproc: "", # class: 'cp'
  41. Comment.Single: "", # class: 'c1'
  42. Comment.Special: "", # class: 'cs'
  43. Keyword: PURPLE, # class: 'k'
  44. Keyword.Constant: "", # class: 'kc'
  45. Keyword.Declaration: "", # class: 'kd'
  46. Keyword.Namespace: AQUA, # class: 'kn'
  47. Keyword.Pseudo: "", # class: 'kp'
  48. Keyword.Reserved: "", # class: 'kr'
  49. Keyword.Type: YELLOW, # class: 'kt'
  50. Operator: AQUA, # class: 'o'
  51. Operator.Word: "", # class: 'ow' - like keywords
  52. Punctuation: FOREGROUND, # class: 'p'
  53. Name: FOREGROUND, # class: 'n'
  54. Name.Attribute: BLUE, # class: 'na' - to be revised
  55. Name.Builtin: "", # class: 'nb'
  56. Name.Builtin.Pseudo: "", # class: 'bp'
  57. Name.Class: YELLOW, # class: 'nc' - to be revised
  58. Name.Constant: RED, # class: 'no' - to be revised
  59. Name.Decorator: AQUA, # class: 'nd' - to be revised
  60. Name.Entity: "", # class: 'ni'
  61. Name.Exception: RED, # class: 'ne'
  62. Name.Function: BLUE, # class: 'nf'
  63. Name.Property: "", # class: 'py'
  64. Name.Label: "", # class: 'nl'
  65. Name.Namespace: YELLOW, # class: 'nn' - to be revised
  66. Name.Other: BLUE, # class: 'nx'
  67. Name.Tag: AQUA, # class: 'nt' - like a keyword
  68. Name.Variable: RED, # class: 'nv' - to be revised
  69. Name.Variable.Class: "", # class: 'vc' - to be revised
  70. Name.Variable.Global: "", # class: 'vg' - to be revised
  71. Name.Variable.Instance: "", # class: 'vi' - to be revised
  72. Number: ORANGE, # class: 'm'
  73. Number.Float: "", # class: 'mf'
  74. Number.Hex: "", # class: 'mh'
  75. Number.Integer: "", # class: 'mi'
  76. Number.Integer.Long: "", # class: 'il'
  77. Number.Oct: "", # class: 'mo'
  78. Literal: ORANGE, # class: 'l'
  79. Literal.Date: GREEN, # class: 'ld'
  80. String: GREEN, # class: 's'
  81. String.Backtick: "", # class: 'sb'
  82. String.Char: FOREGROUND, # class: 'sc'
  83. String.Doc: COMMENT, # class: 'sd' - like a comment
  84. String.Double: "", # class: 's2'
  85. String.Escape: ORANGE, # class: 'se'
  86. String.Heredoc: "", # class: 'sh'
  87. String.Interpol: ORANGE, # class: 'si'
  88. String.Other: "", # class: 'sx'
  89. String.Regex: "", # class: 'sr'
  90. String.Single: "", # class: 's1'
  91. String.Symbol: "", # class: 'ss'
  92. Generic: "", # class: 'g'
  93. Generic.Deleted: RED, # class: 'gd',
  94. Generic.Emph: "italic", # class: 'ge'
  95. Generic.Error: "", # class: 'gr'
  96. Generic.Heading: "bold " + FOREGROUND, # class: 'gh'
  97. Generic.Inserted: GREEN, # class: 'gi'
  98. Generic.Output: "", # class: 'go'
  99. Generic.Prompt: "bold " + COMMENT, # class: 'gp'
  100. Generic.Strong: "bold", # class: 'gs'
  101. Generic.Subheading: "bold " + AQUA, # class: 'gu'
  102. Generic.Traceback: "", # class: 'gt'
  103. }