paraiso_light.py 5.5 KB

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