theme-polarnight.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /* Author: Yazan Agha-Schrader */
  2. /* Inspiration from Nord Theme https://www.nordtheme.com/docs/colors-and-palettes */
  3. .theme-polarnight {
  4. /* ---------- PRIMARY COLORS ----------------- */
  5. --primary-color-1: hsl(220.0, 16.4%, 21.6%) ;
  6. --primary-color-1-hue: 220.0;
  7. --primary-color-1-saturation: 16.4%;
  8. --primary-color-1-lightness: 21.6%;
  9. --primary-color-2: hsl(221.7, 16.3%, 27.6%) ;
  10. -primary-color-2-hue: 221.7;
  11. --primary-color-2-saturation: 16.3%;
  12. --primary-color-2-lightness: 27.6%;
  13. --primary-color-3: hsl(220.0, 16.8%, 31.6%) ;
  14. --primary-color-3-hue: 220.0;
  15. --primary-color-3-saturation: 16.8%;
  16. --primary-color-3-lightness: 31.6%;
  17. --primary-color-4: hsl(220.0, 16.5%, 35.7%);
  18. --primary-color-4-hue: 220.0;
  19. --primary-color-4-saturation: 16.5%;
  20. --primary-color-4-lightness: 35.7%;
  21. /* ---------- SECONDARY COLORS --------------- */
  22. --secondary-color-1: hsl(217.5, 26.7%, 94.1%);
  23. --secondary-color-1-hue: 217.5;
  24. --secondary-color-1-saturation: 26.7%;
  25. --secondary-color-1-lightness: 94.1%;
  26. --secondary-color-2: hsl(218.2, 26.8%, 92.0%);
  27. --secondary-color-2-hue: 218.2;
  28. --secondary-color-2-saturation: 26.8%;
  29. --secondary-color-2-lightness: 92.0%;
  30. --secondary-color-3: hsl(218.8, 27.9%, 88.0%);
  31. --secondary-color-3-hue: 218.8;
  32. --secondary-color-3-saturation: 27.9%;
  33. --secondary-color-3-lightness: 88.0%;
  34. --secondary-color-4: hsl(218.8, 18.3%, 81.8%);
  35. --secondary-color-4-hue: 218.8;
  36. --secondary-color-4-saturation: 18.3%;
  37. --secondary-color-4-lightness: 81.8%;
  38. /* ----------- NUANCES COLORS ---------------- */
  39. --theme-nuance-color-1: hsl(178.7, 25.1%, 64.9%);
  40. --theme-nuance-color-1-hue: 178.7;
  41. --theme-nuance-color-1-saturation: 25.1%;
  42. --theme-nuance-color-1-lightness: 64.9%;
  43. --theme-nuance-color-2: hsl(193.3, 43.4%, 67.5%);
  44. --theme-nuance-color-2-hue: 193.3;
  45. --theme-nuance-color-2-saturation: 43.4%;
  46. --theme-nuance-color-2-lightness: 67.5%;
  47. --theme-nuance-color-3: hsl(210.0, 34.0%, 63.1%);
  48. --theme-nuance-color-3-hue: 210.0;
  49. --theme-nuance-color-3-saturation: 34.0%;
  50. --theme-nuance-color-3-lightness: 63.1%;
  51. --theme-nuance-color-4: hsl(213.1, 32.0%, 52.2%);
  52. --theme-nuance-color-4-hue: 213.1;
  53. --theme-nuance-color-4-saturation: 32.0%;
  54. --theme-nuance-color-4-lightness: 52.2%;
  55. /* ----------- ROYGP COLORS ------------------ */
  56. --theme-red-color: hsl(354.3, 42.3%, 56.5%);
  57. --theme-orange-color: hsl(20, 85%, 50%);
  58. --theme-yellow-color: hsl(20, 75%, 45%);
  59. --theme-green-color: hsl( 92.4, 27.8%, 64.7%);
  60. --theme-purple-color: hsl(311.1, 20.2%, 63.1%);
  61. /* ------------------------------------------------ */
  62. --background-color-1: var(--primary-color-1);
  63. --background-color-2: var(--primary-color-2);
  64. --background-color-3: var(--primary-color-3);
  65. --background-color-4: var(--primary-color-4);
  66. --border-color-1: var(--primary-color-2);
  67. --border-color-2: var(--primary-color-3);
  68. --border-color-3: var(--primary-color-4);
  69. --border-focus-color: var(--theme-nuance-color-2);
  70. --border-focus-shadow: var(--theme-nuance-color-1);
  71. --text-color-plain: var(--secondary-color-1);
  72. --text-color-subtile-1: var(--secondary-color-2);
  73. --text-color-subtile-2: var(--secondary-color-3);
  74. --code-background-color: var(--secondary-color-2);
  75. --code-text-color: var(--primary-color-2);
  76. --ui-range-thumb-color: var(--theme-nuance-color-3);
  77. --ui-range-thumb-border: var(--ui-ranger-thumb-color);
  78. --textarea-border-color: var(--secondary-color-4);
  79. --chat-id-color: var(--theme-nuance-color-4);
  80. /* ------------------------------------------- */
  81. --button-alert-text-hover: var(--secondary-color-1);
  82. --button-alert-color-hover: var(--theme-yellow-color);
  83. --button-alert-border-hover: var(--theme-yellow-color);
  84. --button-alert-text-active: var(--secondary-color-1);
  85. --button-alert-color-active: var(--theme-orange-color);
  86. --button-alert-border-active: var(--theme-orange-color);
  87. /* ----------- PRIMARY BUTTONS --------------- */
  88. /* - button should immediately catch the eye - */
  89. --button-primary-text: var(--secondary-color-1);
  90. --button-primary-color: var(--theme-nuance-color-3);
  91. --button-primary-border: var(--theme-nuance-color-3);
  92. /* ---------hover---------- */
  93. --button-primary-text-hover:
  94. hsl(217.5,
  95. calc(var(--secondary-color-1-saturation) - 35%),
  96. calc(var(--secondary-color-1-lightness) + 30%));
  97. --button-primary-color-hover:
  98. hsl(210,
  99. calc(var(--theme-nuance-color-3-saturation) - 2%),
  100. calc(var(--theme-nuance-color-3-lightness) - 10%));
  101. --button-primary-border-hover:
  102. hsl(210,
  103. calc(var(--theme-nuance-color-3-saturation) - 2%),
  104. calc(var(--theme-nuance-color-3-lightness) - 10%));
  105. /* ---------active--------- */
  106. --button-primary-text-active:
  107. hsl(210,
  108. calc(var(--theme-nuance-color-3-saturation) - 20%),
  109. calc(var(--theme-nuance-color-3-lightness) + 35%));
  110. --button-primary-color-active:
  111. hsl(210,
  112. calc(var(--theme-nuance-color-3-saturation) - 10%),
  113. calc(var(--theme-nuance-color-3-lightness) - 25%));
  114. --button-primary-border-active:
  115. hsl(210,
  116. calc(var(--theme-nuance-color-3-saturation) - 10%),
  117. calc(var(--theme-nuance-color-3-lightness) - 25%));
  118. /* ---------- SECONDARY BUTTONS -------------- */
  119. /* these should NOT immediately catch the eye */
  120. --button-secondary-text:
  121. hsl(210,
  122. calc(var(--theme-nuance-color-3-saturation) - 20%),
  123. calc(var(--theme-nuance-color-3-lightness) - 50%));
  124. --button-secondary-color:
  125. hsl(210,
  126. calc(var(--theme-nuance-color-3-saturation) - 20%),
  127. calc(var(--theme-nuance-color-3-lightness) + 10%));
  128. --button-secondary-border:
  129. hsl(210,
  130. calc(var(--theme-nuance-color-3-saturation) - 20%),
  131. calc(var(--theme-nuance-color-3-lightness) + 10%));
  132. /* ---------hover---------- */
  133. --button-secondary-text-hover:
  134. hsl(210,
  135. calc(var(--theme-nuance-color-3-saturation) - 20%),
  136. calc(var(--theme-nuance-color-3-lightness) - 80%));
  137. --button-secondary-color-hover:
  138. hsl(210,
  139. calc(var(--theme-nuance-color-3-saturation) - 22%),
  140. calc(var(--theme-nuance-color-3-lightness) + 1%));
  141. --button-secondary-border-hover:
  142. hsl(210,
  143. calc(var(--theme-nuance-color-3-saturation) - 22%),
  144. calc(var(--theme-nuance-color-3-lightness) + 1%));
  145. /* ---------active--------- */
  146. --button-secondary-text-active:
  147. hsl(210,
  148. calc(var(--theme-nuance-color-3-saturation) - 20%),
  149. calc(var(--theme-nuance-color-3-lightness) + 25%));
  150. --button-secondary-color-active:
  151. hsl(210,
  152. calc(var(--theme-nuance-color-3-saturation) - 30%),
  153. calc(var(--theme-nuance-color-3-lightness) - 15%));
  154. --button-secondary-border-active:
  155. hsl(210,
  156. calc(var(--theme-nuance-color-3-saturation) - 30%),
  157. calc(var(--theme-nuance-color-3-lightness) - 15%));
  158. /* ---------- TERTIARY BUTTONS --------------- */
  159. /* ---------- disabled buttons --------------- */
  160. --button-tertiary-text:
  161. hsl(210,
  162. calc(var(--theme-nuance-color-3-saturation) - 40%),
  163. calc(var(--theme-nuance-color-3-lightness) - 5%));
  164. --button-tertiary-color:
  165. hsl(210,
  166. calc(var(--theme-nuance-color-3-saturation) - 40%),
  167. calc(var(--theme-nuance-color-3-lightness) + 20%));
  168. --button-tertiary-border:
  169. hsl(210,
  170. calc(var(--theme-nuance-color-3-saturation) - 40%),
  171. calc(var(--theme-nuance-color-3-lightness) + 20%));
  172. /* ---------hover---------- */
  173. --button-tertiary-text-hover:
  174. hsl(210,
  175. calc(var(--theme-nuance-color-3-saturation) - 40%),
  176. calc(var(--theme-nuance-color-3-lightness) - 5%));
  177. --button-tertiary-color-hover:
  178. hsl(210,
  179. calc(var(--theme-nuance-color-3-saturation) - 40%),
  180. calc(var(--theme-nuance-color-3-lightness) + 20%));
  181. --button-tertiary-border-hover:
  182. hsl(210,
  183. calc(var(--theme-nuance-color-3-saturation) - 40%),
  184. calc(var(--theme-nuance-color-3-lightness) + 20%));
  185. }