rust-go-classic-eclipse-color-theme
Publisher: growingspaghettiThemes in package: 2
A light theme that uses the classic Eclipse colors. Nothing special. This theme supports Rust and Go tokens.
A light theme that uses the classic Eclipse colors. Nothing special. This theme supports Rust and Go tokens.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #AAAAAA | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #448C27 | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #777777 | — |
| keyword, storage | #4B83CD | — |
| storage.type, support.type | #7A3E9D | — |
| constant.language, support.constant, variable.language | #AB6526 | — |
| variable, support.variable | #7A3E9D | — |
| entity.name.function, support.function | #AA3731 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #7A3E9D | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #AB6526 | — |
| string | #448C27 | — |
| constant.character.escape | #777777 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #AB6526 | — |
| punctuation | #777777 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #91B3E0 | — |
| entity.name.tag | #4B83CD | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #91B3E0 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7A3E9D | — |
| meta.property-name, support.type.property-name | #AB6526 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| constant.character | #2A00FF | — |
| constant | #323232 | — |
| constant.numeric | #ba4f37 | — |
| string | #2A00FF | — |
| comment, punctuation.definition.comment | #3F7F5F | italic |
| punctuation.brackets.angle.rust | #323232 | |
| punctuation.brackets.square.rust | #323232 | |
| keyword.operator.macro.dollar.rust | #7F0055 | |
| keyword.other.crate.rust | #7F0055 | |
| entity.name.type.metavariable.rust | #1948A6 | italic bold |
| keyword.operator.key-value.rust | #323232 | |
| variable.other.metavariable.specifier.rust | #646464 | |
| variable.other.metavariable.name.rust | #1948A6 | italic bold |
| entity.name.function.macro.rules.rust | #7F0055 | |
| entity.name.function.macro.rust | #323232 | |
| entity.name.type.macro.rust | #20999D | |
| punctuation.brackets.curly.rust | #323232 | |
| punctuation.definition.attribute.rust | #646464 | |
| keyword.operator.attribute.inner.rust | #646464 | |
| punctuation.brackets.attribute.rust | #646464 | |
| storage.type.rust | #7F0055 | |
| entity.name.module.rust | #323232 | |
| keyword.other.rust | #7F0055 | |
| comment.line.documentation.rust | #3F5FBF | italic |
| comment.line.double-slash.rust | #3F7F5F | italic |
| comment.block.rust | #3F7F5F | italic |
| constant.other.caps.rust | #1948A6 | italic bold |
| punctuation.separator.dot.decimal.rust | #323232 | |
| keyword.operator.exponent.rust | #323232 | |
| keyword.operator.exponent.sign.rust | #323232 | |
| constant.numeric.decimal.exponent.mantissa.rust | #323232 | |
| entity.name.type.numeric.rust | #646464 | |
| constant.language.bool.rust | #7F0055 | |
| constant.character.escape.backslash.rust | #1948A6 | |
| constant.character.escape.bit.rust | #1948A6 | |
| constant.character.escape.unicode.rust | #1948A6 | |
| constant.character.escape.unicode.punctuation.rust | #1948A6 | |
| keyword.other.fn.rust | #7F0055 | |
| keyword.other.let.rust, keyword.other.pub.rust | #7F0055 | |
| entity.name.function.rust | #323232 | |
| punctuation.brackets.angle.rust | #323232 | |
| punctuation.brackets.round.rust | #323232 | |
| punctuation.semi.rust | #323232 | |
| keyword.control.rust | #7F0055 | |
| storage.modifier.rust | #7F0055 | |
| storage.modifier.mut.rust | #7F0055 | |
| keyword.operator.logical.rust | #7F0055 | |
| keyword.operator.borrow.and.rust | #7F0055 | |
| keyword.operator.assignment.rust | #323232 | |
| keyword.operator.comparison.rust | #323232 | |
| keyword.operator.assignment.equal.rust | #323232 | |
| keyword.operator.math.rust | #323232 | |
| keyword.operator.namespace.rust | #323232 | |
| keyword.operator.dereference.rust | #7F0055 | |
| keyword.operator.subpattern.rust | #7F0055 | |
| keyword.operator.range.rust | #323232 | |
| keyword.operator.arrow.skinny.rust | #646464 | |
| keyword.operator.arrow.fat.rust | #646464 | |
| keyword.operator.question.rust | #7F0055 | italic bold |
| punctuation.definition.interpolation.rust | #3F7F5F | |
| punctuation.definition.lifetime.rust | #7F0055 | italic bold |
| entity.name.type.lifetime.rust | #7F0055 | italic bold |
| entity.name.namespace.rust | #323232 | |
| entity.name.type.rust | #323232 | |
| entity.name.type.primitive.rust | #646464 | |
| entity.name.type.trait.rust | #323232 | |
| entity.name.type.struct.rust | #323232 | |
| entity.name.type.enum.rust | #323232 | |
| entity.name.type.declaration.rust | #323232 | |
| entity.name.type.option.rust | #1948A6 | |
| entity.name.type.result.rust | #1948A6 | |
| punctuation.comma.rust | #646464 | |
| string.quoted.byte.raw.rust | #2A00FF | bold |
| punctuation.definition.string.rust | #2A00FF | |
| punctuation.definition.string.raw.rust | #2A00FF | bold |
| punctuation.definition.char.rust | #2A00FF | |
| variable.language.self.rust | #7F0055 | |
| variable.language.super.rust | #7F0055 | |
| variable.other.rust | #323232 | |
| storage.modifier.visibility.rust | #7F0055 | |
| entity.name.type.param.rust | #323232 | |
| entity.name.type.mod.rust | #323232 | |
| storage.modifier.mutable.rust | #7F0055 | |
| variable.other.mutable.rust | #0000C0 | italic |
| storage.type.core.rust | #646464 | |
| storage.class.std.rust | #646464 | |
| keyword.operator.sigil.rust | #7F0055 | |
| storage.type.function.rust | #7F0055 | |
| variable.other.map.rust | #323232 | |
| variable.other.return-value.rust | #000000 | |
| keyword.other.as.rust | #7F0055 | |
| variable.other.ref.rust | #323232 | |
| constant.other.placeholder.rust | #3F7F5F | |
| support.constant.core.rust | #1948A6 | |
| keyword.other.where.rust | #7F0055 | |
| entity.name.type.generic.rust | #323232 | |
| storage.modifier.const.rust | #7F0055 | |
| entity.name.lifetime.rust | #7F0055 | italic bold |
| support.function.std.rust | #323232 | |
| support.function.core.rust | #323232 | |
| support.function.builtin.rust | #323232 | |
| punctuation.other.paren.rust | #323232 | |
| constant.character.escape.rust | #1948A6 | |
| storage.type.module.rust | #7F0055 | |
| entity.name.type.module.rust | #323232 | |
| keyword.operator.arithmetic.rust | #323232 | |
| constant.language.boolean.rust | #7F0055 | |
| variable.language.ignored.rust | #323232 | |
| entity.name.type.hashmap.rust | #323232 | |
| keyword.control.fn.rust | #7F0055 | |
| punctuation.definition.string.begin.go | #2A00FF | |
| punctuation.definition.string.end.go | #2A00FF | |
| invalid.illegal.receive-channel.go | #FF0000 | |
| invalid.illegal.send-channel.go | #FF0000 | |
| invalid.illegal.slice.go | #FF0000 | |
| invalid.illegal.numeric.go | #FF0000 | |
| invalid.illegal.identifier.go | #FF0000 | |
| invalid.illegal.unknown-rune.go | #FF0000 | |
| invalid.illegal.unknown-escape.go | #FF0000 | |
| support.function.builtin.go | #323232 | |
| keyword.function.go | #7F0055 | |
| entity.name.function.go | #323232 | |
| support.function.go | #323232 | |
| constant.language.go | #7F0055 | |
| keyword.package.go | #7F0055 | |
| entity.name.package.go | #323232 | |
| keyword.type.go | #7F0055 | |
| entity.name.type.go | #323232 | |
| keyword.import.go, keyword.control.import.go | #7F0055 | |
| keyword.var.go | #7F0055 | |
| variable.other.assignment.go | #323232 | |
| variable.parameter.go, variable.other.go, variable.other.property.go, entity.name.function.support.go, variable.other.property.field.go | #323232 | |
| punctuation.terminator.go | #323232 | |
| punctuation.definition.begin.bracket.curly.go | #323232 | |
| punctuation.definition.end.bracket.curly.go | #323232 | |
| punctuation.definition.begin.bracket.round.go | #323232 | |
| punctuation.definition.end.bracket.round.go | #323232 | |
| punctuation.definition.bracket.square.go | #323232 | |
| punctuation.definition.comment.go | #3F7F5F | |
| punctuation.other.comma.go | #646464 | |
| punctuation.other.period.go | #646464 | |
| punctuation.other.colon.go | #646464 | |
| entity.alias.import.go | #323232 | |
| string.quoted.double.go | #2A00FF | |
| punctuation.definition.imports.begin.bracket.round.go | #323232 | |
| punctuation.definition.imports.end.bracket.round.go | #323232 | |
| keyword.control.go | #7F0055 | |
| keyword.channel.go | #7F0055 | |
| keyword.const.go | #7F0055 | |
| keyword.interface.go | #7F0055 | |
| keyword.map.go | #323232 | |
| keyword.struct.go | #7F0055 | |
| keyword.operator.address.go | #7F0055 | |
| keyword.operator.channel.go | #323232 | |
| keyword.operator.decrement.go | #323232 | |
| keyword.operator.increment.go | #323232 | |
| keyword.operator.comparison.go | #323232 | |
| keyword.operator.logical.go | #323232 | |
| keyword.operator.arithmetic.go | #7F0055 | |
| keyword.operator.arithmetic.bitwise.go | #323232 | |
| keyword.operator.ellipsis.go | #323232 | |
| constant.other.rune.go | #2A00FF | |
| storage.type.boolean.go, storage.type.byte.go, storage.type.error.go, storage.type.numeric.go, storage.type.rune.go, storage.type.string.go, storage.type.uintptr.go | #646464 | |
| constant.character.escape.go | #1948A6 | |
| constant.other.placeholder.go | #3F7F5F | |
| variable.other.declaration.go | #323232 | |
| punctuation.separator.constant.numeric.go, keyword.other.unit.exponent.decimal.go, keyword.operator.plus.exponent.decimal.go, keyword.operator.minus.exponent.decimal.go, keyword.other.unit.imaginary.go, keyword.other.unit.hexadecimal.go, keyword.other.unit.binary.go, keyword.other.unit.octal.go | #323232 | |
| invalid.deprecated.semicolon.python | #FF0000 | |
| meta.typehint.comment.python | #F4C82D | italic underline |
| comment.typehint.directive.notation.python | #F4C82D | italic underline |
| comment.typehint.ignore.notation.python | #323232 | |
| comment.typehint.ignore.notation.python | #646464 | |
| comment.typehint.punctuation.notation.python | #646464 | |
| comment.typehint.variable.notation.python | #323232 | |
| punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #2A00FF | |
| storage.type.string.python, string.quoted.single.python, string.interpolated.python, string.quoted.raw.single.python, string.quoted.multi.python, string.quoted.raw.multi.python | #2A00FF | |
| invalid.illegal.newline.python, invalid.illegal.line.continuation.python, invalid.illegal.name.python, invalid.illegal.dec.python, invalid.illegal.decorator.python, invalid.deprecated.backtick.python, invalid.illegal.operator.python, keyword.illegal.name.python, invalid.illegal.annotation.python, invalid.illegal.brace.python, invalid.deprecated.prefix.python | #FF0000 | |
| keyword.control.flow.python, keyword.operator.logical.python, storage.type.function.lambda.python | #7F0055 | |
| storage.type.function.python, storage.type.function.async.python | #7F0055 | |
| keyword.control.import.python, variable.legacy.builtin.python, support.variable.magic.python | #7F0055 | |
| storage.modifier.declaration.python | #7F0055 | |
| storage.type.class.python, support.type.metaclass.python, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.special.self.python | #7F0055 | |
| punctuation.separator.period.python | #323232 | |
| meta.attribute.python | #323232 | |
| constant.other.caps.python, keyword.codetag.notation.python | #1948A6 | italic bold |
| punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python | #323232 | |
| punctuation.separator.dict.python, punctuation.separator.element.python, punctuation.separator.inheritance.python, punctuation.section.class.begin.python, punctuation.section.function.lambda.begin.python, punctuation.separator.parameters.python, punctuation.separator.annotation.python, punctuation.separator.annotation.result.python, punctuation.separator.slice.python, punctuation.definition.decorator.python, punctuation.section.function.begin.python | #646464 | |
| punctuation.separator.continuation.line.python, constant.character.escape.python | #1948A6 | |
| keyword.operator.bitwise.python, keyword.operator.arithmetic.python, keyword.operator.comparison.python, keyword.operator.assignment.python | #323232 | |
| constant.language.python | #7F0055 | |
| storage.type.imaginary.number.python, storage.type.number.python | #323232 | |
| constant.character.format.placeholder.other.python | #3F7F5F | |
| storage.type.format.python | #3F7F5F | |
| entity.name.type.class.python, variable.parameter.class.python, entity.other.inherited-class.python | #323232 | |
| punctuation.definition.inheritance.begin.python, punctuation.definition.inheritance.end.python | #7F0055 | |
| variable.parameter.function.language.python, entity.name.function.python, meta.indexed-name.python, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python | #323232 | |
| entity.name.function.decorator.python | #646464 | |
| meta.function-call.generic.python, variable.parameter.function-call.python, support.function.builtin.python, support.function.magic.python | #323232 | |
| support.type.exception.python | #7F0055 | |
| support.type.python | #646464 | |
| punctuation.definition.comment.python | #3F7F5F | italic |
| invalid.illegal.newline.ts | #FF0000 | |
| entity.name.type.instance.jsdoc, punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc | #3F7F5F | italic |
| punctuation.definition.comment.ts, comment.line.double-slash.ts, comment.block.documentation.ts | #3F7F5F | italic |
| keyword.generator.asterisk.ts | #3F5FBF | |
| storage.modifier.ts, variable.language.this.ts, variable.language.super.ts, storage.type.class.ts, storage.type.interface.ts | #7F0055 | |
| keyword.control.trycatch.ts, keyword.control.loop.ts, keyword.control.flow.ts, keyword.control.switch.ts, keyword.control.conditional.ts, keyword.control.with.ts, keyword.other.debugger.ts, keyword.control.export.ts, keyword.operator.ternary.ts, storage.type.ts, keyword.operator.optional.ts, punctuation.accessor.optional.ts, storage.type.function.ts, keyword.control.import.ts, keyword.control.from.ts, storage.modifier.async.ts, constant.language.boolean.false.ts, constant.language.boolean.true.ts, support.type.builtin.ts, storage.type.enum.ts, keyword.control.as.ts, keyword.control.type.ts, keyword.operator.expression.instanceof.ts, keyword.operator.expression.keyof.ts, keyword.operator.expression.infer.ts, keyword.operator.expression.awaited.ts, keyword.operator.new.ts, keyword.operator.expression.void.ts, keyword.operator.expression.typeof.ts, constant.language.null.ts, constant.language.undefined.ts, constant.language.nan.ts, constant.language.infinity.ts, variable.language.arguments.ts, storage.type.namespace.ts, keyword.control.intrinsic.ts, keyword.control.require.ts, keyword.control.default.ts, support.variable.property.importmeta.ts, support.type.object.module.ts, support.class.ts, meta.type.constructor.ts, storage.type.internaldeclaration.ts, entity.other.attribute-name.directive.ts | #7F0055 | |
| entity.name.label.ts | #0000C0 | italic |
| variable.other.enummember.ts, support.constant.property.math.ts, support.constant.json.ts, support.constant.ts | #1948A6 | italic bold |
| punctuation.separator.label.ts, punctuation.decorator.ts, punctuation.separator.comma.ts, punctuation.separator.key-value.ts, storage.type.function.arrow.ts, support.type.primitive.ts, entity.name.type.ts, support.class.builtin.ts, support.class.error.ts, keyword.operator.type.annotation.ts, punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts, punctuation.definition.tag.directive.ts | #646464 | |
| meta.definition.variable.ts, entity.name.function.ts, keyword.operator.definiteassignment.ts, keyword.operator.assignment.ts, variable.other.readwrite.ts, variable.object.property.ts, punctuation.definition.block.ts, keyword.operator.rest.ts, punctuation.definition.binding-pattern.object.ts, punctuation.definition.binding-pattern.array.ts, meta.brace.round.ts, punctuation.definition.parameters.begin.ts, punctuation.definition.parameters.end.ts, meta.brace.angle.ts, entity.name.type.class.ts, entity.other.inherited-class.ts, entity.name.type.interface.ts, variable.other.object.ts, variable.other.property.ts, variable.parameter.ts, variable.other.readwrite.alias.ts, variable.object.property.ts, meta.definition.property, storage.type.property.ts, meta.brace.square.ts, entity.name.type.enum.ts, entity.name.type.module.ts, keyword.operator.assignment.compound.ts, keyword.operator.assignment.compound.bitwise.ts, keyword.operator.bitwise.shift.ts, keyword.operator.comparison.ts, keyword.operator.relational.ts, keyword.operator.logical.ts, keyword.operator.arithmetic.ts, keyword.operator.decrement.ts, keyword.operator.increment.ts, storage.type.numeric.bigint.ts, constant.numeric.decimal.ts, meta.delimiter.decimal.period.ts, support.function.ts, support.constant.math.ts, punctuation.accessor.ts, support.function.math.ts, variable.other.constant.ts, variable.other.constant.object.ts, keyword.operator.type.asserts.ts, entity.name.function.tagged-template.ts, punctuation.decorator.internaldeclaration.ts, entity.name.tag.directive.ts, variable.other.object.property.ts | #323232 | |
| punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts, string.quoted.double.ts, string.quoted.single.ts, punctuation.definition.string.template.begin.ts, punctuation.definition.string.template.end.ts | #2A00FF | |
| support.class.promise.ts | #1948A6 | |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #3F7F5F |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}