addons/isl/src/ComparisonView/SplitDiffView/VSCodeLightPlusTheme.tsblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import type {IRawTheme} from 'vscode-textmate';
b69ab319
b69ab3110// Theme data fetched from:
b69ab3111// https://github.com/microsoft/vscode/raw/a716714a88891cad69c0753fb95923870df295f5/extensions/theme-defaults/themes/light_plus.json
b69ab3112
b69ab3113const theme: IRawTheme = {
b69ab3114 name: 'Light+ (default light)',
b69ab3115 settings: [
b69ab3116 {
b69ab3117 settings: {
b69ab3118 foreground: '#000000',
b69ab3119 background: '#FFFFFF',
b69ab3120 },
b69ab3121 },
b69ab3122 {
b69ab3123 name: 'Function declarations',
b69ab3124 scope: [
b69ab3125 'entity.name.function',
b69ab3126 'support.function',
b69ab3127 'support.constant.handlebars',
b69ab3128 'source.powershell variable.other.member',
b69ab3129 'entity.name.operator.custom-literal',
b69ab3130 ],
b69ab3131 settings: {
b69ab3132 foreground: '#795E26',
b69ab3133 },
b69ab3134 },
b69ab3135 {
b69ab3136 name: 'Types declaration and references',
b69ab3137 scope: [
b69ab3138 'meta.return-type',
b69ab3139 'support.class',
b69ab3140 'support.type',
b69ab3141 'entity.name.type',
b69ab3142 'entity.name.namespace',
b69ab3143 'entity.other.attribute',
b69ab3144 'entity.name.scope-resolution',
b69ab3145 'entity.name.class',
b69ab3146 'storage.type.numeric.go',
b69ab3147 'storage.type.byte.go',
b69ab3148 'storage.type.boolean.go',
b69ab3149 'storage.type.string.go',
b69ab3150 'storage.type.uintptr.go',
b69ab3151 'storage.type.error.go',
b69ab3152 'storage.type.rune.go',
b69ab3153 'storage.type.cs',
b69ab3154 'storage.type.generic.cs',
b69ab3155 'storage.type.modifier.cs',
b69ab3156 'storage.type.variable.cs',
b69ab3157 'storage.type.annotation.java',
b69ab3158 'storage.type.generic.java',
b69ab3159 'storage.type.java',
b69ab3160 'storage.type.object.array.java',
b69ab3161 'storage.type.primitive.array.java',
b69ab3162 'storage.type.primitive.java',
b69ab3163 'storage.type.token.java',
b69ab3164 'storage.type.groovy',
b69ab3165 'storage.type.annotation.groovy',
b69ab3166 'storage.type.parameters.groovy',
b69ab3167 'storage.type.generic.groovy',
b69ab3168 'storage.type.object.array.groovy',
b69ab3169 'storage.type.primitive.array.groovy',
b69ab3170 'storage.type.primitive.groovy',
b69ab3171 ],
b69ab3172 settings: {
b69ab3173 foreground: '#267f99',
b69ab3174 },
b69ab3175 },
b69ab3176 {
b69ab3177 name: 'Types declaration and references, TS grammar specific',
b69ab3178 scope: [
b69ab3179 'meta.type.cast.expr',
b69ab3180 'meta.type.new.expr',
b69ab3181 'support.constant.math',
b69ab3182 'support.constant.dom',
b69ab3183 'support.constant.json',
b69ab3184 'entity.other.inherited-class',
b69ab3185 ],
b69ab3186 settings: {
b69ab3187 foreground: '#267f99',
b69ab3188 },
b69ab3189 },
b69ab3190 {
b69ab3191 name: 'Control flow / Special keywords',
b69ab3192 scope: [
b69ab3193 'keyword.control',
b69ab3194 'source.cpp keyword.operator.new',
b69ab3195 'source.cpp keyword.operator.delete',
b69ab3196 'keyword.other.using',
b69ab3197 'keyword.other.operator',
b69ab3198 'entity.name.operator',
b69ab3199 ],
b69ab31100 settings: {
b69ab31101 foreground: '#AF00DB',
b69ab31102 },
b69ab31103 },
b69ab31104 {
b69ab31105 name: 'Variable and parameter name',
b69ab31106 scope: [
b69ab31107 'variable',
b69ab31108 'meta.definition.variable.name',
b69ab31109 'support.variable',
b69ab31110 'entity.name.variable',
b69ab31111 ],
b69ab31112 settings: {
b69ab31113 foreground: '#001080',
b69ab31114 },
b69ab31115 },
b69ab31116 {
b69ab31117 name: 'Constants and enums',
b69ab31118 scope: ['variable.other.constant', 'variable.other.enummember'],
b69ab31119 settings: {
b69ab31120 foreground: '#328267',
b69ab31121 },
b69ab31122 },
b69ab31123 {
b69ab31124 name: 'Object keys, TS grammar specific',
b69ab31125 scope: 'meta.object-literal.key',
b69ab31126 settings: {
b69ab31127 foreground: '#001080',
b69ab31128 },
b69ab31129 },
b69ab31130 {
b69ab31131 name: 'CSS property value',
b69ab31132 scope: [
b69ab31133 'support.constant.property-value',
b69ab31134 'support.constant.font-name',
b69ab31135 'support.constant.media-type',
b69ab31136 'support.constant.media',
b69ab31137 'constant.other.color.rgb-value',
b69ab31138 'constant.other.rgb-value',
b69ab31139 'support.constant.color',
b69ab31140 ],
b69ab31141 settings: {
b69ab31142 foreground: '#0451a5',
b69ab31143 },
b69ab31144 },
b69ab31145 {
b69ab31146 name: 'Regular expression groups',
b69ab31147 scope: [
b69ab31148 'punctuation.definition.group.regexp',
b69ab31149 'punctuation.definition.group.assertion.regexp',
b69ab31150 'punctuation.definition.character-class.regexp',
b69ab31151 'punctuation.character.set.begin.regexp',
b69ab31152 'punctuation.character.set.end.regexp',
b69ab31153 'keyword.operator.negation.regexp',
b69ab31154 'support.other.parenthesis.regexp',
b69ab31155 ],
b69ab31156 settings: {
b69ab31157 foreground: '#d16969',
b69ab31158 },
b69ab31159 },
b69ab31160 {
b69ab31161 scope: [
b69ab31162 'constant.character.character-class.regexp',
b69ab31163 'constant.other.character-class.set.regexp',
b69ab31164 'constant.other.character-class.regexp',
b69ab31165 'constant.character.set.regexp',
b69ab31166 ],
b69ab31167 settings: {
b69ab31168 foreground: '#811f3f',
b69ab31169 },
b69ab31170 },
b69ab31171 {
b69ab31172 scope: 'keyword.operator.quantifier.regexp',
b69ab31173 settings: {
b69ab31174 foreground: '#000000',
b69ab31175 },
b69ab31176 },
b69ab31177 {
b69ab31178 scope: ['keyword.operator.or.regexp', 'keyword.control.anchor.regexp'],
b69ab31179 settings: {
b69ab31180 foreground: '#ff0000',
b69ab31181 },
b69ab31182 },
b69ab31183 {
b69ab31184 scope: 'constant.character',
b69ab31185 settings: {
b69ab31186 foreground: '#0000ff',
b69ab31187 },
b69ab31188 },
b69ab31189 {
b69ab31190 scope: 'constant.character.escape',
b69ab31191 settings: {
b69ab31192 foreground: '#ff0000',
b69ab31193 },
b69ab31194 },
b69ab31195 {
b69ab31196 scope: 'entity.name.label',
b69ab31197 settings: {
b69ab31198 foreground: '#000000',
b69ab31199 },
b69ab31200 },
b69ab31201 {
b69ab31202 scope: ['meta.embedded', 'source.groovy.embedded'],
b69ab31203 settings: {
b69ab31204 foreground: '#000000ff',
b69ab31205 },
b69ab31206 },
b69ab31207 {
b69ab31208 scope: 'emphasis',
b69ab31209 settings: {
b69ab31210 fontStyle: 'italic',
b69ab31211 },
b69ab31212 },
b69ab31213 {
b69ab31214 scope: 'strong',
b69ab31215 settings: {
b69ab31216 fontStyle: 'bold',
b69ab31217 },
b69ab31218 },
b69ab31219 {
b69ab31220 scope: 'meta.diff.header',
b69ab31221 settings: {
b69ab31222 foreground: '#000080',
b69ab31223 },
b69ab31224 },
b69ab31225 {
b69ab31226 scope: 'comment',
b69ab31227 settings: {
b69ab31228 foreground: '#008000',
b69ab31229 },
b69ab31230 },
b69ab31231 {
b69ab31232 scope: 'constant.language',
b69ab31233 settings: {
b69ab31234 foreground: '#0000ff',
b69ab31235 },
b69ab31236 },
b69ab31237 {
b69ab31238 scope: [
b69ab31239 'constant.numeric',
b69ab31240 'entity.name.operator.custom-literal.number',
b69ab31241 'keyword.operator.plus.exponent',
b69ab31242 'keyword.operator.minus.exponent',
b69ab31243 ],
b69ab31244 settings: {
b69ab31245 foreground: '#098658',
b69ab31246 },
b69ab31247 },
b69ab31248 {
b69ab31249 scope: 'constant.regexp',
b69ab31250 settings: {
b69ab31251 foreground: '#811f3f',
b69ab31252 },
b69ab31253 },
b69ab31254 {
b69ab31255 name: 'css tags in selectors, xml tags',
b69ab31256 scope: 'entity.name.tag',
b69ab31257 settings: {
b69ab31258 foreground: '#800000',
b69ab31259 },
b69ab31260 },
b69ab31261 {
b69ab31262 scope: 'entity.name.selector',
b69ab31263 settings: {
b69ab31264 foreground: '#800000',
b69ab31265 },
b69ab31266 },
b69ab31267 {
b69ab31268 scope: 'entity.other.attribute-name',
b69ab31269 settings: {
b69ab31270 foreground: '#ff0000',
b69ab31271 },
b69ab31272 },
b69ab31273 {
b69ab31274 scope: [
b69ab31275 'entity.other.attribute-name.class.css',
b69ab31276 'entity.other.attribute-name.class.mixin.css',
b69ab31277 'entity.other.attribute-name.id.css',
b69ab31278 'entity.other.attribute-name.parent-selector.css',
b69ab31279 'entity.other.attribute-name.pseudo-class.css',
b69ab31280 'entity.other.attribute-name.pseudo-element.css',
b69ab31281 'source.css.less entity.other.attribute-name.id',
b69ab31282 'entity.other.attribute-name.attribute.scss',
b69ab31283 'entity.other.attribute-name.scss',
b69ab31284 ],
b69ab31285 settings: {
b69ab31286 foreground: '#800000',
b69ab31287 },
b69ab31288 },
b69ab31289 {
b69ab31290 scope: 'invalid',
b69ab31291 settings: {
b69ab31292 foreground: '#cd3131',
b69ab31293 },
b69ab31294 },
b69ab31295 {
b69ab31296 scope: 'markup.underline',
b69ab31297 settings: {
b69ab31298 fontStyle: 'underline',
b69ab31299 },
b69ab31300 },
b69ab31301 {
b69ab31302 scope: 'markup.bold',
b69ab31303 settings: {
b69ab31304 fontStyle: 'bold',
b69ab31305 foreground: '#000080',
b69ab31306 },
b69ab31307 },
b69ab31308 {
b69ab31309 scope: 'markup.heading',
b69ab31310 settings: {
b69ab31311 fontStyle: 'bold',
b69ab31312 foreground: '#800000',
b69ab31313 },
b69ab31314 },
b69ab31315 {
b69ab31316 scope: 'markup.italic',
b69ab31317 settings: {
b69ab31318 fontStyle: 'italic',
b69ab31319 },
b69ab31320 },
b69ab31321 {
b69ab31322 scope: 'markup.inserted',
b69ab31323 settings: {
b69ab31324 foreground: '#098658',
b69ab31325 },
b69ab31326 },
b69ab31327 {
b69ab31328 scope: 'markup.deleted',
b69ab31329 settings: {
b69ab31330 foreground: '#a31515',
b69ab31331 },
b69ab31332 },
b69ab31333 {
b69ab31334 scope: 'markup.changed',
b69ab31335 settings: {
b69ab31336 foreground: '#0451a5',
b69ab31337 },
b69ab31338 },
b69ab31339 {
b69ab31340 scope: [
b69ab31341 'punctuation.definition.quote.begin.markdown',
b69ab31342 'punctuation.definition.list.begin.markdown',
b69ab31343 ],
b69ab31344 settings: {
b69ab31345 foreground: '#0451a5',
b69ab31346 },
b69ab31347 },
b69ab31348 {
b69ab31349 scope: 'markup.inline.raw',
b69ab31350 settings: {
b69ab31351 foreground: '#800000',
b69ab31352 },
b69ab31353 },
b69ab31354 {
b69ab31355 name: 'brackets of XML/HTML tags',
b69ab31356 scope: 'punctuation.definition.tag',
b69ab31357 settings: {
b69ab31358 foreground: '#800000',
b69ab31359 },
b69ab31360 },
b69ab31361 {
b69ab31362 scope: ['meta.preprocessor', 'entity.name.function.preprocessor'],
b69ab31363 settings: {
b69ab31364 foreground: '#0000ff',
b69ab31365 },
b69ab31366 },
b69ab31367 {
b69ab31368 scope: 'meta.preprocessor.string',
b69ab31369 settings: {
b69ab31370 foreground: '#a31515',
b69ab31371 },
b69ab31372 },
b69ab31373 {
b69ab31374 scope: 'meta.preprocessor.numeric',
b69ab31375 settings: {
b69ab31376 foreground: '#098658',
b69ab31377 },
b69ab31378 },
b69ab31379 {
b69ab31380 scope: 'meta.structure.dictionary.key.python',
b69ab31381 settings: {
b69ab31382 foreground: '#0451a5',
b69ab31383 },
b69ab31384 },
b69ab31385 {
b69ab31386 scope: 'storage',
b69ab31387 settings: {
b69ab31388 foreground: '#0000ff',
b69ab31389 },
b69ab31390 },
b69ab31391 {
b69ab31392 scope: 'storage.type',
b69ab31393 settings: {
b69ab31394 foreground: '#0000ff',
b69ab31395 },
b69ab31396 },
b69ab31397 {
b69ab31398 scope: ['storage.modifier', 'keyword.operator.noexcept'],
b69ab31399 settings: {
b69ab31400 foreground: '#0000ff',
b69ab31401 },
b69ab31402 },
b69ab31403 {
b69ab31404 scope: ['string', 'entity.name.operator.custom-literal.string', 'meta.embedded.assembly'],
b69ab31405 settings: {
b69ab31406 foreground: '#a31515',
b69ab31407 },
b69ab31408 },
b69ab31409 {
b69ab31410 scope: [
b69ab31411 'string.comment.buffered.block.pug',
b69ab31412 'string.quoted.pug',
b69ab31413 'string.interpolated.pug',
b69ab31414 'string.unquoted.plain.in.yaml',
b69ab31415 'string.unquoted.plain.out.yaml',
b69ab31416 'string.unquoted.block.yaml',
b69ab31417 'string.quoted.single.yaml',
b69ab31418 'string.quoted.double.xml',
b69ab31419 'string.quoted.single.xml',
b69ab31420 'string.unquoted.cdata.xml',
b69ab31421 'string.quoted.double.html',
b69ab31422 'string.quoted.single.html',
b69ab31423 'string.unquoted.html',
b69ab31424 'string.quoted.single.handlebars',
b69ab31425 'string.quoted.double.handlebars',
b69ab31426 ],
b69ab31427 settings: {
b69ab31428 foreground: '#0000ff',
b69ab31429 },
b69ab31430 },
b69ab31431 {
b69ab31432 scope: 'string.regexp',
b69ab31433 settings: {
b69ab31434 foreground: '#811f3f',
b69ab31435 },
b69ab31436 },
b69ab31437 {
b69ab31438 name: 'String interpolation',
b69ab31439 scope: [
b69ab31440 'punctuation.definition.template-expression.begin',
b69ab31441 'punctuation.definition.template-expression.end',
b69ab31442 'punctuation.section.embedded',
b69ab31443 ],
b69ab31444 settings: {
b69ab31445 foreground: '#0000ff',
b69ab31446 },
b69ab31447 },
b69ab31448 {
b69ab31449 name: 'Reset JavaScript string interpolation expression',
b69ab31450 scope: 'meta.template.expression',
b69ab31451 settings: {
b69ab31452 foreground: '#000000',
b69ab31453 },
b69ab31454 },
b69ab31455 {
b69ab31456 scope: [
b69ab31457 'support.type.vendored.property-name',
b69ab31458 'support.type.property-name',
b69ab31459 'variable.css',
b69ab31460 'variable.scss',
b69ab31461 'variable.other.less',
b69ab31462 'source.coffee.embedded',
b69ab31463 ],
b69ab31464 settings: {
b69ab31465 foreground: '#ff0000',
b69ab31466 },
b69ab31467 },
b69ab31468 {
b69ab31469 scope: 'support.type.property-name.json',
b69ab31470 settings: {
b69ab31471 foreground: '#0451a5',
b69ab31472 },
b69ab31473 },
b69ab31474 {
b69ab31475 scope: 'keyword',
b69ab31476 settings: {
b69ab31477 foreground: '#0000ff',
b69ab31478 },
b69ab31479 },
b69ab31480 {
b69ab31481 scope: 'keyword.operator',
b69ab31482 settings: {
b69ab31483 foreground: '#000000',
b69ab31484 },
b69ab31485 },
b69ab31486 {
b69ab31487 scope: [
b69ab31488 'keyword.operator.new',
b69ab31489 'keyword.operator.expression',
b69ab31490 'keyword.operator.cast',
b69ab31491 'keyword.operator.sizeof',
b69ab31492 'keyword.operator.alignof',
b69ab31493 'keyword.operator.typeid',
b69ab31494 'keyword.operator.alignas',
b69ab31495 'keyword.operator.instanceof',
b69ab31496 'keyword.operator.logical.python',
b69ab31497 'keyword.operator.wordlike',
b69ab31498 ],
b69ab31499 settings: {
b69ab31500 foreground: '#0000ff',
b69ab31501 },
b69ab31502 },
b69ab31503 {
b69ab31504 scope: 'keyword.other.unit',
b69ab31505 settings: {
b69ab31506 foreground: '#098658',
b69ab31507 },
b69ab31508 },
b69ab31509 {
b69ab31510 scope: ['punctuation.section.embedded.begin.php', 'punctuation.section.embedded.end.php'],
b69ab31511 settings: {
b69ab31512 foreground: '#800000',
b69ab31513 },
b69ab31514 },
b69ab31515 {
b69ab31516 scope: 'support.function.git-rebase',
b69ab31517 settings: {
b69ab31518 foreground: '#0451a5',
b69ab31519 },
b69ab31520 },
b69ab31521 {
b69ab31522 scope: 'constant.sha.git-rebase',
b69ab31523 settings: {
b69ab31524 foreground: '#098658',
b69ab31525 },
b69ab31526 },
b69ab31527 {
b69ab31528 name: 'coloring of the Java import and package identifiers',
b69ab31529 scope: [
b69ab31530 'storage.modifier.import.java',
b69ab31531 'variable.language.wildcard.java',
b69ab31532 'storage.modifier.package.java',
b69ab31533 ],
b69ab31534 settings: {
b69ab31535 foreground: '#000000',
b69ab31536 },
b69ab31537 },
b69ab31538 {
b69ab31539 name: 'this.self',
b69ab31540 scope: 'variable.language',
b69ab31541 settings: {
b69ab31542 foreground: '#0000ff',
b69ab31543 },
b69ab31544 },
b69ab31545 ],
b69ab31546};
b69ab31547
b69ab31548export default theme;