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 |
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}!`;
}