Eclipse Dark Theme Color Scheme
Publisher: Hannes SchneidermayerThemes in package: 1
An information-rich dark theme with semantic color distinctions for Java and thoughtful fallbacks for JavaScript, TypeScript, HTML, CSS, and more.
An information-rich dark theme with semantic color distinctions for Java and thoughtful fallbacks for JavaScript, TypeScript, HTML, CSS, and more.
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 | #808080 | italic |
| entity.name.tag.documentation, keyword.other.documentation, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #8E8070 | bold italic |
| variable.other.jsdoc, variable.parameter.documentation, string.other.link.title.documentation | #9A8C7C | — |
| markup.inline.raw.string.markdown, markup.underline.link.markdown, markup.underline.link.image.markdown | #1E789B | — |
| string, string.quoted, string.template, punctuation.definition.string | #17C6A3 | — |
| constant.character.escape, constant.character.entity, constant.character.format.placeholder | #CC6C1D | bold |
| constant.character.escape.java | #DB771D | bold |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new | #CC6C1D | bold |
| keyword.operator, punctuation.separator.key-value, punctuation.separator.pipe | #E6E6FA | |
| punctuation.bracket, punctuation.definition, punctuation.section, punctuation.separator, meta.brace | #F9FAF4 | — |
| constant.numeric | #6897BB | — |
| constant.language, support.constant | #CC6C1D | bold |
| entity.name.type.class, entity.name.class, support.class, support.type, meta.class entity.name.type | #1290C3 | — |
| entity.name.type.interface, entity.name.interface | #80F2F6 | — |
| entity.name.type.enum, entity.name.enum | #CC81BA | italic |
| entity.name.type.parameter, storage.type.generic, meta.type.parameters entity.name.type | #BFA4A4 | — |
| entity.name.function, meta.function.definition entity.name.function, meta.method.declaration entity.name.function | #1EB540 | — |
| meta.function-call entity.name.function, meta.method-call entity.name.function, support.function, variable.function | #A7EC21 | — |
| entity.name.function.inherited, meta.method.inherited entity.name.function | #CDF668 | — |
| variable.parameter, meta.parameters variable.other.readwrite | #79ABFF | — |
| variable.other.readwrite, variable.other.object, variable.other.local | #F2F250 | — |
| variable.other.property, variable.other.member, variable.other.field | #66E1F8 | — |
| variable.other.constant, variable.other.constant.property, constant.other | #8DDAF8 | bold italic |
| storage.type.annotation, entity.name.type.annotation, entity.name.function.decorator, meta.decorator variable.other.readwrite | #A0A0A0 | italic |
| constant.other.key.java, entity.name.annotationMember.java, variable.other.enummember | #EB4B64 | — |
| entity.name.tag | #1290C3 | — |
| entity.other.attribute-name | #79ABFF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #80F2F6 | — |
| support.type.property-name.css, meta.property-name.css | #66E1F8 | — |
| support.type.property-name.json, string.json support.type.property-name.json | #66E1F8 | — |
| markup.heading, entity.name.section.markdown | #3EABE6 | bold |
| markup.bold | #F9FAF4 | bold |
| markup.italic | #F9FAF4 | italic |
| invalid, invalid.illegal, invalid.deprecated | #EB4B64 | underline |
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}!`;
}