base-color.el 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. (provide 'base-color)
  2. ;; These colors are stolen from Tango.
  3. (defvar naquadah-colors
  4. '((((class color) (min-colors 65535))
  5. (aluminium-1 . "#eeeeec")
  6. (aluminium-2 . "#d3d7cf")
  7. (aluminium-3 . "#babdb6")
  8. (aluminium-4 . "#888a85")
  9. (aluminium-5 . "#555753")
  10. (aluminium-6 . "#2e3436")
  11. (butter-1 . "#fce94f")
  12. (butter-2 . "#edd400")
  13. (butter-3 . "#c4a000")
  14. (orange-1 . "#fcaf3e")
  15. (orange-2 . "#f57900")
  16. (orange-3 . "#ce5c00")
  17. (chocolate-1 . "#e9b96e")
  18. (chocolate-2 . "#c17d11")
  19. (chocolate-3 . "#9f5902")
  20. (chameleon-1 . "#8ae234")
  21. (chameleon-2 . "#73d216")
  22. (chameleon-3 . "#4e9a06")
  23. (sky-blue-1 . "#729fcf")
  24. (sky-blue-2 . "#3465a4")
  25. (sky-blue-3 . "#204a87")
  26. (plum-1 . "#ad7fa8")
  27. (plum-2 . "#75507b")
  28. (plum-3 . "#5c3566")
  29. (scarlet-red-1 . "#ef2929")
  30. (scarlet-red-2 . "#cc0000")
  31. (scarlet-red-3 . "#a40000")
  32. (background . "#262B2C")
  33. (black . "#0c191C")
  34. (gradient-1 . "#00ffff") ;; Cyan
  35. (gradient-2 . "#8ae234") ;; chameleon-1
  36. (gradient-3 . "#fce94f") ;; butter-1
  37. (gradient-4 . "#ad7fa8") ;; plum-1
  38. (gradient-5 . "#e9b96e") ;; chocolate-1
  39. (gradient-6 . "#fcaf3e") ;; orange-1
  40. (gradient-7 . "#3465a4") ;; sky-blue-2
  41. (gradient-8 . "#73d216") ;; chameleon-2
  42. (gradient-9 . "#f57900") ;; orange-2
  43. (gradient-10 . "#75507b") ;; plum-2
  44. (gradient-11 . "#c17d11") ;; chocolate-2
  45. )
  46. (((class color) (min-colors 256))
  47. (aluminium-1 . "color-255")
  48. (aluminium-2 . "color-253")
  49. (aluminium-3 . "color-251")
  50. (aluminium-4 . "color-245")
  51. (aluminium-5 . "color-240")
  52. (aluminium-6 . "color-235")
  53. (butter-1 . "color-221")
  54. (butter-2 . "color-220")
  55. (butter-3 . "color-178")
  56. (orange-1 . "color-214")
  57. (orange-2 . "color-208")
  58. (orange-3 . "color-130")
  59. (chocolate-1 . "color-180")
  60. (chocolate-2 . "color-172")
  61. (chocolate-3 . "color-94")
  62. (chameleon-1 . "color-82")
  63. (chameleon-2 . "color-76")
  64. (chameleon-3 . "color-34")
  65. (sky-blue-1 . "color-117")
  66. (sky-blue-2 . "color-63")
  67. (sky-blue-3 . "color-24")
  68. (plum-1 . "color-176")
  69. (plum-2 . "color-96")
  70. (plum-3 . "color-54")
  71. (scarlet-red-1 . "color-196")
  72. (scarlet-red-2 . "color-160")
  73. (scarlet-red-3 . "color-124")
  74. (background . "color-234")
  75. (black . "color-16")
  76. (gradient-1 . "color-117") ;; sky-blue-1
  77. (gradient-2 . "color-82") ;; chameleon-1
  78. (gradient-3 . "color-221") ;; butter-1
  79. (gradient-4 . "color-176") ;; plum-1
  80. (gradient-5 . "color-180") ;; chocolate-1
  81. (gradient-6 . "color-214") ;; orange-1
  82. (gradient-7 . "color-63") ;; sky-blue-2
  83. (gradient-8 . "color-76") ;; chameleon-2
  84. (gradient-9 . "color-208") ;; orange-2
  85. (gradient-10 . "color-96") ;; plum-2
  86. (gradient-11 . "color-172") ;; chocolate-2
  87. )
  88. (((class color) (min-colors 88))
  89. (aluminium-1 . "color-87")
  90. (aluminium-2 . "color-86")
  91. (aluminium-3 . "color-85")
  92. (aluminium-4 . "color-84")
  93. (aluminium-5 . "color-82")
  94. (aluminium-6 . "color-80")
  95. (butter-1 . "color-77")
  96. (butter-2 . "color-76")
  97. (butter-3 . "color-72")
  98. (orange-1 . "color-72")
  99. (orange-2 . "color-68")
  100. (orange-3 . "color-68")
  101. (chocolate-1 . "color-73")
  102. (chocolate-2 . "color-68")
  103. (chocolate-3 . "color-52")
  104. (chameleon-1 . "color-60")
  105. (chameleon-2 . "color-44")
  106. (chameleon-3 . "color-40")
  107. (sky-blue-1 . "color-43")
  108. (sky-blue-2 . "color-22")
  109. (sky-blue-3 . "color-22")
  110. (plum-1 . "color-54")
  111. (plum-2 . "color-37")
  112. (plum-3 . "color-33")
  113. (scarlet-red-1 . "color-64")
  114. (scarlet-red-2 . "color-64")
  115. (scarlet-red-3 . "color-48")
  116. (background . "color-80")
  117. (black . "color-16")
  118. (gradient-1 . "color-43") ;; sky-blue-1
  119. (gradient-2 . "color-60") ;; chameleon-1
  120. (gradient-3 . "color-77") ;; butter-1
  121. (gradient-4 . "color-54") ;; plum-1
  122. (gradient-5 . "color-73") ;; chocolate-1
  123. (gradient-6 . "color-72") ;; orange-1
  124. (gradient-7 . "color-22") ;; sky-blue-2
  125. (gradient-8 . "color-44") ;; chameleon-2
  126. (gradient-9 . "color-68") ;; orange-2
  127. (gradient-10 . "color-37") ;; plum-2
  128. (gradient-11 . "color-68") ;; chocolate-2
  129. )
  130. (t
  131. (aluminium-1 . "white")
  132. (aluminium-2 . "white")
  133. (aluminium-3 . "white")
  134. (aluminium-4 . "white")
  135. (aluminium-5 . "white")
  136. (aluminium-6 . "white")
  137. (butter-1 . "yellow")
  138. (butter-2 . "yellow")
  139. (butter-3 . "yellow")
  140. (orange-1 . "yellow")
  141. (orange-2 . "yellow")
  142. (orange-3 . "yellow")
  143. (chocolate-1 . "yellow")
  144. (chocolate-2 . "yellow")
  145. (chocolate-3 . "yellow")
  146. (chameleon-1 . "green")
  147. (chameleon-2 . "green")
  148. (chameleon-3 . "green")
  149. (sky-blue-1 . "blue")
  150. (sky-blue-2 . "blue")
  151. (sky-blue-3 . "blue")
  152. (plum-1 . "magenta")
  153. (plum-2 . "magenta")
  154. (plum-3 . "magenta")
  155. (scarlet-red-1 . "red")
  156. (scarlet-red-2 . "red")
  157. (scarlet-red-3 . "red")
  158. (background . "black")
  159. (black . "black")
  160. (gradient-1 . "blue") ;; sky-blue-1
  161. (gradient-2 . "green") ;; chameleon-1
  162. (gradient-3 . "yellow") ;; butter-1
  163. (gradient-4 . "yellow") ;; plum-1
  164. (gradient-5 . "yellow") ;; chocolate-1
  165. (gradient-6 . "yellow") ;; orange-1
  166. (gradient-7 . "blue") ;; sky-blue-2
  167. (gradient-8 . "green") ;; chameleon-2
  168. (gradient-9 . "red") ;; orange-2
  169. (gradient-10 . "yellow") ;; plum-2
  170. (gradient-11 . "yellow") ;; chocolate-2
  171. ))
  172. "The color values for each color name for a given
  173. condition. The format is: ((condition) (key . value) (key
  174. . value) ...)")
  175. (defun naquadah-get-colors (name)
  176. (cdr
  177. (assoc
  178. name
  179. (car naquadah-colors))))