prism.js 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  1. export const light = {
  2. 'code[class*="language-"]': {
  3. background: "hsl(230, 1%, 98%)",
  4. color: "hsl(230, 8%, 24%)",
  5. fontFamily:
  6. '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
  7. direction: "ltr",
  8. textAlign: "left",
  9. whiteSpace: "pre",
  10. wordSpacing: "normal",
  11. wordBreak: "normal",
  12. lineHeight: "1.5",
  13. MozTabSize: "2",
  14. OTabSize: "2",
  15. tabSize: "2",
  16. WebkitHyphens: "none",
  17. MozHyphens: "none",
  18. msHyphens: "none",
  19. hyphens: "none",
  20. },
  21. 'pre[class*="language-"]': {
  22. background: "hsl(230, 1%, 98%)",
  23. color: "hsl(230, 8%, 24%)",
  24. fontFamily:
  25. '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
  26. direction: "ltr",
  27. textAlign: "left",
  28. whiteSpace: "pre",
  29. wordSpacing: "normal",
  30. wordBreak: "normal",
  31. lineHeight: "1.5",
  32. MozTabSize: "2",
  33. OTabSize: "2",
  34. tabSize: "2",
  35. WebkitHyphens: "none",
  36. MozHyphens: "none",
  37. msHyphens: "none",
  38. hyphens: "none",
  39. padding: "1em",
  40. margin: "0.5em 0",
  41. overflow: "auto",
  42. borderRadius: "0.3em",
  43. },
  44. 'code[class*="language-"]::-moz-selection': {
  45. background: "hsl(230, 1%, 90%)",
  46. color: "inherit",
  47. },
  48. 'code[class*="language-"] *::-moz-selection': {
  49. background: "hsl(230, 1%, 90%)",
  50. color: "inherit",
  51. },
  52. 'pre[class*="language-"] *::-moz-selection': {
  53. background: "hsl(230, 1%, 90%)",
  54. color: "inherit",
  55. },
  56. 'code[class*="language-"]::selection': {
  57. background: "hsl(230, 1%, 90%)",
  58. color: "inherit",
  59. },
  60. 'code[class*="language-"] *::selection': {
  61. background: "hsl(230, 1%, 90%)",
  62. color: "inherit",
  63. },
  64. 'pre[class*="language-"] *::selection': {
  65. background: "hsl(230, 1%, 90%)",
  66. color: "inherit",
  67. },
  68. ':not(pre) > code[class*="language-"]': {
  69. padding: "0.2em 0.3em",
  70. borderRadius: "0.3em",
  71. whiteSpace: "normal",
  72. },
  73. comment: {
  74. color: "hsl(230, 4%, 64%)",
  75. fontStyle: "italic",
  76. },
  77. prolog: {
  78. color: "hsl(230, 4%, 64%)",
  79. },
  80. cdata: {
  81. color: "hsl(230, 4%, 64%)",
  82. },
  83. doctype: {
  84. color: "hsl(230, 8%, 24%)",
  85. },
  86. punctuation: {
  87. color: "hsl(230, 8%, 24%)",
  88. },
  89. entity: {
  90. color: "hsl(230, 8%, 24%)",
  91. cursor: "help",
  92. },
  93. "attr-name": {
  94. color: "hsl(35, 99%, 36%)",
  95. },
  96. "class-name": {
  97. color: "hsl(35, 99%, 36%)",
  98. },
  99. boolean: {
  100. color: "hsl(35, 99%, 36%)",
  101. },
  102. constant: {
  103. color: "hsl(35, 99%, 36%)",
  104. },
  105. number: {
  106. color: "hsl(35, 99%, 36%)",
  107. },
  108. atrule: {
  109. color: "hsl(35, 99%, 36%)",
  110. },
  111. keyword: {
  112. color: "hsl(301, 63%, 40%)",
  113. },
  114. property: {
  115. color: "hsl(5, 74%, 59%)",
  116. },
  117. tag: {
  118. color: "hsl(5, 74%, 59%)",
  119. },
  120. symbol: {
  121. color: "hsl(5, 74%, 59%)",
  122. },
  123. deleted: {
  124. color: "hsl(5, 74%, 59%)",
  125. },
  126. important: {
  127. color: "hsl(5, 74%, 59%)",
  128. },
  129. selector: {
  130. color: "hsl(119, 34%, 47%)",
  131. },
  132. string: {
  133. color: "hsl(119, 34%, 47%)",
  134. },
  135. char: {
  136. color: "hsl(119, 34%, 47%)",
  137. },
  138. builtin: {
  139. color: "hsl(119, 34%, 47%)",
  140. },
  141. inserted: {
  142. color: "hsl(119, 34%, 47%)",
  143. },
  144. regex: {
  145. color: "hsl(119, 34%, 47%)",
  146. },
  147. "attr-value": {
  148. color: "hsl(119, 34%, 47%)",
  149. },
  150. "attr-value > .token.punctuation": {
  151. color: "hsl(119, 34%, 47%)",
  152. },
  153. variable: {
  154. color: "hsl(221, 87%, 60%)",
  155. },
  156. operator: {
  157. color: "hsl(221, 87%, 60%)",
  158. },
  159. function: {
  160. color: "hsl(221, 87%, 60%)",
  161. },
  162. url: {
  163. color: "hsl(198, 99%, 37%)",
  164. },
  165. "attr-value > .token.punctuation.attr-equals": {
  166. color: "hsl(230, 8%, 24%)",
  167. },
  168. "special-attr > .token.attr-value > .token.value.css": {
  169. color: "hsl(230, 8%, 24%)",
  170. },
  171. ".language-css .token.selector": {
  172. color: "hsl(5, 74%, 59%)",
  173. },
  174. ".language-css .token.property": {
  175. color: "hsl(230, 8%, 24%)",
  176. },
  177. ".language-css .token.function": {
  178. color: "hsl(198, 99%, 37%)",
  179. },
  180. ".language-css .token.url > .token.function": {
  181. color: "hsl(198, 99%, 37%)",
  182. },
  183. ".language-css .token.url > .token.string.url": {
  184. color: "hsl(119, 34%, 47%)",
  185. },
  186. ".language-css .token.important": {
  187. color: "hsl(301, 63%, 40%)",
  188. },
  189. ".language-css .token.atrule .token.rule": {
  190. color: "hsl(301, 63%, 40%)",
  191. },
  192. ".language-javascript .token.operator": {
  193. color: "hsl(301, 63%, 40%)",
  194. },
  195. ".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":
  196. {
  197. color: "hsl(344, 84%, 43%)",
  198. },
  199. ".language-json .token.operator": {
  200. color: "hsl(230, 8%, 24%)",
  201. },
  202. ".language-json .token.null.keyword": {
  203. color: "hsl(35, 99%, 36%)",
  204. },
  205. ".language-markdown .token.url": {
  206. color: "hsl(230, 8%, 24%)",
  207. },
  208. ".language-markdown .token.url > .token.operator": {
  209. color: "hsl(230, 8%, 24%)",
  210. },
  211. ".language-markdown .token.url-reference.url > .token.string": {
  212. color: "hsl(230, 8%, 24%)",
  213. },
  214. ".language-markdown .token.url > .token.content": {
  215. color: "hsl(221, 87%, 60%)",
  216. },
  217. ".language-markdown .token.url > .token.url": {
  218. color: "hsl(198, 99%, 37%)",
  219. },
  220. ".language-markdown .token.url-reference.url": {
  221. color: "hsl(198, 99%, 37%)",
  222. },
  223. ".language-markdown .token.blockquote.punctuation": {
  224. color: "hsl(230, 4%, 64%)",
  225. fontStyle: "italic",
  226. },
  227. ".language-markdown .token.hr.punctuation": {
  228. color: "hsl(230, 4%, 64%)",
  229. fontStyle: "italic",
  230. },
  231. ".language-markdown .token.code-snippet": {
  232. color: "hsl(119, 34%, 47%)",
  233. },
  234. ".language-markdown .token.bold .token.content": {
  235. color: "hsl(35, 99%, 36%)",
  236. },
  237. ".language-markdown .token.italic .token.content": {
  238. color: "hsl(301, 63%, 40%)",
  239. },
  240. ".language-markdown .token.strike .token.content": {
  241. color: "hsl(5, 74%, 59%)",
  242. },
  243. ".language-markdown .token.strike .token.punctuation": {
  244. color: "hsl(5, 74%, 59%)",
  245. },
  246. ".language-markdown .token.list.punctuation": {
  247. color: "hsl(5, 74%, 59%)",
  248. },
  249. ".language-markdown .token.title.important > .token.punctuation": {
  250. color: "hsl(5, 74%, 59%)",
  251. },
  252. bold: {
  253. fontWeight: "bold",
  254. },
  255. italic: {
  256. fontStyle: "italic",
  257. },
  258. namespace: {
  259. Opacity: "0.8",
  260. },
  261. "token.tab:not(:empty):before": {
  262. color: "hsla(230, 8%, 24%, 0.2)",
  263. },
  264. "token.cr:before": {
  265. color: "hsla(230, 8%, 24%, 0.2)",
  266. },
  267. "token.lf:before": {
  268. color: "hsla(230, 8%, 24%, 0.2)",
  269. },
  270. "token.space:before": {
  271. color: "hsla(230, 8%, 24%, 0.2)",
  272. },
  273. "div.code-toolbar > .toolbar.toolbar > .toolbar-item": {
  274. marginRight: "0.4em",
  275. },
  276. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
  277. background: "hsl(230, 1%, 90%)",
  278. color: "hsl(230, 6%, 44%)",
  279. padding: "0.1em 0.4em",
  280. borderRadius: "0.3em",
  281. },
  282. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
  283. background: "hsl(230, 1%, 90%)",
  284. color: "hsl(230, 6%, 44%)",
  285. padding: "0.1em 0.4em",
  286. borderRadius: "0.3em",
  287. },
  288. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
  289. background: "hsl(230, 1%, 90%)",
  290. color: "hsl(230, 6%, 44%)",
  291. padding: "0.1em 0.4em",
  292. borderRadius: "0.3em",
  293. },
  294. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
  295. background: "hsl(230, 1%, 78%)",
  296. color: "hsl(230, 8%, 24%)",
  297. },
  298. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
  299. background: "hsl(230, 1%, 78%)",
  300. color: "hsl(230, 8%, 24%)",
  301. },
  302. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
  303. background: "hsl(230, 1%, 78%)",
  304. color: "hsl(230, 8%, 24%)",
  305. },
  306. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
  307. background: "hsl(230, 1%, 78%)",
  308. color: "hsl(230, 8%, 24%)",
  309. },
  310. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
  311. background: "hsl(230, 1%, 78%)",
  312. color: "hsl(230, 8%, 24%)",
  313. },
  314. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
  315. background: "hsl(230, 1%, 78%)",
  316. color: "hsl(230, 8%, 24%)",
  317. },
  318. ".line-highlight.line-highlight": {
  319. background: "hsla(230, 8%, 24%, 0.05)",
  320. },
  321. ".line-highlight.line-highlight:before": {
  322. background: "hsl(230, 1%, 90%)",
  323. color: "hsl(230, 8%, 24%)",
  324. padding: "0.1em 0.6em",
  325. borderRadius: "0.3em",
  326. boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)",
  327. },
  328. ".line-highlight.line-highlight[data-end]:after": {
  329. background: "hsl(230, 1%, 90%)",
  330. color: "hsl(230, 8%, 24%)",
  331. padding: "0.1em 0.6em",
  332. borderRadius: "0.3em",
  333. boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)",
  334. },
  335. "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":
  336. {
  337. backgroundColor: "hsla(230, 8%, 24%, 0.05)",
  338. },
  339. ".line-numbers.line-numbers .line-numbers-rows": {
  340. borderRightColor: "hsla(230, 8%, 24%, 0.2)",
  341. },
  342. ".command-line .command-line-prompt": {
  343. borderRightColor: "hsla(230, 8%, 24%, 0.2)",
  344. },
  345. ".line-numbers .line-numbers-rows > span:before": {
  346. color: "hsl(230, 1%, 62%)",
  347. },
  348. ".command-line .command-line-prompt > span:before": {
  349. color: "hsl(230, 1%, 62%)",
  350. },
  351. ".rainbow-braces .token.token.punctuation.brace-level-1": {
  352. color: "hsl(5, 74%, 59%)",
  353. },
  354. ".rainbow-braces .token.token.punctuation.brace-level-5": {
  355. color: "hsl(5, 74%, 59%)",
  356. },
  357. ".rainbow-braces .token.token.punctuation.brace-level-9": {
  358. color: "hsl(5, 74%, 59%)",
  359. },
  360. ".rainbow-braces .token.token.punctuation.brace-level-2": {
  361. color: "hsl(119, 34%, 47%)",
  362. },
  363. ".rainbow-braces .token.token.punctuation.brace-level-6": {
  364. color: "hsl(119, 34%, 47%)",
  365. },
  366. ".rainbow-braces .token.token.punctuation.brace-level-10": {
  367. color: "hsl(119, 34%, 47%)",
  368. },
  369. ".rainbow-braces .token.token.punctuation.brace-level-3": {
  370. color: "hsl(221, 87%, 60%)",
  371. },
  372. ".rainbow-braces .token.token.punctuation.brace-level-7": {
  373. color: "hsl(221, 87%, 60%)",
  374. },
  375. ".rainbow-braces .token.token.punctuation.brace-level-11": {
  376. color: "hsl(221, 87%, 60%)",
  377. },
  378. ".rainbow-braces .token.token.punctuation.brace-level-4": {
  379. color: "hsl(301, 63%, 40%)",
  380. },
  381. ".rainbow-braces .token.token.punctuation.brace-level-8": {
  382. color: "hsl(301, 63%, 40%)",
  383. },
  384. ".rainbow-braces .token.token.punctuation.brace-level-12": {
  385. color: "hsl(301, 63%, 40%)",
  386. },
  387. "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
  388. backgroundColor: "hsla(353, 100%, 66%, 0.15)",
  389. },
  390. "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
  391. backgroundColor: "hsla(353, 100%, 66%, 0.15)",
  392. },
  393. "pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":
  394. {
  395. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  396. },
  397. "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":
  398. {
  399. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  400. },
  401. "pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":
  402. {
  403. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  404. },
  405. "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":
  406. {
  407. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  408. },
  409. "pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": {
  410. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  411. },
  412. "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": {
  413. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  414. },
  415. "pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": {
  416. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  417. },
  418. "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": {
  419. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  420. },
  421. "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
  422. backgroundColor: "hsla(137, 100%, 55%, 0.15)",
  423. },
  424. "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
  425. backgroundColor: "hsla(137, 100%, 55%, 0.15)",
  426. },
  427. "pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":
  428. {
  429. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  430. },
  431. "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":
  432. {
  433. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  434. },
  435. "pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":
  436. {
  437. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  438. },
  439. "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":
  440. {
  441. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  442. },
  443. "pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": {
  444. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  445. },
  446. "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": {
  447. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  448. },
  449. "pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": {
  450. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  451. },
  452. "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": {
  453. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  454. },
  455. ".prism-previewer.prism-previewer:before": {
  456. borderColor: "hsl(0, 0, 95%)",
  457. },
  458. ".prism-previewer-gradient.prism-previewer-gradient div": {
  459. borderColor: "hsl(0, 0, 95%)",
  460. borderRadius: "0.3em",
  461. },
  462. ".prism-previewer-color.prism-previewer-color:before": {
  463. borderRadius: "0.3em",
  464. },
  465. ".prism-previewer-easing.prism-previewer-easing:before": {
  466. borderRadius: "0.3em",
  467. },
  468. ".prism-previewer.prism-previewer:after": {
  469. borderTopColor: "hsl(0, 0, 95%)",
  470. },
  471. ".prism-previewer-flipped.prism-previewer-flipped.after": {
  472. borderBottomColor: "hsl(0, 0, 95%)",
  473. },
  474. ".prism-previewer-angle.prism-previewer-angle:before": {
  475. background: "hsl(0, 0%, 100%)",
  476. },
  477. ".prism-previewer-time.prism-previewer-time:before": {
  478. background: "hsl(0, 0%, 100%)",
  479. },
  480. ".prism-previewer-easing.prism-previewer-easing": {
  481. background: "hsl(0, 0%, 100%)",
  482. },
  483. ".prism-previewer-angle.prism-previewer-angle circle": {
  484. stroke: "hsl(230, 8%, 24%)",
  485. strokeOpacity: "1",
  486. },
  487. ".prism-previewer-time.prism-previewer-time circle": {
  488. stroke: "hsl(230, 8%, 24%)",
  489. strokeOpacity: "1",
  490. },
  491. ".prism-previewer-easing.prism-previewer-easing circle": {
  492. stroke: "hsl(230, 8%, 24%)",
  493. fill: "transparent",
  494. },
  495. ".prism-previewer-easing.prism-previewer-easing path": {
  496. stroke: "hsl(230, 8%, 24%)",
  497. },
  498. ".prism-previewer-easing.prism-previewer-easing line": {
  499. stroke: "hsl(230, 8%, 24%)",
  500. },
  501. };
  502. export const dark = {
  503. 'code[class*="language-"]': {
  504. background: "hsl(220, 13%, 18%)",
  505. color: "hsl(220, 14%, 71%)",
  506. textShadow: "0 1px rgba(0, 0, 0, 0.3)",
  507. fontFamily:
  508. '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
  509. direction: "ltr",
  510. textAlign: "left",
  511. whiteSpace: "pre",
  512. wordSpacing: "normal",
  513. wordBreak: "normal",
  514. lineHeight: "1.5",
  515. MozTabSize: "2",
  516. OTabSize: "2",
  517. tabSize: "2",
  518. WebkitHyphens: "none",
  519. MozHyphens: "none",
  520. msHyphens: "none",
  521. hyphens: "none",
  522. },
  523. 'pre[class*="language-"]': {
  524. background: "hsl(220, 13%, 18%)",
  525. color: "hsl(220, 14%, 71%)",
  526. textShadow: "0 1px rgba(0, 0, 0, 0.3)",
  527. fontFamily:
  528. '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
  529. direction: "ltr",
  530. textAlign: "left",
  531. whiteSpace: "pre",
  532. wordSpacing: "normal",
  533. wordBreak: "normal",
  534. lineHeight: "1.5",
  535. MozTabSize: "2",
  536. OTabSize: "2",
  537. tabSize: "2",
  538. WebkitHyphens: "none",
  539. MozHyphens: "none",
  540. msHyphens: "none",
  541. hyphens: "none",
  542. padding: "1em",
  543. margin: "0.5em 0",
  544. overflow: "auto",
  545. borderRadius: "0.3em",
  546. },
  547. 'code[class*="language-"]::-moz-selection': {
  548. background: "hsl(220, 13%, 28%)",
  549. color: "inherit",
  550. textShadow: "none",
  551. },
  552. 'code[class*="language-"] *::-moz-selection': {
  553. background: "hsl(220, 13%, 28%)",
  554. color: "inherit",
  555. textShadow: "none",
  556. },
  557. 'pre[class*="language-"] *::-moz-selection': {
  558. background: "hsl(220, 13%, 28%)",
  559. color: "inherit",
  560. textShadow: "none",
  561. },
  562. 'code[class*="language-"]::selection': {
  563. background: "hsl(220, 13%, 28%)",
  564. color: "inherit",
  565. textShadow: "none",
  566. },
  567. 'code[class*="language-"] *::selection': {
  568. background: "hsl(220, 13%, 28%)",
  569. color: "inherit",
  570. textShadow: "none",
  571. },
  572. 'pre[class*="language-"] *::selection': {
  573. background: "hsl(220, 13%, 28%)",
  574. color: "inherit",
  575. textShadow: "none",
  576. },
  577. ':not(pre) > code[class*="language-"]': {
  578. padding: "0.2em 0.3em",
  579. borderRadius: "0.3em",
  580. whiteSpace: "normal",
  581. },
  582. comment: {
  583. color: "hsl(220, 10%, 40%)",
  584. fontStyle: "italic",
  585. },
  586. prolog: {
  587. color: "hsl(220, 10%, 40%)",
  588. },
  589. cdata: {
  590. color: "hsl(220, 10%, 40%)",
  591. },
  592. doctype: {
  593. color: "hsl(220, 14%, 71%)",
  594. },
  595. punctuation: {
  596. color: "hsl(220, 14%, 71%)",
  597. },
  598. entity: {
  599. color: "hsl(220, 14%, 71%)",
  600. cursor: "help",
  601. },
  602. "attr-name": {
  603. color: "hsl(29, 54%, 61%)",
  604. },
  605. "class-name": {
  606. color: "hsl(29, 54%, 61%)",
  607. },
  608. boolean: {
  609. color: "hsl(29, 54%, 61%)",
  610. },
  611. constant: {
  612. color: "hsl(29, 54%, 61%)",
  613. },
  614. number: {
  615. color: "hsl(29, 54%, 61%)",
  616. },
  617. atrule: {
  618. color: "hsl(29, 54%, 61%)",
  619. },
  620. keyword: {
  621. color: "hsl(286, 60%, 67%)",
  622. },
  623. property: {
  624. color: "hsl(355, 65%, 65%)",
  625. },
  626. tag: {
  627. color: "hsl(355, 65%, 65%)",
  628. },
  629. symbol: {
  630. color: "hsl(355, 65%, 65%)",
  631. },
  632. deleted: {
  633. color: "hsl(355, 65%, 65%)",
  634. },
  635. important: {
  636. color: "hsl(355, 65%, 65%)",
  637. },
  638. selector: {
  639. color: "hsl(95, 38%, 62%)",
  640. },
  641. string: {
  642. color: "hsl(95, 38%, 62%)",
  643. },
  644. char: {
  645. color: "hsl(95, 38%, 62%)",
  646. },
  647. builtin: {
  648. color: "hsl(95, 38%, 62%)",
  649. },
  650. inserted: {
  651. color: "hsl(95, 38%, 62%)",
  652. },
  653. regex: {
  654. color: "hsl(95, 38%, 62%)",
  655. },
  656. "attr-value": {
  657. color: "hsl(95, 38%, 62%)",
  658. },
  659. "attr-value > .token.punctuation": {
  660. color: "hsl(95, 38%, 62%)",
  661. },
  662. variable: {
  663. color: "hsl(207, 82%, 66%)",
  664. },
  665. operator: {
  666. color: "hsl(207, 82%, 66%)",
  667. },
  668. function: {
  669. color: "hsl(207, 82%, 66%)",
  670. },
  671. url: {
  672. color: "hsl(187, 47%, 55%)",
  673. },
  674. "attr-value > .token.punctuation.attr-equals": {
  675. color: "hsl(220, 14%, 71%)",
  676. },
  677. "special-attr > .token.attr-value > .token.value.css": {
  678. color: "hsl(220, 14%, 71%)",
  679. },
  680. ".language-css .token.selector": {
  681. color: "hsl(355, 65%, 65%)",
  682. },
  683. ".language-css .token.property": {
  684. color: "hsl(220, 14%, 71%)",
  685. },
  686. ".language-css .token.function": {
  687. color: "hsl(187, 47%, 55%)",
  688. },
  689. ".language-css .token.url > .token.function": {
  690. color: "hsl(187, 47%, 55%)",
  691. },
  692. ".language-css .token.url > .token.string.url": {
  693. color: "hsl(95, 38%, 62%)",
  694. },
  695. ".language-css .token.important": {
  696. color: "hsl(286, 60%, 67%)",
  697. },
  698. ".language-css .token.atrule .token.rule": {
  699. color: "hsl(286, 60%, 67%)",
  700. },
  701. ".language-javascript .token.operator": {
  702. color: "hsl(286, 60%, 67%)",
  703. },
  704. ".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":
  705. {
  706. color: "hsl(5, 48%, 51%)",
  707. },
  708. ".language-json .token.operator": {
  709. color: "hsl(220, 14%, 71%)",
  710. },
  711. ".language-json .token.null.keyword": {
  712. color: "hsl(29, 54%, 61%)",
  713. },
  714. ".language-markdown .token.url": {
  715. color: "hsl(220, 14%, 71%)",
  716. },
  717. ".language-markdown .token.url > .token.operator": {
  718. color: "hsl(220, 14%, 71%)",
  719. },
  720. ".language-markdown .token.url-reference.url > .token.string": {
  721. color: "hsl(220, 14%, 71%)",
  722. },
  723. ".language-markdown .token.url > .token.content": {
  724. color: "hsl(207, 82%, 66%)",
  725. },
  726. ".language-markdown .token.url > .token.url": {
  727. color: "hsl(187, 47%, 55%)",
  728. },
  729. ".language-markdown .token.url-reference.url": {
  730. color: "hsl(187, 47%, 55%)",
  731. },
  732. ".language-markdown .token.blockquote.punctuation": {
  733. color: "hsl(220, 10%, 40%)",
  734. fontStyle: "italic",
  735. },
  736. ".language-markdown .token.hr.punctuation": {
  737. color: "hsl(220, 10%, 40%)",
  738. fontStyle: "italic",
  739. },
  740. ".language-markdown .token.code-snippet": {
  741. color: "hsl(95, 38%, 62%)",
  742. },
  743. ".language-markdown .token.bold .token.content": {
  744. color: "hsl(29, 54%, 61%)",
  745. },
  746. ".language-markdown .token.italic .token.content": {
  747. color: "hsl(286, 60%, 67%)",
  748. },
  749. ".language-markdown .token.strike .token.content": {
  750. color: "hsl(355, 65%, 65%)",
  751. },
  752. ".language-markdown .token.strike .token.punctuation": {
  753. color: "hsl(355, 65%, 65%)",
  754. },
  755. ".language-markdown .token.list.punctuation": {
  756. color: "hsl(355, 65%, 65%)",
  757. },
  758. ".language-markdown .token.title.important > .token.punctuation": {
  759. color: "hsl(355, 65%, 65%)",
  760. },
  761. bold: {
  762. fontWeight: "bold",
  763. },
  764. italic: {
  765. fontStyle: "italic",
  766. },
  767. namespace: {
  768. Opacity: "0.8",
  769. },
  770. "token.tab:not(:empty):before": {
  771. color: "hsla(220, 14%, 71%, 0.15)",
  772. textShadow: "none",
  773. },
  774. "token.cr:before": {
  775. color: "hsla(220, 14%, 71%, 0.15)",
  776. textShadow: "none",
  777. },
  778. "token.lf:before": {
  779. color: "hsla(220, 14%, 71%, 0.15)",
  780. textShadow: "none",
  781. },
  782. "token.space:before": {
  783. color: "hsla(220, 14%, 71%, 0.15)",
  784. textShadow: "none",
  785. },
  786. "div.code-toolbar > .toolbar.toolbar > .toolbar-item": {
  787. marginRight: "0.4em",
  788. },
  789. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
  790. background: "hsl(220, 13%, 26%)",
  791. color: "hsl(220, 9%, 55%)",
  792. padding: "0.1em 0.4em",
  793. borderRadius: "0.3em",
  794. },
  795. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
  796. background: "hsl(220, 13%, 26%)",
  797. color: "hsl(220, 9%, 55%)",
  798. padding: "0.1em 0.4em",
  799. borderRadius: "0.3em",
  800. },
  801. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
  802. background: "hsl(220, 13%, 26%)",
  803. color: "hsl(220, 9%, 55%)",
  804. padding: "0.1em 0.4em",
  805. borderRadius: "0.3em",
  806. },
  807. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
  808. background: "hsl(220, 13%, 28%)",
  809. color: "hsl(220, 14%, 71%)",
  810. },
  811. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
  812. background: "hsl(220, 13%, 28%)",
  813. color: "hsl(220, 14%, 71%)",
  814. },
  815. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
  816. background: "hsl(220, 13%, 28%)",
  817. color: "hsl(220, 14%, 71%)",
  818. },
  819. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
  820. background: "hsl(220, 13%, 28%)",
  821. color: "hsl(220, 14%, 71%)",
  822. },
  823. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
  824. background: "hsl(220, 13%, 28%)",
  825. color: "hsl(220, 14%, 71%)",
  826. },
  827. "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
  828. background: "hsl(220, 13%, 28%)",
  829. color: "hsl(220, 14%, 71%)",
  830. },
  831. ".line-highlight.line-highlight": {
  832. background: "hsla(220, 100%, 80%, 0.04)",
  833. },
  834. ".line-highlight.line-highlight:before": {
  835. background: "hsl(220, 13%, 26%)",
  836. color: "hsl(220, 14%, 71%)",
  837. padding: "0.1em 0.6em",
  838. borderRadius: "0.3em",
  839. boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)",
  840. },
  841. ".line-highlight.line-highlight[data-end]:after": {
  842. background: "hsl(220, 13%, 26%)",
  843. color: "hsl(220, 14%, 71%)",
  844. padding: "0.1em 0.6em",
  845. borderRadius: "0.3em",
  846. boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)",
  847. },
  848. "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":
  849. {
  850. backgroundColor: "hsla(220, 100%, 80%, 0.04)",
  851. },
  852. ".line-numbers.line-numbers .line-numbers-rows": {
  853. borderRightColor: "hsla(220, 14%, 71%, 0.15)",
  854. },
  855. ".command-line .command-line-prompt": {
  856. borderRightColor: "hsla(220, 14%, 71%, 0.15)",
  857. },
  858. ".line-numbers .line-numbers-rows > span:before": {
  859. color: "hsl(220, 14%, 45%)",
  860. },
  861. ".command-line .command-line-prompt > span:before": {
  862. color: "hsl(220, 14%, 45%)",
  863. },
  864. ".rainbow-braces .token.token.punctuation.brace-level-1": {
  865. color: "hsl(355, 65%, 65%)",
  866. },
  867. ".rainbow-braces .token.token.punctuation.brace-level-5": {
  868. color: "hsl(355, 65%, 65%)",
  869. },
  870. ".rainbow-braces .token.token.punctuation.brace-level-9": {
  871. color: "hsl(355, 65%, 65%)",
  872. },
  873. ".rainbow-braces .token.token.punctuation.brace-level-2": {
  874. color: "hsl(95, 38%, 62%)",
  875. },
  876. ".rainbow-braces .token.token.punctuation.brace-level-6": {
  877. color: "hsl(95, 38%, 62%)",
  878. },
  879. ".rainbow-braces .token.token.punctuation.brace-level-10": {
  880. color: "hsl(95, 38%, 62%)",
  881. },
  882. ".rainbow-braces .token.token.punctuation.brace-level-3": {
  883. color: "hsl(207, 82%, 66%)",
  884. },
  885. ".rainbow-braces .token.token.punctuation.brace-level-7": {
  886. color: "hsl(207, 82%, 66%)",
  887. },
  888. ".rainbow-braces .token.token.punctuation.brace-level-11": {
  889. color: "hsl(207, 82%, 66%)",
  890. },
  891. ".rainbow-braces .token.token.punctuation.brace-level-4": {
  892. color: "hsl(286, 60%, 67%)",
  893. },
  894. ".rainbow-braces .token.token.punctuation.brace-level-8": {
  895. color: "hsl(286, 60%, 67%)",
  896. },
  897. ".rainbow-braces .token.token.punctuation.brace-level-12": {
  898. color: "hsl(286, 60%, 67%)",
  899. },
  900. "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
  901. backgroundColor: "hsla(353, 100%, 66%, 0.15)",
  902. },
  903. "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
  904. backgroundColor: "hsla(353, 100%, 66%, 0.15)",
  905. },
  906. "pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":
  907. {
  908. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  909. },
  910. "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":
  911. {
  912. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  913. },
  914. "pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":
  915. {
  916. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  917. },
  918. "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":
  919. {
  920. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  921. },
  922. "pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": {
  923. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  924. },
  925. "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": {
  926. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  927. },
  928. "pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": {
  929. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  930. },
  931. "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": {
  932. backgroundColor: "hsla(353, 95%, 66%, 0.25)",
  933. },
  934. "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
  935. backgroundColor: "hsla(137, 100%, 55%, 0.15)",
  936. },
  937. "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
  938. backgroundColor: "hsla(137, 100%, 55%, 0.15)",
  939. },
  940. "pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":
  941. {
  942. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  943. },
  944. "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":
  945. {
  946. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  947. },
  948. "pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":
  949. {
  950. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  951. },
  952. "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":
  953. {
  954. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  955. },
  956. "pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": {
  957. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  958. },
  959. "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": {
  960. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  961. },
  962. "pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": {
  963. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  964. },
  965. "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": {
  966. backgroundColor: "hsla(135, 73%, 55%, 0.25)",
  967. },
  968. ".prism-previewer.prism-previewer:before": {
  969. borderColor: "hsl(224, 13%, 17%)",
  970. },
  971. ".prism-previewer-gradient.prism-previewer-gradient div": {
  972. borderColor: "hsl(224, 13%, 17%)",
  973. borderRadius: "0.3em",
  974. },
  975. ".prism-previewer-color.prism-previewer-color:before": {
  976. borderRadius: "0.3em",
  977. },
  978. ".prism-previewer-easing.prism-previewer-easing:before": {
  979. borderRadius: "0.3em",
  980. },
  981. ".prism-previewer.prism-previewer:after": {
  982. borderTopColor: "hsl(224, 13%, 17%)",
  983. },
  984. ".prism-previewer-flipped.prism-previewer-flipped.after": {
  985. borderBottomColor: "hsl(224, 13%, 17%)",
  986. },
  987. ".prism-previewer-angle.prism-previewer-angle:before": {
  988. background: "hsl(219, 13%, 22%)",
  989. },
  990. ".prism-previewer-time.prism-previewer-time:before": {
  991. background: "hsl(219, 13%, 22%)",
  992. },
  993. ".prism-previewer-easing.prism-previewer-easing": {
  994. background: "hsl(219, 13%, 22%)",
  995. },
  996. ".prism-previewer-angle.prism-previewer-angle circle": {
  997. stroke: "hsl(220, 14%, 71%)",
  998. strokeOpacity: "1",
  999. },
  1000. ".prism-previewer-time.prism-previewer-time circle": {
  1001. stroke: "hsl(220, 14%, 71%)",
  1002. strokeOpacity: "1",
  1003. },
  1004. ".prism-previewer-easing.prism-previewer-easing circle": {
  1005. stroke: "hsl(220, 14%, 71%)",
  1006. fill: "transparent",
  1007. },
  1008. ".prism-previewer-easing.prism-previewer-easing path": {
  1009. stroke: "hsl(220, 14%, 71%)",
  1010. },
  1011. ".prism-previewer-easing.prism-previewer-easing line": {
  1012. stroke: "hsl(220, 14%, 71%)",
  1013. },
  1014. };