mailgun.js 5.0.3 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +15 -3
  3. package/client.d.ts +29 -0
  4. package/domains.d.ts +54 -0
  5. package/domainsCredentials.d.ts +14 -0
  6. package/domainsTags.d.ts +34 -0
  7. package/domainsTemplates.d.ts +35 -0
  8. package/error.d.ts +7 -0
  9. package/events.d.ts +13 -0
  10. package/index.d.ts +9 -0
  11. package/interfaces/APIErrorOptions.d.ts +11 -0
  12. package/{lib/interfaces/ApiResponse.ts → interfaces/ApiResponse.d.ts} +1 -2
  13. package/{lib/interfaces/DomainCredentials.ts → interfaces/DomainCredentials.d.ts} +14 -30
  14. package/{lib/interfaces/DomainTags.ts → interfaces/DomainTags.d.ts} +49 -82
  15. package/{lib/interfaces/DomainTemplates.ts → interfaces/DomainTemplates.d.ts} +35 -79
  16. package/{lib/interfaces/DomainTracking.ts → interfaces/DomainTracking.d.ts} +18 -17
  17. package/{lib/interfaces/Domains.ts → interfaces/Domains.d.ts} +29 -50
  18. package/{lib/interfaces/Events.ts → interfaces/Events.d.ts} +11 -12
  19. package/{lib/interfaces/IFormData.ts → interfaces/IFormData.d.ts} +2 -4
  20. package/interfaces/IMailgunClient.d.ts +24 -0
  21. package/interfaces/IpPools.d.ts +19 -0
  22. package/interfaces/Ips.d.ts +10 -0
  23. package/interfaces/Messages.d.ts +165 -0
  24. package/{lib/interfaces/MultipleValidation.ts → interfaces/MultipleValidation.d.ts} +9 -16
  25. package/interfaces/Options.d.ts +8 -0
  26. package/{lib/interfaces/RequestOptions.ts → interfaces/RequestOptions.d.ts} +2 -4
  27. package/interfaces/StatsOptions.d.ts +22 -0
  28. package/interfaces/Supressions.d.ts +103 -0
  29. package/{lib/interfaces/Validate.ts → interfaces/Validate.d.ts} +0 -3
  30. package/{lib/interfaces/Webhooks.ts → interfaces/Webhooks.d.ts} +11 -17
  31. package/{lib/interfaces/lists.ts → interfaces/lists.d.ts} +1 -5
  32. package/{lib/interfaces/mailListMembers.ts → interfaces/mailListMembers.d.ts} +8 -23
  33. package/{lib/interfaces/routes.ts → interfaces/routes.d.ts} +1 -6
  34. package/ip-pools.d.ts +21 -0
  35. package/ips.d.ts +9 -0
  36. package/lists.d.ts +14 -0
  37. package/mailListMembers.d.ts +14 -0
  38. package/mailgun.node.js +3 -0
  39. package/{dist/mailgun.node.js.LICENSE.txt → mailgun.node.js.LICENSE.txt} +1 -1
  40. package/mailgun.web.js +3 -0
  41. package/{dist/mailgun.web.js.LICENSE.txt → mailgun.web.js.LICENSE.txt} +1 -1
  42. package/messages.d.ts +8 -0
  43. package/multipleValidation.d.ts +10 -0
  44. package/package.json +8 -81
  45. package/request.d.ts +31 -0
  46. package/routes.d.ts +11 -0
  47. package/stats.d.ts +20 -0
  48. package/suppressions.d.ts +50 -0
  49. package/validate.d.ts +9 -0
  50. package/version.md +1 -0
  51. package/webhooks.d.ts +32 -0
  52. package/.editorconfig +0 -10
  53. package/.eslintrc +0 -56
  54. package/.husky/commit-msg +0 -4
  55. package/.travis.yml +0 -5
  56. package/LICENSE +0 -191
  57. package/commitlint.config.js +0 -7
  58. package/dist/mailgun.js.d.ts +0 -1586
  59. package/dist/mailgun.node.js +0 -3
  60. package/dist/mailgun.web.js +0 -3
  61. package/docs/.nojekyll +0 -1
  62. package/docs/assets/highlight.css +0 -127
  63. package/docs/assets/icons.css +0 -1043
  64. package/docs/assets/icons.png +0 -0
  65. package/docs/assets/icons@2x.png +0 -0
  66. package/docs/assets/main.js +0 -52
  67. package/docs/assets/search.js +0 -1
  68. package/docs/assets/style.css +0 -1413
  69. package/docs/assets/widgets.png +0 -0
  70. package/docs/assets/widgets@2x.png +0 -0
  71. package/docs/classes/client.default.html +0 -1
  72. package/docs/classes/domains.Domain.html +0 -1
  73. package/docs/classes/domains.default.html +0 -1
  74. package/docs/classes/domainsCredentials.default.html +0 -1
  75. package/docs/classes/domainsTemplates.DomainTemplateItem.html +0 -1
  76. package/docs/classes/domainsTemplates.default.html +0 -1
  77. package/docs/classes/error.default.html +0 -6
  78. package/docs/classes/events.default.html +0 -1
  79. package/docs/classes/ip_pools.default.html +0 -1
  80. package/docs/classes/ips.default.html +0 -1
  81. package/docs/classes/lists.default.html +0 -1
  82. package/docs/classes/mailListMembers.default.html +0 -1
  83. package/docs/classes/messages.default.html +0 -1
  84. package/docs/classes/multipleValidation.default.html +0 -1
  85. package/docs/classes/request.default.html +0 -1
  86. package/docs/classes/routes.default.html +0 -1
  87. package/docs/classes/stats.default.html +0 -1
  88. package/docs/classes/suppressions.default.html +0 -1
  89. package/docs/classes/validate.default.html +0 -1
  90. package/docs/classes/webhooks.default.html +0 -1
  91. package/docs/enums/interfaces_DomainTemplates.Pages.html +0 -1
  92. package/docs/enums/interfaces_DomainTemplates.YesNo.html +0 -1
  93. package/docs/index.html +0 -1140
  94. package/docs/interfaces/interfaces_APIErrorOptions.default.html +0 -1
  95. package/docs/interfaces/interfaces_ApiResponse.default.html +0 -1
  96. package/docs/interfaces/interfaces_DomainCredentials.CreatedUpdatedDomainCredentialsResponse.html +0 -1
  97. package/docs/interfaces/interfaces_DomainCredentials.DeletedDomainCredentialsResponse.html +0 -1
  98. package/docs/interfaces/interfaces_DomainCredentials.DomainCredentials.html +0 -1
  99. package/docs/interfaces/interfaces_DomainCredentials.DomainCredentialsItem.html +0 -1
  100. package/docs/interfaces/interfaces_DomainCredentials.DomainCredentialsList.html +0 -1
  101. package/docs/interfaces/interfaces_DomainCredentials.DomainCredentialsQuery.html +0 -1
  102. package/docs/interfaces/interfaces_DomainCredentials.DomainCredentialsResponseData.html +0 -1
  103. package/docs/interfaces/interfaces_DomainCredentials.DomainCredentialsResult.html +0 -1
  104. package/docs/interfaces/interfaces_DomainCredentials.IDomainCredentials.html +0 -1
  105. package/docs/interfaces/interfaces_DomainCredentials.UpdateDomainCredentialsData.html +0 -1
  106. package/docs/interfaces/interfaces_DomainTemplates.CreateDomainTemplateAPIResponse.html +0 -1
  107. package/docs/interfaces/interfaces_DomainTemplates.CreateDomainTemplateVersionAPIResponse.html +0 -1
  108. package/docs/interfaces/interfaces_DomainTemplates.CreateDomainTemplateVersionResult.html +0 -1
  109. package/docs/interfaces/interfaces_DomainTemplates.DomainTemplate.html +0 -1
  110. package/docs/interfaces/interfaces_DomainTemplates.DomainTemplateData.html +0 -1
  111. package/docs/interfaces/interfaces_DomainTemplates.DomainTemplateUpdateData.html +0 -1
  112. package/docs/interfaces/interfaces_DomainTemplates.DomainTemplateUpdateVersionData.html +0 -1
  113. package/docs/interfaces/interfaces_DomainTemplates.DomainTemplateVersionData.html +0 -1
  114. package/docs/interfaces/interfaces_DomainTemplates.DomainTemplatesQuery.html +0 -1
  115. package/docs/interfaces/interfaces_DomainTemplates.GetDomainTemplateAPIResponse.html +0 -1
  116. package/docs/interfaces/interfaces_DomainTemplates.IDomainTemplatesClient.html +0 -1
  117. package/docs/interfaces/interfaces_DomainTemplates.ListDomainTemplateVersionsAPIResponse.html +0 -1
  118. package/docs/interfaces/interfaces_DomainTemplates.ListDomainTemplateVersionsResult.html +0 -1
  119. package/docs/interfaces/interfaces_DomainTemplates.ListDomainTemplatesAPIResponse.html +0 -1
  120. package/docs/interfaces/interfaces_DomainTemplates.ListDomainTemplatesResult.html +0 -1
  121. package/docs/interfaces/interfaces_DomainTemplates.MutateDomainTemplateVersionAPIResponse.html +0 -1
  122. package/docs/interfaces/interfaces_DomainTemplates.MutateDomainTemplateVersionResult.html +0 -1
  123. package/docs/interfaces/interfaces_DomainTemplates.NotificationAPIResponse.html +0 -1
  124. package/docs/interfaces/interfaces_DomainTemplates.NotificationResult.html +0 -1
  125. package/docs/interfaces/interfaces_DomainTemplates.ShortTemplateVersion.html +0 -1
  126. package/docs/interfaces/interfaces_DomainTemplates.TemplateQuery.html +0 -1
  127. package/docs/interfaces/interfaces_DomainTemplates.TemplateVersion.html +0 -1
  128. package/docs/interfaces/interfaces_DomainTemplates.UpdateOrDeleteDomainTemplateAPIResponse.html +0 -1
  129. package/docs/interfaces/interfaces_DomainTemplates.UpdateOrDeleteDomainTemplateResult.html +0 -1
  130. package/docs/interfaces/interfaces_DomainTracking.ClickTrackingInfo.html +0 -1
  131. package/docs/interfaces/interfaces_DomainTracking.DomainTrackingData.html +0 -1
  132. package/docs/interfaces/interfaces_DomainTracking.DomainTrackingResponse.html +0 -1
  133. package/docs/interfaces/interfaces_DomainTracking.OpenTrackingInfo.html +0 -1
  134. package/docs/interfaces/interfaces_DomainTracking.UnsubscribeTrackingInfo.html +0 -1
  135. package/docs/interfaces/interfaces_DomainTracking.UpdateDomainTrackingResponse.html +0 -1
  136. package/docs/interfaces/interfaces_DomainTracking.UpdatedOpenTracking.html +0 -1
  137. package/docs/interfaces/interfaces_Domains.ConnectionSettings.html +0 -1
  138. package/docs/interfaces/interfaces_Domains.ConnectionSettingsResponse.html +0 -1
  139. package/docs/interfaces/interfaces_Domains.DKIMAuthorityInfo.html +0 -1
  140. package/docs/interfaces/interfaces_Domains.DKIMSelectorInfo.html +0 -1
  141. package/docs/interfaces/interfaces_Domains.DNSRecord.html +0 -1
  142. package/docs/interfaces/interfaces_Domains.DestroyedDomainResponse.html +0 -1
  143. package/docs/interfaces/interfaces_Domains.DomainData.html +0 -1
  144. package/docs/interfaces/interfaces_Domains.DomainInfo.html +0 -1
  145. package/docs/interfaces/interfaces_Domains.DomainListResponseData.html +0 -1
  146. package/docs/interfaces/interfaces_Domains.DomainResponseData.html +0 -1
  147. package/docs/interfaces/interfaces_Domains.DomainShortData.html +0 -1
  148. package/docs/interfaces/interfaces_Domains.DomainsListItem.html +0 -1
  149. package/docs/interfaces/interfaces_Domains.DomainsQuery.html +0 -1
  150. package/docs/interfaces/interfaces_Domains.MessageResponse.html +0 -1
  151. package/docs/interfaces/interfaces_Domains.ReplacementForPool.html +0 -1
  152. package/docs/interfaces/interfaces_Domains.UpdatedConnectionSettings.html +0 -1
  153. package/docs/interfaces/interfaces_Domains.UpdatedConnectionSettingsRes.html +0 -1
  154. package/docs/interfaces/interfaces_Domains.UpdatedDKIMAuthority.html +0 -1
  155. package/docs/interfaces/interfaces_Domains.UpdatedDKIMAuthorityResponse.html +0 -1
  156. package/docs/interfaces/interfaces_Domains.UpdatedDKIMSelectorResponse.html +0 -1
  157. package/docs/interfaces/interfaces_Domains.UpdatedWebPrefix.html +0 -1
  158. package/docs/interfaces/interfaces_Domains.UpdatedWebPrefixResponse.html +0 -1
  159. package/docs/interfaces/interfaces_Domains.WebPrefixInfo.html +0 -1
  160. package/docs/interfaces/interfaces_Events.DomainEvent.html +0 -1
  161. package/docs/interfaces/interfaces_Events.EventsList.html +0 -1
  162. package/docs/interfaces/interfaces_Events.EventsPage.html +0 -1
  163. package/docs/interfaces/interfaces_Events.EventsResponse.html +0 -1
  164. package/docs/interfaces/interfaces_Events.PagesList.html +0 -1
  165. package/docs/interfaces/interfaces_Events.PagesListAccumulator.html +0 -1
  166. package/docs/interfaces/interfaces_Events.ParsedPage.html +0 -1
  167. package/docs/interfaces/interfaces_Events.ParsedPagesList.html +0 -1
  168. package/docs/interfaces/interfaces_IFormData.IFormDataOptions.html +0 -1
  169. package/docs/interfaces/interfaces_IFormData.InputFormData.html +0 -1
  170. package/docs/interfaces/interfaces_IpPools.IpPool.html +0 -1
  171. package/docs/interfaces/interfaces_IpPools.IpPoolListResponse.html +0 -1
  172. package/docs/interfaces/interfaces_IpPools.IpPoolUpdateData.html +0 -1
  173. package/docs/interfaces/interfaces_Ips.IpData.html +0 -1
  174. package/docs/interfaces/interfaces_Ips.IpsListResponseBody.html +0 -1
  175. package/docs/interfaces/interfaces_MultipleValidation.CanceledMultipleValidationJob.html +0 -1
  176. package/docs/interfaces/interfaces_MultipleValidation.CreatedMultipleValidationJob.html +0 -1
  177. package/docs/interfaces/interfaces_MultipleValidation.IMultipleValidationClient.html +0 -1
  178. package/docs/interfaces/interfaces_MultipleValidation.MultipleValidationJob.html +0 -1
  179. package/docs/interfaces/interfaces_MultipleValidation.MultipleValidationJobsListResponse.html +0 -1
  180. package/docs/interfaces/interfaces_MultipleValidation.MultipleValidationJobsListResult.html +0 -1
  181. package/docs/interfaces/interfaces_MultipleValidation.PagesList.html +0 -1
  182. package/docs/interfaces/interfaces_Options.default.html +0 -1
  183. package/docs/interfaces/interfaces_RequestOptions.default.html +0 -1
  184. package/docs/interfaces/interfaces_StatsOptions.Stat.html +0 -1
  185. package/docs/interfaces/interfaces_StatsOptions.StatsOptions.html +0 -1
  186. package/docs/interfaces/interfaces_StatsOptions.StatsQuery.html +0 -1
  187. package/docs/interfaces/interfaces_Supressions.BounceData.html +0 -1
  188. package/docs/interfaces/interfaces_Supressions.ComplaintData.html +0 -1
  189. package/docs/interfaces/interfaces_Supressions.UnsubscribeData.html +0 -1
  190. package/docs/interfaces/interfaces_Supressions.WhiteListData.html +0 -1
  191. package/docs/interfaces/interfaces_Validate.ValidationResponse.html +0 -1
  192. package/docs/interfaces/interfaces_Validate.ValidationResult.html +0 -1
  193. package/docs/interfaces/interfaces_Webhooks.APIWebhook.html +0 -1
  194. package/docs/interfaces/interfaces_Webhooks.ValidationResponse.html +0 -1
  195. package/docs/interfaces/interfaces_Webhooks.WebhookList.html +0 -1
  196. package/docs/interfaces/interfaces_Webhooks.WebhookResponse.html +0 -1
  197. package/docs/interfaces/interfaces_Webhooks.WebhookResponseBody.html +0 -1
  198. package/docs/interfaces/interfaces_Webhooks.WebhooksQuery.html +0 -1
  199. package/docs/interfaces/interfaces_lists.CreateUpdateList.html +0 -1
  200. package/docs/interfaces/interfaces_lists.DestroyedList.html +0 -1
  201. package/docs/interfaces/interfaces_lists.ListsQuery.html +0 -1
  202. package/docs/interfaces/interfaces_lists.MailingList.html +0 -1
  203. package/docs/interfaces/interfaces_mailListMembers.CreateUpdateMailListMembers.html +0 -1
  204. package/docs/interfaces/interfaces_mailListMembers.CreateUpdateMailListMembersReq.html +0 -1
  205. package/docs/interfaces/interfaces_mailListMembers.DeletedMember.html +0 -1
  206. package/docs/interfaces/interfaces_mailListMembers.IMailListsMembers.html +0 -1
  207. package/docs/interfaces/interfaces_mailListMembers.MailListMember.html +0 -1
  208. package/docs/interfaces/interfaces_mailListMembers.MailListMembersQuery.html +0 -1
  209. package/docs/interfaces/interfaces_mailListMembers.MultipleMembersData.html +0 -1
  210. package/docs/interfaces/interfaces_mailListMembers.MultipleMembersReqData.html +0 -1
  211. package/docs/interfaces/interfaces_mailListMembers.NewMultipleMembersResponse.html +0 -1
  212. package/docs/interfaces/interfaces_routes.CreateUpdateRouteData.html +0 -1
  213. package/docs/interfaces/interfaces_routes.DestroyRouteResponse.html +0 -1
  214. package/docs/interfaces/interfaces_routes.Route.html +0 -1
  215. package/docs/interfaces/interfaces_routes.RoutesListQuery.html +0 -1
  216. package/docs/interfaces/interfaces_routes.UpdateRouteResponse.html +0 -1
  217. package/docs/modules/client.html +0 -1
  218. package/docs/modules/domains.html +0 -1
  219. package/docs/modules/domainsCredentials.html +0 -1
  220. package/docs/modules/domainsTemplates.html +0 -1
  221. package/docs/modules/error.html +0 -1
  222. package/docs/modules/events.html +0 -1
  223. package/docs/modules/interfaces_APIErrorOptions.html +0 -1
  224. package/docs/modules/interfaces_ApiResponse.html +0 -1
  225. package/docs/modules/interfaces_DomainCredentials.html +0 -1
  226. package/docs/modules/interfaces_DomainTemplates.html +0 -1
  227. package/docs/modules/interfaces_DomainTracking.html +0 -1
  228. package/docs/modules/interfaces_Domains.html +0 -1
  229. package/docs/modules/interfaces_Events.html +0 -1
  230. package/docs/modules/interfaces_IFormData.html +0 -1
  231. package/docs/modules/interfaces_IpPools.html +0 -1
  232. package/docs/modules/interfaces_Ips.html +0 -1
  233. package/docs/modules/interfaces_MultipleValidation.html +0 -1
  234. package/docs/modules/interfaces_Options.html +0 -1
  235. package/docs/modules/interfaces_RequestOptions.html +0 -1
  236. package/docs/modules/interfaces_StatsOptions.html +0 -1
  237. package/docs/modules/interfaces_Supressions.html +0 -1
  238. package/docs/modules/interfaces_Validate.html +0 -1
  239. package/docs/modules/interfaces_Webhooks.html +0 -1
  240. package/docs/modules/interfaces_lists.html +0 -1
  241. package/docs/modules/interfaces_mailListMembers.html +0 -1
  242. package/docs/modules/interfaces_routes.html +0 -1
  243. package/docs/modules/ip_pools.html +0 -1
  244. package/docs/modules/ips.html +0 -1
  245. package/docs/modules/lists.html +0 -1
  246. package/docs/modules/mailListMembers.html +0 -1
  247. package/docs/modules/messages.html +0 -1
  248. package/docs/modules/multipleValidation.html +0 -1
  249. package/docs/modules/request.html +0 -1
  250. package/docs/modules/routes.html +0 -1
  251. package/docs/modules/stats.html +0 -1
  252. package/docs/modules/suppressions.html +0 -1
  253. package/docs/modules/validate.html +0 -1
  254. package/docs/modules/webhooks.html +0 -1
  255. package/docs/modules.html +0 -1
  256. package/dts-bundle.js +0 -8
  257. package/examples/addresses.js +0 -20
  258. package/examples/index.html +0 -285
  259. package/examples/list-domains.js +0 -8
  260. package/examples/mailgun.png +0 -0
  261. package/examples/rackspace.png +0 -0
  262. package/examples/send-email.js +0 -24
  263. package/lib/client.ts +0 -79
  264. package/lib/domains.ts +0 -224
  265. package/lib/domainsCredentials.ts +0 -88
  266. package/lib/domainsTags.ts +0 -165
  267. package/lib/domainsTemplates.ts +0 -235
  268. package/lib/error.ts +0 -22
  269. package/lib/events.ts +0 -54
  270. package/lib/index.ts +0 -16
  271. package/lib/interfaces/APIErrorOptions.ts +0 -10
  272. package/lib/interfaces/IpPools.ts +0 -22
  273. package/lib/interfaces/Ips.ts +0 -12
  274. package/lib/interfaces/Options.ts +0 -10
  275. package/lib/interfaces/StatsOptions.ts +0 -25
  276. package/lib/interfaces/Supressions.ts +0 -123
  277. package/lib/ip-pools.ts +0 -36
  278. package/lib/ips.ts +0 -24
  279. package/lib/lists.ts +0 -45
  280. package/lib/mailListMembers.ts +0 -83
  281. package/lib/messages.ts +0 -27
  282. package/lib/multipleValidation.ts +0 -37
  283. package/lib/request.ts +0 -271
  284. package/lib/routes.ts +0 -37
  285. package/lib/stats.ts +0 -62
  286. package/lib/suppressions.ts +0 -253
  287. package/lib/validate.ts +0 -20
  288. package/lib/webhooks.ts +0 -83
  289. package/test/client.test.ts +0 -96
  290. package/test/data/emailsValidation1.csv +0 -3
  291. package/test/domains.test.ts +0 -313
  292. package/test/domainsCredentials.test.ts +0 -97
  293. package/test/domainsTags.test.ts +0 -345
  294. package/test/domainsTemplates.test.ts +0 -392
  295. package/test/error.test.ts +0 -32
  296. package/test/events.test.ts +0 -104
  297. package/test/img/mailgun.png +0 -0
  298. package/test/ips.test.ts +0 -57
  299. package/test/lists.test.ts +0 -100
  300. package/test/mailListMembers.test.ts +0 -198
  301. package/test/messageAttachment.test.ts +0 -50
  302. package/test/messages.test.ts +0 -89
  303. package/test/multipleValidation.test.ts +0 -159
  304. package/test/request.test.ts +0 -103
  305. package/test/routes.test.ts +0 -136
  306. package/test/stats.test.ts +0 -90
  307. package/test/suppressions.test.ts +0 -303
  308. package/test/validate.test.ts +0 -43
  309. package/test/webhooks.test.ts +0 -112
  310. package/tsconfig.json +0 -22
  311. package/tsconfig.webpack.json +0 -10
  312. package/webpack/webpack.common.config.js +0 -46
  313. package/webpack/webpack.dev.config.js +0 -36
  314. package/webpack/webpack.release.config.js +0 -45
@@ -1,127 +0,0 @@
1
- :root {
2
- --light-hl-0: #000000;
3
- --dark-hl-0: #D4D4D4;
4
- --light-hl-1: #0000FF;
5
- --dark-hl-1: #569CD6;
6
- --light-hl-2: #0070C1;
7
- --dark-hl-2: #4FC1FF;
8
- --light-hl-3: #795E26;
9
- --dark-hl-3: #DCDCAA;
10
- --light-hl-4: #A31515;
11
- --dark-hl-4: #CE9178;
12
- --light-hl-5: #001080;
13
- --dark-hl-5: #9CDCFE;
14
- --light-hl-6: #008000;
15
- --dark-hl-6: #6A9955;
16
- --light-hl-7: #AF00DB;
17
- --dark-hl-7: #C586C0;
18
- --light-hl-8: #267F99;
19
- --dark-hl-8: #4EC9B0;
20
- --light-hl-9: #098658;
21
- --dark-hl-9: #B5CEA8;
22
- --light-hl-10: #800000;
23
- --dark-hl-10: #808080;
24
- --light-hl-11: #800000;
25
- --dark-hl-11: #569CD6;
26
- --light-hl-12: #FF0000;
27
- --dark-hl-12: #9CDCFE;
28
- --light-hl-13: #000000;
29
- --dark-hl-13: #C8C8C8;
30
- --light-hl-14: #EE0000;
31
- --dark-hl-14: #D7BA7D;
32
- --light-code-background: #F5F5F5;
33
- --dark-code-background: #1E1E1E;
34
- }
35
-
36
- @media (prefers-color-scheme: light) { :root {
37
- --hl-0: var(--light-hl-0);
38
- --hl-1: var(--light-hl-1);
39
- --hl-2: var(--light-hl-2);
40
- --hl-3: var(--light-hl-3);
41
- --hl-4: var(--light-hl-4);
42
- --hl-5: var(--light-hl-5);
43
- --hl-6: var(--light-hl-6);
44
- --hl-7: var(--light-hl-7);
45
- --hl-8: var(--light-hl-8);
46
- --hl-9: var(--light-hl-9);
47
- --hl-10: var(--light-hl-10);
48
- --hl-11: var(--light-hl-11);
49
- --hl-12: var(--light-hl-12);
50
- --hl-13: var(--light-hl-13);
51
- --hl-14: var(--light-hl-14);
52
- --code-background: var(--light-code-background);
53
- } }
54
-
55
- @media (prefers-color-scheme: dark) { :root {
56
- --hl-0: var(--dark-hl-0);
57
- --hl-1: var(--dark-hl-1);
58
- --hl-2: var(--dark-hl-2);
59
- --hl-3: var(--dark-hl-3);
60
- --hl-4: var(--dark-hl-4);
61
- --hl-5: var(--dark-hl-5);
62
- --hl-6: var(--dark-hl-6);
63
- --hl-7: var(--dark-hl-7);
64
- --hl-8: var(--dark-hl-8);
65
- --hl-9: var(--dark-hl-9);
66
- --hl-10: var(--dark-hl-10);
67
- --hl-11: var(--dark-hl-11);
68
- --hl-12: var(--dark-hl-12);
69
- --hl-13: var(--dark-hl-13);
70
- --hl-14: var(--dark-hl-14);
71
- --code-background: var(--dark-code-background);
72
- } }
73
-
74
- body.light {
75
- --hl-0: var(--light-hl-0);
76
- --hl-1: var(--light-hl-1);
77
- --hl-2: var(--light-hl-2);
78
- --hl-3: var(--light-hl-3);
79
- --hl-4: var(--light-hl-4);
80
- --hl-5: var(--light-hl-5);
81
- --hl-6: var(--light-hl-6);
82
- --hl-7: var(--light-hl-7);
83
- --hl-8: var(--light-hl-8);
84
- --hl-9: var(--light-hl-9);
85
- --hl-10: var(--light-hl-10);
86
- --hl-11: var(--light-hl-11);
87
- --hl-12: var(--light-hl-12);
88
- --hl-13: var(--light-hl-13);
89
- --hl-14: var(--light-hl-14);
90
- --code-background: var(--light-code-background);
91
- }
92
-
93
- body.dark {
94
- --hl-0: var(--dark-hl-0);
95
- --hl-1: var(--dark-hl-1);
96
- --hl-2: var(--dark-hl-2);
97
- --hl-3: var(--dark-hl-3);
98
- --hl-4: var(--dark-hl-4);
99
- --hl-5: var(--dark-hl-5);
100
- --hl-6: var(--dark-hl-6);
101
- --hl-7: var(--dark-hl-7);
102
- --hl-8: var(--dark-hl-8);
103
- --hl-9: var(--dark-hl-9);
104
- --hl-10: var(--dark-hl-10);
105
- --hl-11: var(--dark-hl-11);
106
- --hl-12: var(--dark-hl-12);
107
- --hl-13: var(--dark-hl-13);
108
- --hl-14: var(--dark-hl-14);
109
- --code-background: var(--dark-code-background);
110
- }
111
-
112
- .hl-0 { color: var(--hl-0); }
113
- .hl-1 { color: var(--hl-1); }
114
- .hl-2 { color: var(--hl-2); }
115
- .hl-3 { color: var(--hl-3); }
116
- .hl-4 { color: var(--hl-4); }
117
- .hl-5 { color: var(--hl-5); }
118
- .hl-6 { color: var(--hl-6); }
119
- .hl-7 { color: var(--hl-7); }
120
- .hl-8 { color: var(--hl-8); }
121
- .hl-9 { color: var(--hl-9); }
122
- .hl-10 { color: var(--hl-10); }
123
- .hl-11 { color: var(--hl-11); }
124
- .hl-12 { color: var(--hl-12); }
125
- .hl-13 { color: var(--hl-13); }
126
- .hl-14 { color: var(--hl-14); }
127
- pre, code { background: var(--code-background); }