theme.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. /* primary palette */
  2. :root {
  3. --p-primary-50: oklch(0.99 0.141 139.549);
  4. --p-primary-100: oklch(0.95289 0.141 139.549);
  5. --p-primary-200: oklch(0.93 0.141 139.549);
  6. --p-primary-300: oklch(0.90711 0.141 139.549);
  7. --p-primary-400: oklch(0.88422 0.141 139.549);
  8. --p-primary-500: oklch(0.86133 0.141 139.549);
  9. --p-primary-600: oklch(0.741 0.141 139.549);
  10. --p-primary-700: oklch(0.62067 0.141 139.549);
  11. --p-primary-800: oklch(0.50033 0.141 139.549);
  12. --p-primary-900: oklch(0.38 0.141 139.549);
  13. --p-primary-950: oklch(0.25967 0.141 139.549);
  14. --p-surface-0: oklch(1 0 360);
  15. --p-surface-50: oklch(0.9851 0.018 262.177);
  16. --p-surface-100: oklch(0.9674 0.018 262.177);
  17. --p-surface-200: oklch(0.9197 0.018 262.177);
  18. --p-surface-300: oklch(0.8711 0.018 262.177);
  19. --p-surface-400: oklch(0.7118 0.018 262.177);
  20. --p-surface-500: oklch(0.5517 0.018 262.177);
  21. --p-surface-600: oklch(0.4419 0.018 262.177);
  22. --p-surface-700: oklch(0.30857 0.018 262.177);
  23. --p-surface-800: oklch(0.28036 0.018 262.177);
  24. --p-surface-900: oklch(0.26346 0.018 262.177);
  25. --p-surface-950: oklch(0.1408 0.018 262.177);
  26. --p-content-border-radius: 6px;
  27. }
  28. /* Light */
  29. :root {
  30. --p-surface-color: var(--p-surface-0);
  31. --p-primary-color: var(--p-primary-500);
  32. --p-primary-contrast-color: var(--p-surface-0);
  33. --p-primary-hover-color: var(--p-primary-700);
  34. --p-primary-active-color: var(--p-primary-900);
  35. --p-content-border-color: var(--p-surface-200);
  36. --p-content-hover-background: var(--p-surface-100);
  37. --p-content-hover-color: var(--p-surface-800);
  38. --p-highlight-background: var(--p-primary-50);
  39. --p-highlight-color: var(--p-primary-700);
  40. --p-highlight-focus-background: var(--p-primary-100);
  41. --p-highlight-focus-color: var(--p-primary-800);
  42. --p-text-color: var(--p-surface-700);
  43. --p-text-hover-color: var(--p-surface-800);
  44. --p-text-muted-color: var(--p-surface-500);
  45. --p-text-hover-muted-color: var(--p-surface-600);
  46. }
  47. /*
  48. * Dark Mode
  49. * Defaults to system, change the dark variant selector to match the CSS variable configuration.
  50. * For example;
  51. * @custom-variant dark (&:where(.app-dark, .app-dark *));
  52. * should match to;
  53. * :root[class="app-dark"]
  54. */
  55. @media (prefers-color-scheme: dark) {
  56. :root {
  57. --p-surface-color: var(--p-surface-950);
  58. --p-primary-color: var(--p-primary-400);
  59. --p-primary-contrast-color: var(--p-surface-900);
  60. --p-primary-hover-color: var(--p-primary-200);
  61. --p-primary-active-color: var(--p-primary-50);
  62. --p-content-border-color: var(--p-surface-700);
  63. --p-content-hover-background: var(--p-surface-800);
  64. --p-content-hover-color: var(--p-surface-0);
  65. --p-highlight-background: var(--p-primary-900);
  66. --p-highlight-color: var(--p-primary-200);
  67. --p-highlight-focus-background: var(--p-primary-800);
  68. --p-highlight-focus-color: var(--p-primary-100);
  69. --p-text-color: var(--p-surface-0);
  70. --p-text-hover-color: var(--p-surface-0);
  71. --p-text-muted-color: var(--p-surface-400);
  72. --p-text-hover-muted-color: var(--p-surface-300);
  73. }
  74. }
  75. @theme inline {
  76. --color-surface: var(--p-surface-color);
  77. --color-primary: var(--p-primary-color);
  78. --color-primary-emphasis: var(--p-primary-hover-color);
  79. --color-primary-emphasis-alt: var(--p-primary-active-color);
  80. --color-primary-contrast: var(--p-primary-contrast-color);
  81. --color-primary-50: var(--p-primary-50);
  82. --color-primary-100: var(--p-primary-100);
  83. --color-primary-200: var(--p-primary-200);
  84. --color-primary-300: var(--p-primary-300);
  85. --color-primary-400: var(--p-primary-400);
  86. --color-primary-500: var(--p-primary-500);
  87. --color-primary-600: var(--p-primary-600);
  88. --color-primary-700: var(--p-primary-700);
  89. --color-primary-800: var(--p-primary-800);
  90. --color-primary-900: var(--p-primary-900);
  91. --color-primary-950: var(--p-primary-950);
  92. }
  93. :root {
  94. --theme-primary: oklch(88.422% 0.141 139.549);
  95. --theme-secondary: oklch(73.375% 0.165 35.353);
  96. --theme-success: oklch(86.171% 0.142 166.534);
  97. --theme-info: oklch(86.078% 0.142 206.182);
  98. --theme-warn: oklch(86.163% 0.142 94.818);
  99. --theme-help: oklch(74.229% 0.133 311.379);
  100. --theme-danger: oklch(82.418% 0.099 33.756);
  101. --theme-l-50: 0.99;
  102. --theme-l-100: 0.95289;
  103. --theme-l-200: 0.93;
  104. --theme-l-300: 0.90711;
  105. --theme-l-400: 0.88422;
  106. --theme-l-500: 0.86133;
  107. --theme-l-600: 0.741;
  108. --theme-l-700: 0.62067;
  109. --theme-l-800: 0.50033;
  110. --theme-l-900: 0.38;
  111. --theme-l-950: 0.25967;
  112. --theme-secondary-50: oklch(from var(--theme-secondary) var(--theme-l-50) c h);
  113. --theme-secondary-100: oklch(from var(--theme-secondary) var(--theme-l-100) c h);
  114. --theme-secondary-200: oklch(from var(--theme-secondary) var(--theme-l-200) c h);
  115. --theme-secondary-300: oklch(from var(--theme-secondary) var(--theme-l-300) c h);
  116. --theme-secondary-400: oklch(from var(--theme-secondary) var(--theme-l-400) c h);
  117. --theme-secondary-500: oklch(from var(--theme-secondary) var(--theme-l-500) c h);
  118. --theme-secondary-600: oklch(from var(--theme-secondary) var(--theme-l-600) c h);
  119. --theme-secondary-700: oklch(from var(--theme-secondary) var(--theme-l-700) c h);
  120. --theme-secondary-800: oklch(from var(--theme-secondary) var(--theme-l-800) c h);
  121. --theme-secondary-900: oklch(from var(--theme-secondary) var(--theme-l-900) c h);
  122. --theme-secondary-950: oklch(from var(--theme-secondary) var(--theme-l-950) c h);
  123. --theme-success-50: oklch(from var(--theme-success) var(--theme-l-50) c h);
  124. --theme-success-100: oklch(from var(--theme-success) var(--theme-l-100) c h);
  125. --theme-success-200: oklch(from var(--theme-success) var(--theme-l-200) c h);
  126. --theme-success-300: oklch(from var(--theme-success) var(--theme-l-300) c h);
  127. --theme-success-400: oklch(from var(--theme-success) var(--theme-l-400) c h);
  128. --theme-success-500: oklch(from var(--theme-success) var(--theme-l-500) c h);
  129. --theme-success-600: oklch(from var(--theme-success) var(--theme-l-600) c h);
  130. --theme-success-700: oklch(from var(--theme-success) var(--theme-l-700) c h);
  131. --theme-success-800: oklch(from var(--theme-success) var(--theme-l-800) c h);
  132. --theme-success-900: oklch(from var(--theme-success) var(--theme-l-900) c h);
  133. --theme-success-950: oklch(from var(--theme-success) var(--theme-l-950) c h);
  134. --theme-info-50: oklch(from var(--theme-info) var(--theme-l-50) c h);
  135. --theme-info-100: oklch(from var(--theme-info) var(--theme-l-100) c h);
  136. --theme-info-200: oklch(from var(--theme-info) var(--theme-l-200) c h);
  137. --theme-info-300: oklch(from var(--theme-info) var(--theme-l-300) c h);
  138. --theme-info-400: oklch(from var(--theme-info) var(--theme-l-400) c h);
  139. --theme-info-500: oklch(from var(--theme-info) var(--theme-l-500) c h);
  140. --theme-info-600: oklch(from var(--theme-info) var(--theme-l-600) c h);
  141. --theme-info-700: oklch(from var(--theme-info) var(--theme-l-700) c h);
  142. --theme-info-800: oklch(from var(--theme-info) var(--theme-l-800) c h);
  143. --theme-info-900: oklch(from var(--theme-info) var(--theme-l-900) c h);
  144. --theme-info-950: oklch(from var(--theme-info) var(--theme-l-950) c h);
  145. --theme-warn-50: oklch(from var(--theme-warn) var(--theme-l-50) c h);
  146. --theme-warn-100: oklch(from var(--theme-warn) var(--theme-l-100) c h);
  147. --theme-warn-200: oklch(from var(--theme-warn) var(--theme-l-200) c h);
  148. --theme-warn-300: oklch(from var(--theme-warn) var(--theme-l-300) c h);
  149. --theme-warn-400: oklch(from var(--theme-warn) var(--theme-l-400) c h);
  150. --theme-warn-500: oklch(from var(--theme-warn) var(--theme-l-500) c h);
  151. --theme-warn-600: oklch(from var(--theme-warn) var(--theme-l-600) c h);
  152. --theme-warn-700: oklch(from var(--theme-warn) var(--theme-l-700) c h);
  153. --theme-warn-800: oklch(from var(--theme-warn) var(--theme-l-800) c h);
  154. --theme-warn-900: oklch(from var(--theme-warn) var(--theme-l-900) c h);
  155. --theme-warn-950: oklch(from var(--theme-warn) var(--theme-l-950) c h);
  156. --theme-help-50: oklch(from var(--theme-help) var(--theme-l-50) c h);
  157. --theme-help-100: oklch(from var(--theme-help) var(--theme-l-100) c h);
  158. --theme-help-200: oklch(from var(--theme-help) var(--theme-l-200) c h);
  159. --theme-help-300: oklch(from var(--theme-help) var(--theme-l-300) c h);
  160. --theme-help-400: oklch(from var(--theme-help) var(--theme-l-400) c h);
  161. --theme-help-500: oklch(from var(--theme-help) var(--theme-l-500) c h);
  162. --theme-help-600: oklch(from var(--theme-help) var(--theme-l-600) c h);
  163. --theme-help-700: oklch(from var(--theme-help) var(--theme-l-700) c h);
  164. --theme-help-800: oklch(from var(--theme-help) var(--theme-l-800) c h);
  165. --theme-help-900: oklch(from var(--theme-help) var(--theme-l-900) c h);
  166. --theme-help-950: oklch(from var(--theme-help) var(--theme-l-950) c h);
  167. --theme-danger-50: oklch(from var(--theme-danger) var(--theme-l-50) c h);
  168. --theme-danger-100: oklch(from var(--theme-danger) var(--theme-l-100) c h);
  169. --theme-danger-200: oklch(from var(--theme-danger) var(--theme-l-200) c h);
  170. --theme-danger-300: oklch(from var(--theme-danger) var(--theme-l-300) c h);
  171. --theme-danger-400: oklch(from var(--theme-danger) var(--theme-l-400) c h);
  172. --theme-danger-500: oklch(from var(--theme-danger) var(--theme-l-500) c h);
  173. --theme-danger-600: oklch(from var(--theme-danger) var(--theme-l-600) c h);
  174. --theme-danger-700: oklch(from var(--theme-danger) var(--theme-l-700) c h);
  175. --theme-danger-800: oklch(from var(--theme-danger) var(--theme-l-800) c h);
  176. --theme-danger-900: oklch(from var(--theme-danger) var(--theme-l-900) c h);
  177. --theme-danger-950: oklch(from var(--theme-danger) var(--theme-l-950) c h);
  178. --theme-secondary-color: var(--theme-secondary-500);
  179. --theme-secondary-contrast-color: var(--p-primary-contrast-color);
  180. --theme-secondary-hover-color: var(--theme-secondary-700);
  181. --theme-secondary-active-color: var(--theme-secondary-900);
  182. --theme-secondary-highlight-background: var(--theme-secondary-50);
  183. --theme-secondary-highlight-color: var(--theme-secondary-700);
  184. --theme-secondary-highlight-focus-background: var(--theme-secondary-100);
  185. --theme-secondary-highlight-focus-color: var(--theme-secondary-800);
  186. --theme-success-color: var(--theme-success-500);
  187. --theme-success-contrast-color: var(--p-primary-contrast-color);
  188. --theme-success-hover-color: var(--theme-success-700);
  189. --theme-success-active-color: var(--theme-success-900);
  190. --theme-success-highlight-background: var(--theme-success-50);
  191. --theme-success-highlight-color: var(--theme-success-700);
  192. --theme-success-highlight-focus-background: var(--theme-success-100);
  193. --theme-success-highlight-focus-color: var(--theme-success-800);
  194. --theme-info-color: var(--theme-info-500);
  195. --theme-info-contrast-color: var(--p-primary-contrast-color);
  196. --theme-info-hover-color: var(--theme-info-700);
  197. --theme-info-active-color: var(--theme-info-900);
  198. --theme-info-highlight-background: var(--theme-info-50);
  199. --theme-info-highlight-color: var(--theme-info-700);
  200. --theme-info-highlight-focus-background: var(--theme-info-100);
  201. --theme-info-highlight-focus-color: var(--theme-info-800);
  202. --theme-warn-color: var(--theme-warn-500);
  203. --theme-warn-contrast-color: var(--p-primary-contrast-color);
  204. --theme-warn-hover-color: var(--theme-warn-700);
  205. --theme-warn-active-color: var(--theme-warn-900);
  206. --theme-warn-highlight-background: var(--theme-warn-50);
  207. --theme-warn-highlight-color: var(--theme-warn-700);
  208. --theme-warn-highlight-focus-background: var(--theme-warn-100);
  209. --theme-warn-highlight-focus-color: var(--theme-warn-800);
  210. --theme-help-color: var(--theme-help-500);
  211. --theme-help-contrast-color: var(--p-primary-contrast-color);
  212. --theme-help-hover-color: var(--theme-help-700);
  213. --theme-help-active-color: var(--theme-help-900);
  214. --theme-help-highlight-background: var(--theme-help-50);
  215. --theme-help-highlight-color: var(--theme-help-700);
  216. --theme-help-highlight-focus-background: var(--theme-help-100);
  217. --theme-help-highlight-focus-color: var(--theme-help-800);
  218. --theme-danger-color: var(--theme-danger-500);
  219. --theme-danger-contrast-color: var(--p-primary-contrast-color);
  220. --theme-danger-hover-color: var(--theme-danger-700);
  221. --theme-danger-active-color: var(--theme-danger-900);
  222. --theme-danger-highlight-background: var(--theme-danger-50);
  223. --theme-danger-highlight-color: var(--theme-danger-700);
  224. --theme-danger-highlight-focus-background: var(--theme-danger-100);
  225. --theme-danger-highlight-focus-color: var(--theme-danger-800);
  226. }
  227. @media (prefers-color-scheme: dark) {
  228. :root {
  229. --theme-secondary-color: var(--theme-secondary-400);
  230. --theme-secondary-contrast-color: var(--p-surface-900);
  231. --theme-secondary-hover-color: var(--theme-secondary-200);
  232. --theme-secondary-active-color: var(--theme-secondary-50);
  233. --theme-success-color: var(--theme-success-400);
  234. --theme-success-contrast-color: var(--p-surface-900);
  235. --theme-success-hover-color: var(--theme-success-200);
  236. --theme-success-active-color: var(--theme-success-50);
  237. --theme-info-color: var(--theme-info-400);
  238. --theme-info-contrast-color: var(--p-surface-900);
  239. --theme-info-hover-color: var(--theme-info-200);
  240. --theme-info-active-color: var(--theme-info-50);
  241. --theme-warn-color: var(--theme-warn-400);
  242. --theme-warn-contrast-color: var(--p-surface-900);
  243. --theme-warn-hover-color: var(--theme-warn-200);
  244. --theme-warn-active-color: var(--theme-warn-50);
  245. --theme-help-color: var(--theme-help-400);
  246. --theme-help-contrast-color: var(--p-surface-900);
  247. --theme-help-hover-color: var(--theme-help-200);
  248. --theme-help-active-color: var(--theme-help-50);
  249. --theme-danger-color: var(--theme-danger-400);
  250. --theme-danger-contrast-color: var(--p-surface-900);
  251. --theme-danger-hover-color: var(--theme-danger-200);
  252. --theme-danger-active-color: var(--theme-danger-50);
  253. }
  254. }
  255. @theme inline {
  256. --color-secondary: var(--theme-secondary-color);
  257. --color-secondary-emphasis: var(--theme-secondary-hover-color);
  258. --color-secondary-emphasis-alt: var(--theme-secondary-active-color);
  259. --color-secondary-contrast: var(--theme-secondary-contrast-color);
  260. --color-secondary-50: var(--theme-secondary-50);
  261. --color-secondary-100: var(--theme-secondary-100);
  262. --color-secondary-200: var(--theme-secondary-200);
  263. --color-secondary-300: var(--theme-secondary-300);
  264. --color-secondary-400: var(--theme-secondary-400);
  265. --color-secondary-500: var(--theme-secondary-500);
  266. --color-secondary-600: var(--theme-secondary-600);
  267. --color-secondary-700: var(--theme-secondary-700);
  268. --color-secondary-800: var(--theme-secondary-800);
  269. --color-secondary-900: var(--theme-secondary-900);
  270. --color-secondary-950: var(--theme-secondary-950);
  271. --color-success: var(--theme-success-color);
  272. --color-success-emphasis: var(--theme-success-hover-color);
  273. --color-success-emphasis-alt: var(--theme-success-active-color);
  274. --color-success-contrast: var(--theme-success-contrast-color);
  275. --color-success-50: var(--theme-success-50);
  276. --color-success-100: var(--theme-success-100);
  277. --color-success-200: var(--theme-success-200);
  278. --color-success-300: var(--theme-success-300);
  279. --color-success-400: var(--theme-success-400);
  280. --color-success-500: var(--theme-success-500);
  281. --color-success-600: var(--theme-success-600);
  282. --color-success-700: var(--theme-success-700);
  283. --color-success-800: var(--theme-success-800);
  284. --color-success-900: var(--theme-success-900);
  285. --color-success-950: var(--theme-success-950);
  286. --color-info: var(--theme-info-color);
  287. --color-info-emphasis: var(--theme-info-hover-color);
  288. --color-info-emphasis-alt: var(--theme-info-active-color);
  289. --color-info-contrast: var(--theme-info-contrast-color);
  290. --color-info-50: var(--theme-info-50);
  291. --color-info-100: var(--theme-info-100);
  292. --color-info-200: var(--theme-info-200);
  293. --color-info-300: var(--theme-info-300);
  294. --color-info-400: var(--theme-info-400);
  295. --color-info-500: var(--theme-info-500);
  296. --color-info-600: var(--theme-info-600);
  297. --color-info-700: var(--theme-info-700);
  298. --color-info-800: var(--theme-info-800);
  299. --color-info-900: var(--theme-info-900);
  300. --color-info-950: var(--theme-info-950);
  301. --color-warn: var(--theme-warn-color);
  302. --color-warn-emphasis: var(--theme-warn-hover-color);
  303. --color-warn-emphasis-alt: var(--theme-warn-active-color);
  304. --color-warn-contrast: var(--theme-warn-contrast-color);
  305. --color-warn-50: var(--theme-warn-50);
  306. --color-warn-100: var(--theme-warn-100);
  307. --color-warn-200: var(--theme-warn-200);
  308. --color-warn-300: var(--theme-warn-300);
  309. --color-warn-400: var(--theme-warn-400);
  310. --color-warn-500: var(--theme-warn-500);
  311. --color-warn-600: var(--theme-warn-600);
  312. --color-warn-700: var(--theme-warn-700);
  313. --color-warn-800: var(--theme-warn-800);
  314. --color-warn-900: var(--theme-warn-900);
  315. --color-warn-950: var(--theme-warn-950);
  316. --color-help: var(--theme-help-color);
  317. --color-help-emphasis: var(--theme-help-hover-color);
  318. --color-help-emphasis-alt: var(--theme-help-active-color);
  319. --color-help-contrast: var(--theme-help-contrast-color);
  320. --color-help-50: var(--theme-help-50);
  321. --color-help-100: var(--theme-help-100);
  322. --color-help-200: var(--theme-help-200);
  323. --color-help-300: var(--theme-help-300);
  324. --color-help-400: var(--theme-help-400);
  325. --color-help-500: var(--theme-help-500);
  326. --color-help-600: var(--theme-help-600);
  327. --color-help-700: var(--theme-help-700);
  328. --color-help-800: var(--theme-help-800);
  329. --color-help-900: var(--theme-help-900);
  330. --color-help-950: var(--theme-help-950);
  331. --color-danger: var(--theme-danger-color);
  332. --color-danger-emphasis: var(--theme-danger-hover-color);
  333. --color-danger-emphasis-alt: var(--theme-danger-active-color);
  334. --color-danger-contrast: var(--theme-danger-contrast-color);
  335. --color-danger-50: var(--theme-danger-50);
  336. --color-danger-100: var(--theme-danger-100);
  337. --color-danger-200: var(--theme-danger-200);
  338. --color-danger-300: var(--theme-danger-300);
  339. --color-danger-400: var(--theme-danger-400);
  340. --color-danger-500: var(--theme-danger-500);
  341. --color-danger-600: var(--theme-danger-600);
  342. --color-danger-700: var(--theme-danger-700);
  343. --color-danger-800: var(--theme-danger-800);
  344. --color-danger-900: var(--theme-danger-900);
  345. --color-danger-950: var(--theme-danger-950);
  346. }
  347. @custom-variant p-secondary {
  348. &:where([data-p-severity~="secondary"], [data-p~="secondary"]) {
  349. @slot;
  350. }
  351. }
  352. @custom-variant p-contrast {
  353. &:where([data-p-severity~="contrast"], [data-p~="contrast"]) {
  354. @slot;
  355. }
  356. }
  357. @custom-variant p-success {
  358. &:where([data-p-severity~="success"], [data-p~="success"]) {
  359. @slot;
  360. }
  361. }
  362. @custom-variant p-info {
  363. &:where([data-p-severity~="info"], [data-p~="info"]) {
  364. @slot;
  365. }
  366. }
  367. @custom-variant p-warn {
  368. &:where([data-p-severity~="warn"], [data-p~="warn"]) {
  369. @slot;
  370. }
  371. }
  372. @custom-variant p-help {
  373. &:where([data-p-severity~="help"], [data-p~="help"]) {
  374. @slot;
  375. }
  376. }
  377. @custom-variant p-danger {
  378. &:where([data-p-severity~="danger"], [data-p~="danger"]) {
  379. @slot;
  380. }
  381. }
  382. @custom-variant p-error {
  383. &:where([data-p-severity~="error"], [data-p~="error"]) {
  384. @slot;
  385. }
  386. }