Path: blob/main/src/vs/editor/standalone/common/themes.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { editorActiveIndentGuide1, editorIndentGuide1 } from '../../common/core/editorColorRegistry.js';6import { IStandaloneThemeData } from './standaloneTheme.js';7import { editorBackground, editorForeground, editorInactiveSelection, editorSelectionHighlight } from '../../../platform/theme/common/colorRegistry.js';89/* -------------------------------- Begin vs theme -------------------------------- */10export const vs: IStandaloneThemeData = {11base: 'vs',12inherit: false,13rules: [14{ token: '', foreground: '000000', background: 'fffffe' },15{ token: 'invalid', foreground: 'cd3131' },16{ token: 'emphasis', fontStyle: 'italic' },17{ token: 'strong', fontStyle: 'bold' },1819{ token: 'variable', foreground: '001188' },20{ token: 'variable.predefined', foreground: '4864AA' },21{ token: 'constant', foreground: 'dd0000' },22{ token: 'comment', foreground: '008000' },23{ token: 'number', foreground: '098658' },24{ token: 'number.hex', foreground: '3030c0' },25{ token: 'regexp', foreground: '800000' },26{ token: 'annotation', foreground: '808080' },27{ token: 'type', foreground: '008080' },2829{ token: 'delimiter', foreground: '000000' },30{ token: 'delimiter.html', foreground: '383838' },31{ token: 'delimiter.xml', foreground: '0000FF' },3233{ token: 'tag', foreground: '800000' },34{ token: 'tag.id.pug', foreground: '4F76AC' },35{ token: 'tag.class.pug', foreground: '4F76AC' },36{ token: 'meta.scss', foreground: '800000' },37{ token: 'metatag', foreground: 'e00000' },38{ token: 'metatag.content.html', foreground: 'FF0000' },39{ token: 'metatag.html', foreground: '808080' },40{ token: 'metatag.xml', foreground: '808080' },41{ token: 'metatag.php', fontStyle: 'bold' },4243{ token: 'key', foreground: '863B00' },44{ token: 'string.key.json', foreground: 'A31515' },45{ token: 'string.value.json', foreground: '0451A5' },4647{ token: 'attribute.name', foreground: 'FF0000' },48{ token: 'attribute.value', foreground: '0451A5' },49{ token: 'attribute.value.number', foreground: '098658' },50{ token: 'attribute.value.unit', foreground: '098658' },51{ token: 'attribute.value.html', foreground: '0000FF' },52{ token: 'attribute.value.xml', foreground: '0000FF' },5354{ token: 'string', foreground: 'A31515' },55{ token: 'string.html', foreground: '0000FF' },56{ token: 'string.sql', foreground: 'FF0000' },57{ token: 'string.yaml', foreground: '0451A5' },5859{ token: 'keyword', foreground: '0000FF' },60{ token: 'keyword.json', foreground: '0451A5' },61{ token: 'keyword.flow', foreground: 'AF00DB' },62{ token: 'keyword.flow.scss', foreground: '0000FF' },6364{ token: 'operator.scss', foreground: '666666' },65{ token: 'operator.sql', foreground: '778899' },66{ token: 'operator.swift', foreground: '666666' },67{ token: 'predefined.sql', foreground: 'C700C7' },68],69colors: {70[editorBackground]: '#FFFFFE',71[editorForeground]: '#000000',72[editorInactiveSelection]: '#E5EBF1',73[editorIndentGuide1]: '#D3D3D3',74[editorActiveIndentGuide1]: '#939393',75[editorSelectionHighlight]: '#ADD6FF4D'76}77};78/* -------------------------------- End vs theme -------------------------------- */798081/* -------------------------------- Begin vs-dark theme -------------------------------- */82export const vs_dark: IStandaloneThemeData = {83base: 'vs-dark',84inherit: false,85rules: [86{ token: '', foreground: 'D4D4D4', background: '1E1E1E' },87{ token: 'invalid', foreground: 'f44747' },88{ token: 'emphasis', fontStyle: 'italic' },89{ token: 'strong', fontStyle: 'bold' },9091{ token: 'variable', foreground: '74B0DF' },92{ token: 'variable.predefined', foreground: '4864AA' },93{ token: 'variable.parameter', foreground: '9CDCFE' },94{ token: 'constant', foreground: '569CD6' },95{ token: 'comment', foreground: '608B4E' },96{ token: 'number', foreground: 'B5CEA8' },97{ token: 'number.hex', foreground: '5BB498' },98{ token: 'regexp', foreground: 'B46695' },99{ token: 'annotation', foreground: 'cc6666' },100{ token: 'type', foreground: '3DC9B0' },101102{ token: 'delimiter', foreground: 'DCDCDC' },103{ token: 'delimiter.html', foreground: '808080' },104{ token: 'delimiter.xml', foreground: '808080' },105106{ token: 'tag', foreground: '569CD6' },107{ token: 'tag.id.pug', foreground: '4F76AC' },108{ token: 'tag.class.pug', foreground: '4F76AC' },109{ token: 'meta.scss', foreground: 'A79873' },110{ token: 'meta.tag', foreground: 'CE9178' },111{ token: 'metatag', foreground: 'DD6A6F' },112{ token: 'metatag.content.html', foreground: '9CDCFE' },113{ token: 'metatag.html', foreground: '569CD6' },114{ token: 'metatag.xml', foreground: '569CD6' },115{ token: 'metatag.php', fontStyle: 'bold' },116117{ token: 'key', foreground: '9CDCFE' },118{ token: 'string.key.json', foreground: '9CDCFE' },119{ token: 'string.value.json', foreground: 'CE9178' },120121{ token: 'attribute.name', foreground: '9CDCFE' },122{ token: 'attribute.value', foreground: 'CE9178' },123{ token: 'attribute.value.number.css', foreground: 'B5CEA8' },124{ token: 'attribute.value.unit.css', foreground: 'B5CEA8' },125{ token: 'attribute.value.hex.css', foreground: 'D4D4D4' },126127{ token: 'string', foreground: 'CE9178' },128{ token: 'string.sql', foreground: 'FF0000' },129130{ token: 'keyword', foreground: '569CD6' },131{ token: 'keyword.flow', foreground: 'C586C0' },132{ token: 'keyword.json', foreground: 'CE9178' },133{ token: 'keyword.flow.scss', foreground: '569CD6' },134135{ token: 'operator.scss', foreground: '909090' },136{ token: 'operator.sql', foreground: '778899' },137{ token: 'operator.swift', foreground: '909090' },138{ token: 'predefined.sql', foreground: 'FF00FF' },139],140colors: {141[editorBackground]: '#1E1E1E',142[editorForeground]: '#D4D4D4',143[editorInactiveSelection]: '#3A3D41',144[editorIndentGuide1]: '#404040',145[editorActiveIndentGuide1]: '#707070',146[editorSelectionHighlight]: '#ADD6FF26'147}148};149/* -------------------------------- End vs-dark theme -------------------------------- */150151152153/* -------------------------------- Begin hc-black theme -------------------------------- */154export const hc_black: IStandaloneThemeData = {155base: 'hc-black',156inherit: false,157rules: [158{ token: '', foreground: 'FFFFFF', background: '000000' },159{ token: 'invalid', foreground: 'f44747' },160{ token: 'emphasis', fontStyle: 'italic' },161{ token: 'strong', fontStyle: 'bold' },162163{ token: 'variable', foreground: '1AEBFF' },164{ token: 'variable.parameter', foreground: '9CDCFE' },165{ token: 'constant', foreground: '569CD6' },166{ token: 'comment', foreground: '608B4E' },167{ token: 'number', foreground: 'FFFFFF' },168{ token: 'regexp', foreground: 'C0C0C0' },169{ token: 'annotation', foreground: '569CD6' },170{ token: 'type', foreground: '3DC9B0' },171172{ token: 'delimiter', foreground: 'FFFF00' },173{ token: 'delimiter.html', foreground: 'FFFF00' },174175{ token: 'tag', foreground: '569CD6' },176{ token: 'tag.id.pug', foreground: '4F76AC' },177{ token: 'tag.class.pug', foreground: '4F76AC' },178{ token: 'meta', foreground: 'D4D4D4' },179{ token: 'meta.tag', foreground: 'CE9178' },180{ token: 'metatag', foreground: '569CD6' },181{ token: 'metatag.content.html', foreground: '1AEBFF' },182{ token: 'metatag.html', foreground: '569CD6' },183{ token: 'metatag.xml', foreground: '569CD6' },184{ token: 'metatag.php', fontStyle: 'bold' },185186{ token: 'key', foreground: '9CDCFE' },187{ token: 'string.key', foreground: '9CDCFE' },188{ token: 'string.value', foreground: 'CE9178' },189190{ token: 'attribute.name', foreground: '569CD6' },191{ token: 'attribute.value', foreground: '3FF23F' },192193{ token: 'string', foreground: 'CE9178' },194{ token: 'string.sql', foreground: 'FF0000' },195196{ token: 'keyword', foreground: '569CD6' },197{ token: 'keyword.flow', foreground: 'C586C0' },198199{ token: 'operator.sql', foreground: '778899' },200{ token: 'operator.swift', foreground: '909090' },201{ token: 'predefined.sql', foreground: 'FF00FF' },202],203colors: {204[editorBackground]: '#000000',205[editorForeground]: '#FFFFFF',206[editorIndentGuide1]: '#FFFFFF',207[editorActiveIndentGuide1]: '#FFFFFF',208}209};210/* -------------------------------- End hc-black theme -------------------------------- */211212/* -------------------------------- Begin hc-light theme -------------------------------- */213export const hc_light: IStandaloneThemeData = {214base: 'hc-light',215inherit: false,216rules: [217{ token: '', foreground: '292929', background: 'FFFFFF' },218{ token: 'invalid', foreground: 'B5200D' },219{ token: 'emphasis', fontStyle: 'italic' },220{ token: 'strong', fontStyle: 'bold' },221222{ token: 'variable', foreground: '264F70' },223{ token: 'variable.predefined', foreground: '4864AA' },224{ token: 'constant', foreground: 'dd0000' },225{ token: 'comment', foreground: '008000' },226{ token: 'number', foreground: '098658' },227{ token: 'number.hex', foreground: '3030c0' },228{ token: 'regexp', foreground: '800000' },229{ token: 'annotation', foreground: '808080' },230{ token: 'type', foreground: '008080' },231232{ token: 'delimiter', foreground: '000000' },233{ token: 'delimiter.html', foreground: '383838' },234235{ token: 'tag', foreground: '800000' },236{ token: 'tag.id.pug', foreground: '4F76AC' },237{ token: 'tag.class.pug', foreground: '4F76AC' },238{ token: 'meta.scss', foreground: '800000' },239{ token: 'metatag', foreground: 'e00000' },240{ token: 'metatag.content.html', foreground: 'B5200D' },241{ token: 'metatag.html', foreground: '808080' },242{ token: 'metatag.xml', foreground: '808080' },243{ token: 'metatag.php', fontStyle: 'bold' },244245{ token: 'key', foreground: '863B00' },246{ token: 'string.key.json', foreground: 'A31515' },247{ token: 'string.value.json', foreground: '0451A5' },248249{ token: 'attribute.name', foreground: '264F78' },250{ token: 'attribute.value', foreground: '0451A5' },251252{ token: 'string', foreground: 'A31515' },253{ token: 'string.sql', foreground: 'B5200D' },254255{ token: 'keyword', foreground: '0000FF' },256{ token: 'keyword.flow', foreground: 'AF00DB' },257258{ token: 'operator.sql', foreground: '778899' },259{ token: 'operator.swift', foreground: '666666' },260{ token: 'predefined.sql', foreground: 'C700C7' },261],262colors: {263[editorBackground]: '#FFFFFF',264[editorForeground]: '#292929',265[editorIndentGuide1]: '#292929',266[editorActiveIndentGuide1]: '#292929',267}268};269/* -------------------------------- End hc-light theme -------------------------------- */270271272273