Eclipse Neon Theme
Publisher: pufferfishThemes in package: 1
Color theme inspired by Eclipse IDE Neon.
Color theme inspired by Eclipse IDE Neon.
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 |
|---|---|---|
| string, punctuation.definition.string | #17C6A3 | |
| constant.numeric.decimal | #6897BB | |
| keyword.other.documentation | #9A8C7C | |
| comment, punctuation.definition.comment | #626262 | |
| punctuation.section.enum.begin.bracket, punctuation.section.enum.end.bracket, punctuation.section.class.begin.bracket, punctuation.section.class.end.bracket, punctuation.section.method.begin.bracket, punctuation.section.method.end.bracket, punctuation.definition.parameters.begin.bracket, punctuation.definition.parameters.end.bracket, punctuation.definition.annotation-arguments.begin.bracket, punctuation.definition.annotation-arguments.end.bracket | #F9FAF4 | |
| constant.other.enum, variable.other.enummember | #8DDAF8 | bold italic |
| constant.other.key | #EB4B64 | |
| storage.type.annotation, punctuation.definition.annotation | #FF9393 | italic |
| storage.type.generic | #D7837F | |
| keyword, keyword.other.typedef.cpp, keyword.other.using, keyword.other.namespace, keyword.operator.expression, punctuation.definition.directive, storage.type, storage.modifier, variable.language, constant.language | #DD2867 | bold |
| keyword.operator, punctuation.bracket.angle, entity.name.function.operator, punctuation.terminator, punctuation.separator | #E6E6FA | |
| variable.parameter | #79ABFF | |
| variable.other.definition | #ED7F48 | |
| entity.name.function | #1EB540 | |
| entity.name.type.enum | #CC81BA | italic |
| entity.other.inherited-class, entity.name.type.class, entity.name.class, storage.type.java | #1290C3 | bold |
| invalid | #AB1F36 | underline |
| entity.name.tag.html | #03A8D8 | bold |
| entity.other.attribute-name.html | #A7EC21 | |
| punctuation.separator.key-value.html | #52CA11 | |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #0080FF | |
| punctuation.definition.entity.html, constant.character.entity.numeric.decimal.html | #DD2867 | |
| string.quoted.single.html, string.quoted.double.html | #17C6A3 | italic |
| meta.tag.metadata.doctype.html entity.other.attribute-name.html | #FEA88F | |
| meta.tag.metadata.doctype.html punctuation.definition.tag.begin.html, meta.tag.metadata.doctype.html punctuation.definition.tag.end.html | #A7EC21 | |
| entity.name.tag.css | #65F228 | |
| meta.property-name.css | #0699F0 | |
| support.constant.property-value.css, meta.property-value.css, meta.property-value.css punctuation.definition.constant.css, constant.numeric.css, source.css keyword | #17C6A3 | italic |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.css punctuation.definition.entity.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.css punctuation.definition.entity.css | #FB518C | |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.css punctuation.definition.entity.css | #A7EC21 | |
| source.css keyword.control.at-rule, source.css keyword.control.at-rule punctuation.definition.keyword.css | #A7EC21 | |
| support.constant.media.css | #DD2867 | |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.css punctuation.definition.entity.css | #12E046 | |
| keyword.operator.combinator.css | #A7EC21 | |
| meta.attribute-selector.css, meta.attribute-selector.css keyword.operator | #F7C517 | |
| meta.attribute-selector.css string.quoted, meta.attribute-selector.css punctuation.definition.string | #FF8080 | |
| meta.function.url.css, meta.function.url.css string.quoted, meta.function.url.css punctuation.definition.string | #17C6A3 | italic |
| entity.name.tag.wildcard.css | #A7EC21 |
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}!`;
}