theme.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. export const github = {
  2. base: 'vs',
  3. inherit: true,
  4. rules: [
  5. {
  6. background: 'ffffff',
  7. token: '',
  8. },
  9. {
  10. foreground: '6a737d',
  11. token: 'comment',
  12. },
  13. {
  14. foreground: '6a737d',
  15. token: 'punctuation.definition.comment',
  16. },
  17. {
  18. foreground: '6a737d',
  19. token: 'string.comment',
  20. },
  21. {
  22. foreground: '005cc5',
  23. token: 'constant',
  24. },
  25. {
  26. foreground: '005cc5',
  27. token: 'entity.name.constant',
  28. },
  29. {
  30. foreground: '005cc5',
  31. token: 'variable.other.constant',
  32. },
  33. {
  34. foreground: '005cc5',
  35. token: 'variable.language',
  36. },
  37. {
  38. foreground: '6f42c1',
  39. token: 'entity',
  40. },
  41. {
  42. foreground: '6f42c1',
  43. token: 'entity.name',
  44. },
  45. {
  46. foreground: '24292e',
  47. token: 'variable.parameter.function',
  48. },
  49. {
  50. foreground: '22863a',
  51. token: 'entity.name.tag',
  52. },
  53. {
  54. foreground: 'd73a49',
  55. token: 'keyword',
  56. },
  57. {
  58. foreground: 'd73a49',
  59. token: 'storage',
  60. },
  61. {
  62. foreground: 'd73a49',
  63. token: 'storage.type',
  64. },
  65. {
  66. foreground: '24292e',
  67. token: 'storage.modifier.package',
  68. },
  69. {
  70. foreground: '24292e',
  71. token: 'storage.modifier.import',
  72. },
  73. {
  74. foreground: '24292e',
  75. token: 'storage.type.java',
  76. },
  77. {
  78. foreground: '032f62',
  79. token: 'string',
  80. },
  81. {
  82. foreground: '032f62',
  83. token: 'punctuation.definition.string',
  84. },
  85. {
  86. foreground: '032f62',
  87. token: 'string punctuation.section.embedded source',
  88. },
  89. {
  90. foreground: '005cc5',
  91. token: 'support',
  92. },
  93. {
  94. foreground: '005cc5',
  95. token: 'meta.property-name',
  96. },
  97. {
  98. foreground: 'e36209',
  99. token: 'variable',
  100. },
  101. {
  102. foreground: '24292e',
  103. token: 'variable.other',
  104. },
  105. {
  106. foreground: 'b31d28',
  107. fontStyle: 'bold italic underline',
  108. token: 'invalid.broken',
  109. },
  110. {
  111. foreground: 'b31d28',
  112. fontStyle: 'bold italic underline',
  113. token: 'invalid.deprecated',
  114. },
  115. {
  116. foreground: 'fafbfc',
  117. background: 'b31d28',
  118. fontStyle: 'italic underline',
  119. token: 'invalid.illegal',
  120. },
  121. {
  122. foreground: 'fafbfc',
  123. background: 'd73a49',
  124. fontStyle: 'italic underline',
  125. token: 'carriage-return',
  126. },
  127. {
  128. foreground: 'b31d28',
  129. fontStyle: 'bold italic underline',
  130. token: 'invalid.unimplemented',
  131. },
  132. {
  133. foreground: 'b31d28',
  134. token: 'message.error',
  135. },
  136. {
  137. foreground: '24292e',
  138. token: 'string source',
  139. },
  140. {
  141. foreground: '005cc5',
  142. token: 'string variable',
  143. },
  144. {
  145. foreground: '032f62',
  146. token: 'source.regexp',
  147. },
  148. {
  149. foreground: '032f62',
  150. token: 'string.regexp',
  151. },
  152. {
  153. foreground: '032f62',
  154. token: 'string.regexp.character-class',
  155. },
  156. {
  157. foreground: '032f62',
  158. token: 'string.regexp constant.character.escape',
  159. },
  160. {
  161. foreground: '032f62',
  162. token: 'string.regexp source.ruby.embedded',
  163. },
  164. {
  165. foreground: '032f62',
  166. token: 'string.regexp string.regexp.arbitrary-repitition',
  167. },
  168. {
  169. foreground: '22863a',
  170. fontStyle: 'bold',
  171. token: 'string.regexp constant.character.escape',
  172. },
  173. {
  174. foreground: '005cc5',
  175. token: 'support.constant',
  176. },
  177. {
  178. foreground: '005cc5',
  179. token: 'support.variable',
  180. },
  181. {
  182. foreground: '005cc5',
  183. token: 'meta.module-reference',
  184. },
  185. {
  186. foreground: '735c0f',
  187. token: 'markup.list',
  188. },
  189. {
  190. foreground: '005cc5',
  191. fontStyle: 'bold',
  192. token: 'markup.heading',
  193. },
  194. {
  195. foreground: '005cc5',
  196. fontStyle: 'bold',
  197. token: 'markup.heading entity.name',
  198. },
  199. {
  200. foreground: '22863a',
  201. token: 'markup.quote',
  202. },
  203. {
  204. foreground: '24292e',
  205. fontStyle: 'italic',
  206. token: 'markup.italic',
  207. },
  208. {
  209. foreground: '24292e',
  210. fontStyle: 'bold',
  211. token: 'markup.bold',
  212. },
  213. {
  214. foreground: '005cc5',
  215. token: 'markup.raw',
  216. },
  217. {
  218. foreground: 'b31d28',
  219. background: 'ffeef0',
  220. token: 'markup.deleted',
  221. },
  222. {
  223. foreground: 'b31d28',
  224. background: 'ffeef0',
  225. token: 'meta.diff.header.from-file',
  226. },
  227. {
  228. foreground: 'b31d28',
  229. background: 'ffeef0',
  230. token: 'punctuation.definition.deleted',
  231. },
  232. {
  233. foreground: '22863a',
  234. background: 'f0fff4',
  235. token: 'markup.inserted',
  236. },
  237. {
  238. foreground: '22863a',
  239. background: 'f0fff4',
  240. token: 'meta.diff.header.to-file',
  241. },
  242. {
  243. foreground: '22863a',
  244. background: 'f0fff4',
  245. token: 'punctuation.definition.inserted',
  246. },
  247. {
  248. foreground: 'e36209',
  249. background: 'ffebda',
  250. token: 'markup.changed',
  251. },
  252. {
  253. foreground: 'e36209',
  254. background: 'ffebda',
  255. token: 'punctuation.definition.changed',
  256. },
  257. {
  258. foreground: 'f6f8fa',
  259. background: '005cc5',
  260. token: 'markup.ignored',
  261. },
  262. {
  263. foreground: 'f6f8fa',
  264. background: '005cc5',
  265. token: 'markup.untracked',
  266. },
  267. {
  268. foreground: '6f42c1',
  269. fontStyle: 'bold',
  270. token: 'meta.diff.range',
  271. },
  272. {
  273. foreground: '005cc5',
  274. token: 'meta.diff.header',
  275. },
  276. {
  277. foreground: '005cc5',
  278. fontStyle: 'bold',
  279. token: 'meta.separator',
  280. },
  281. {
  282. foreground: '005cc5',
  283. token: 'meta.output',
  284. },
  285. {
  286. foreground: '586069',
  287. token: 'brackethighlighter.tag',
  288. },
  289. {
  290. foreground: '586069',
  291. token: 'brackethighlighter.curly',
  292. },
  293. {
  294. foreground: '586069',
  295. token: 'brackethighlighter.round',
  296. },
  297. {
  298. foreground: '586069',
  299. token: 'brackethighlighter.square',
  300. },
  301. {
  302. foreground: '586069',
  303. token: 'brackethighlighter.angle',
  304. },
  305. {
  306. foreground: '586069',
  307. token: 'brackethighlighter.quote',
  308. },
  309. {
  310. foreground: 'b31d28',
  311. token: 'brackethighlighter.unmatched',
  312. },
  313. {
  314. foreground: 'b31d28',
  315. token: 'sublimelinter.mark.error',
  316. },
  317. {
  318. foreground: 'e36209',
  319. token: 'sublimelinter.mark.warning',
  320. },
  321. {
  322. foreground: '959da5',
  323. token: 'sublimelinter.gutter-mark',
  324. },
  325. {
  326. foreground: '032f62',
  327. fontStyle: 'underline',
  328. token: 'constant.other.reference.link',
  329. },
  330. {
  331. foreground: '032f62',
  332. fontStyle: 'underline',
  333. token: 'string.other.link',
  334. },
  335. ],
  336. colors: {
  337. 'editor.foreground': '#24292e',
  338. 'editor.background': '#ffffff',
  339. 'editor.selectionBackground': '#c8c8fa',
  340. 'editor.inactiveSelectionBackground': '#fafbfc',
  341. 'editor.lineHighlightBackground': '#fafbfc',
  342. 'editorCursor.foreground': '#24292e',
  343. 'editorWhitespace.foreground': '#959da5',
  344. 'editorIndentGuide.background': '#959da5',
  345. 'editorIndentGuide.activeBackground': '#24292e',
  346. 'editor.selectionHighlightBorder': '#fafbfc',
  347. },
  348. };
  349. export const githubDark = {
  350. base: 'vs-dark',
  351. inherit: true,
  352. rules: [
  353. {
  354. background: '24292e',
  355. token: '',
  356. },
  357. {
  358. foreground: '959da5',
  359. token: 'comment',
  360. },
  361. {
  362. foreground: '959da5',
  363. token: 'punctuation.definition.comment',
  364. },
  365. {
  366. foreground: '959da5',
  367. token: 'string.comment',
  368. },
  369. {
  370. foreground: 'c8e1ff',
  371. token: 'constant',
  372. },
  373. {
  374. foreground: 'c8e1ff',
  375. token: 'entity.name.constant',
  376. },
  377. {
  378. foreground: 'c8e1ff',
  379. token: 'variable.other.constant',
  380. },
  381. {
  382. foreground: 'c8e1ff',
  383. token: 'variable.language',
  384. },
  385. {
  386. foreground: 'b392f0',
  387. token: 'entity',
  388. },
  389. {
  390. foreground: 'b392f0',
  391. token: 'entity.name',
  392. },
  393. {
  394. foreground: 'f6f8fa',
  395. token: 'variable.parameter.function',
  396. },
  397. {
  398. foreground: '7bcc72',
  399. token: 'entity.name.tag',
  400. },
  401. {
  402. foreground: 'ea4a5a',
  403. token: 'keyword',
  404. },
  405. {
  406. foreground: 'ea4a5a',
  407. token: 'storage',
  408. },
  409. {
  410. foreground: 'ea4a5a',
  411. token: 'storage.type',
  412. },
  413. {
  414. foreground: 'f6f8fa',
  415. token: 'storage.modifier.package',
  416. },
  417. {
  418. foreground: 'f6f8fa',
  419. token: 'storage.modifier.import',
  420. },
  421. {
  422. foreground: 'f6f8fa',
  423. token: 'storage.type.java',
  424. },
  425. {
  426. foreground: '79b8ff',
  427. token: 'string',
  428. },
  429. {
  430. foreground: '79b8ff',
  431. token: 'punctuation.definition.string',
  432. },
  433. {
  434. foreground: '79b8ff',
  435. token: 'string punctuation.section.embedded source',
  436. },
  437. {
  438. foreground: 'c8e1ff',
  439. token: 'support',
  440. },
  441. {
  442. foreground: 'c8e1ff',
  443. token: 'meta.property-name',
  444. },
  445. {
  446. foreground: 'fb8532',
  447. token: 'variable',
  448. },
  449. {
  450. foreground: 'f6f8fa',
  451. token: 'variable.other',
  452. },
  453. {
  454. foreground: 'd73a49',
  455. fontStyle: 'bold italic underline',
  456. token: 'invalid.broken',
  457. },
  458. {
  459. foreground: 'd73a49',
  460. fontStyle: 'bold italic underline',
  461. token: 'invalid.deprecated',
  462. },
  463. {
  464. foreground: 'fafbfc',
  465. background: 'd73a49',
  466. fontStyle: 'italic underline',
  467. token: 'invalid.illegal',
  468. },
  469. {
  470. foreground: 'fafbfc',
  471. background: 'd73a49',
  472. fontStyle: 'italic underline',
  473. token: 'carriage-return',
  474. },
  475. {
  476. foreground: 'd73a49',
  477. fontStyle: 'bold italic underline',
  478. token: 'invalid.unimplemented',
  479. },
  480. {
  481. foreground: 'd73a49',
  482. token: 'message.error',
  483. },
  484. {
  485. foreground: 'f6f8fa',
  486. token: 'string source',
  487. },
  488. {
  489. foreground: 'c8e1ff',
  490. token: 'string variable',
  491. },
  492. {
  493. foreground: '79b8ff',
  494. token: 'source.regexp',
  495. },
  496. {
  497. foreground: '79b8ff',
  498. token: 'string.regexp',
  499. },
  500. {
  501. foreground: '79b8ff',
  502. token: 'string.regexp.character-class',
  503. },
  504. {
  505. foreground: '79b8ff',
  506. token: 'string.regexp constant.character.escape',
  507. },
  508. {
  509. foreground: '79b8ff',
  510. token: 'string.regexp source.ruby.embedded',
  511. },
  512. {
  513. foreground: '79b8ff',
  514. token: 'string.regexp string.regexp.arbitrary-repitition',
  515. },
  516. {
  517. foreground: '7bcc72',
  518. fontStyle: 'bold',
  519. token: 'string.regexp constant.character.escape',
  520. },
  521. {
  522. foreground: 'c8e1ff',
  523. token: 'support.constant',
  524. },
  525. {
  526. foreground: 'c8e1ff',
  527. token: 'support.variable',
  528. },
  529. {
  530. foreground: 'c8e1ff',
  531. token: 'meta.module-reference',
  532. },
  533. {
  534. foreground: 'fb8532',
  535. token: 'markup.list',
  536. },
  537. {
  538. foreground: '0366d6',
  539. fontStyle: 'bold',
  540. token: 'markup.heading',
  541. },
  542. {
  543. foreground: '0366d6',
  544. fontStyle: 'bold',
  545. token: 'markup.heading entity.name',
  546. },
  547. {
  548. foreground: 'c8e1ff',
  549. token: 'markup.quote',
  550. },
  551. {
  552. foreground: 'f6f8fa',
  553. fontStyle: 'italic',
  554. token: 'markup.italic',
  555. },
  556. {
  557. foreground: 'f6f8fa',
  558. fontStyle: 'bold',
  559. token: 'markup.bold',
  560. },
  561. {
  562. foreground: 'c8e1ff',
  563. token: 'markup.raw',
  564. },
  565. {
  566. foreground: 'b31d28',
  567. background: 'ffeef0',
  568. token: 'markup.deleted',
  569. },
  570. {
  571. foreground: 'b31d28',
  572. background: 'ffeef0',
  573. token: 'meta.diff.header.from-file',
  574. },
  575. {
  576. foreground: 'b31d28',
  577. background: 'ffeef0',
  578. token: 'punctuation.definition.deleted',
  579. },
  580. {
  581. foreground: '176f2c',
  582. background: 'f0fff4',
  583. token: 'markup.inserted',
  584. },
  585. {
  586. foreground: '176f2c',
  587. background: 'f0fff4',
  588. token: 'meta.diff.header.to-file',
  589. },
  590. {
  591. foreground: '176f2c',
  592. background: 'f0fff4',
  593. token: 'punctuation.definition.inserted',
  594. },
  595. {
  596. foreground: 'b08800',
  597. background: 'fffdef',
  598. token: 'markup.changed',
  599. },
  600. {
  601. foreground: 'b08800',
  602. background: 'fffdef',
  603. token: 'punctuation.definition.changed',
  604. },
  605. {
  606. foreground: '2f363d',
  607. background: '959da5',
  608. token: 'markup.ignored',
  609. },
  610. {
  611. foreground: '2f363d',
  612. background: '959da5',
  613. token: 'markup.untracked',
  614. },
  615. {
  616. foreground: 'b392f0',
  617. fontStyle: 'bold',
  618. token: 'meta.diff.range',
  619. },
  620. {
  621. foreground: 'c8e1ff',
  622. token: 'meta.diff.header',
  623. },
  624. {
  625. foreground: '0366d6',
  626. fontStyle: 'bold',
  627. token: 'meta.separator',
  628. },
  629. {
  630. foreground: '0366d6',
  631. token: 'meta.output',
  632. },
  633. {
  634. foreground: 'ffeef0',
  635. token: 'brackethighlighter.tag',
  636. },
  637. {
  638. foreground: 'ffeef0',
  639. token: 'brackethighlighter.curly',
  640. },
  641. {
  642. foreground: 'ffeef0',
  643. token: 'brackethighlighter.round',
  644. },
  645. {
  646. foreground: 'ffeef0',
  647. token: 'brackethighlighter.square',
  648. },
  649. {
  650. foreground: 'ffeef0',
  651. token: 'brackethighlighter.angle',
  652. },
  653. {
  654. foreground: 'ffeef0',
  655. token: 'brackethighlighter.quote',
  656. },
  657. {
  658. foreground: 'd73a49',
  659. token: 'brackethighlighter.unmatched',
  660. },
  661. {
  662. foreground: 'd73a49',
  663. token: 'sublimelinter.mark.error',
  664. },
  665. {
  666. foreground: 'fb8532',
  667. token: 'sublimelinter.mark.warning',
  668. },
  669. {
  670. foreground: '6a737d',
  671. token: 'sublimelinter.gutter-mark',
  672. },
  673. {
  674. foreground: '79b8ff',
  675. fontStyle: 'underline',
  676. token: 'constant.other.reference.link',
  677. },
  678. {
  679. foreground: '79b8ff',
  680. fontStyle: 'underline',
  681. token: 'string.other.link',
  682. },
  683. ],
  684. colors: {
  685. 'editor.foreground': '#f6f8fa',
  686. 'editor.background': '#24292e',
  687. 'editor.selectionBackground': '#4c2889',
  688. 'editor.inactiveSelectionBackground': '#444d56',
  689. 'editor.lineHighlightBackground': '#444d56',
  690. 'editorCursor.foreground': '#ffffff',
  691. 'editorWhitespace.foreground': '#6a737d',
  692. 'editorIndentGuide.background': '#6a737d',
  693. 'editorIndentGuide.activeBackground': '#f6f8fa',
  694. 'editor.selectionHighlightBorder': '#444d56',
  695. },
  696. };