Eclipse Midnight Theme
Publisher: EclipseThemes in package: 2
Two galactic dark themes -> Eclipse: Lunar and Eclipse: Solar. Designed for comfortable midnight coding.
Two galactic dark themes -> Eclipse: Lunar and Eclipse: Solar. Designed for comfortable midnight coding.
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 |
|---|---|---|
| punctuation.definition.comment, comment | #5A5048 | italic |
| comment.block.documentation, comment.documentation | #6E645C | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.delete | #C65D28 | — |
| keyword.operator, keyword.operator.template, keyword.operator.instantiation | #8D837A | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison | #8D837A | — |
| storage.type, storage.modifier, storage.type.function, storage.type.class | #C65D28 | — |
| string, string.quoted.single, string.quoted.double, string.quoted.triple | #BC9157 | — |
| string.template, string.interpolated | #BC9157 | — |
| string.escape, constant.character.escape | #C5A34A | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #C5A34A | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #B98245 | — |
| constant.character, constant.other | #B98245 | — |
| constant.other.symbol, constant.other.key | #B98245 | — |
| constant.other.color, constant.other.rgb-value | #B98245 | — |
| variable, variable.other, variable.other.object, variable.other.property | #CFC9C2 | — |
| variable.language, variable.other.readwrite | #D3CEC7 | — |
| variable.parameter, variable.parameter.function | #A9A097 | — |
| entity.name.function, entity.name.function.call, entity.name.function.macro, entity.name.method, support.function, support.macro | #EBE3D8 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, entity.name.namespace, entity.name.module, support.type, support.class, storage.type.generic, entity.other.inherited-class | #A69A8F | — |
| support.type.property-name, support.variable.property, entity.name.constant | #B98245 | — |
| support.constant, constant.other.placeholder | #B98245 | — |
| punctuation, punctuation.separator | #837A73 | — |
| punctuation.definition.string | #BC9157 | — |
| punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.block, punctuation.section | #837A73 | — |
| meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.definition.tag | #837A73 | — |
| punctuation.definition.function, punctuation.definition.method | #EBE3D8 | — |
| punctuation.definition.variable | #B98245 | — |
| operator | #8D837A | — |
| entity.name.tag, meta.tag | #C98454 | — |
| entity.other.attribute-name, entity.other.attribute-name.id, entity.other.attribute-name.class | #BFA98A | — |
| entity.name.selector, meta.selector | #B98245 | — |
| markup.heading, markup.heading.setext, markup.heading.markdown | #D47A45 | bold |
| markup.bold | #E1DDD8 | bold |
| markup.italic | #B98245 | italic |
| markup.link, markup.link.url, markup.underline.link | #B98245 | — |
| markup.quote, markup.quote.markdown | #8D837A | italic |
| markup.list, markup.list.numbered, markup.list.unnumbered | #E1DDD8 | — |
| markup.inline.raw, markup.fenced_code.block.markdown | #B98245 | — |
| markup.inserted | #55897E | — |
| markup.deleted | #A4514A | — |
| markup.changed | #C5A34A | — |
| markup.error | #A4514A | — |
| invalid, invalid.illegal | #A4514A | — |
| invalid.deprecated | #5A5048 | italic |
| none, default | #E1DDD8 | — |
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}!`;
}