TheGreek
Publisher: hyushieThemes in package: 2
A sleek, strategic espionage-inspired theme — muted palette, geometric balance, absolute focus. Light & Dark variants.
A sleek, strategic espionage-inspired theme — muted palette, geometric balance, absolute focus. Light & Dark variants.
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 | #555555 | italic |
| comment.block.documentation | #555555 | italic |
| comment.line.double-slash | #555555 | italic |
| constant | #e88b5f | — |
| constant.character | #e88b5f | — |
| constant.language | #d0d0c8 | — |
| constant.numeric | #e88b5f | — |
| entity.name | #a2a87c | bold |
| entity.name.function | #de6a41 | bold |
| entity.name.method | #de6a41 | bold |
| entity.name.type | #a2a87c | bold |
| entity.name.type.class | #a2a87c | bold |
| entity.name.type.enum | #a2a87c | bold |
| entity.name.section | #de6a41 | bold |
| entity.name.tag | #777b6f | — |
| entity.other.attribute-name | #de6a41 | — |
| entity.other.inherited-class | #a2a87c | italic |
| invalid | #ef597a | |
| invalid.deprecated | #ff7090 | |
| keyword | #d0d0c8 | — |
| keyword.control | #d0d0c8 | — |
| keyword.operator | #888888 | — |
| keyword.other.unit | #e88b5f | — |
| markup.bold | — | bold |
| markup.changed | #ff7090 | — |
| markup.deleted | #ef597a | — |
| markup.heading | #de6a41 | bold |
| markup.inserted | #7a846a | — |
| markup.italic | — | italic |
| markup.list | #de6a41 | — |
| markup.inline.raw, markup.raw | #a2a87c | — |
| markup.quote | #888888 | italic |
| markup.underline | — | underline |
| markup.underline.link | #de6a41 | underline |
| meta.link | #de6a41 | — |
| meta.preprocessor | #888888 | — |
| meta.tag | #888888 | — |
| punctuation | #888888 | — |
| punctuation.definition.tag | #888888 | — |
| punctuation.separator, punctuation.terminator | #888888 | — |
| storage | #d0d0c8 | — |
| storage.modifier | #d0d0c8 | — |
| storage.type | #d0d0c8 | — |
| string | #7a846a | — |
| string.quoted | #7a846a | — |
| string.regexp | #a2a87c | — |
| string.unquoted | #7a846a | — |
| string.other.link | #de6a41 | underline |
| support | #d0d0c8 | — |
| support.function | #de6a41 | — |
| support.type | #a2a87c | — |
| variable | #d0d0c8 | — |
| variable.language | #d0d0c8 | italic |
| variable.other | #d0d0c8 | — |
| variable.other.property | #d0d0c8 | — |
| variable.other.constant | #e88b5f | — |
| variable.parameter | #d0d0c8 | italic |
| embedding | #a2a87c | — |
| entity.name.function.decorator | #a8a67b | — |
| variable.other.enummember | #e88b5f | — |
| constant.character.escape | #e88b5f | — |
| meta.object-literal.key | #d0d0c8 | — |
| entity.name.type.interface | #a2a87c | bold italic |
| variable.other.readwrite | #d0d0c8 | — |
| variable.other.object.property | #d0d0c8 | — |
| entity.name.tag.css | #d0d0c8 | — |
| entity.other.attribute-name.class.css | #de6a41 | — |
| entity.other.attribute-name.id.css | #de6a41 | — |
| entity.other.attribute-name.pseudo-class.css | #a8a67b | — |
| entity.other.attribute-name.pseudo-element.css | #a8a67b | — |
| support.type.property-name.css | #d0d0c8 | — |
| support.constant.property-value.css | #7a846a | — |
| support.function.var.css | #de6a41 | — |
| keyword.unit.css | #e88b5f | — |
| source.sass variable | #d0d0c8 | — |
| entity.name.tag.scss | #d0d0c8 | — |
| meta.property-value.scss variable | #d0d0c8 | — |
| source.ts keyword.operator | #d0d0c8 | — |
| source.ts keyword.control | #d0d0c8 | — |
| source.ts keyword.type | #d0d0c8 | — |
| source.ts storage.type | #d0d0c8 | — |
| meta.type.annotation.ts variable | #d0d0c8 | — |
| meta.type.annotation.ts type | #d0d0c8 | — |
| source.ts entity.name.type | #d0d0c8 | bold |
| source.ts variable.other.constant | #e88b5f | — |
| meta.arrow.ts variable | #d0d0c8 | — |
| source.tsx entity.name.tag | #d0d0c8 | — |
| source.tsx meta.tag variable | #de6a41 | — |
| source.python entity.name.function | #de6a41 | — |
| source.python keyword.control | #d0d0c8 | — |
| source.python storage.type | #d0d0c8 | — |
| source.python variable.parameter | #d0d0c8 | italic |
| source.go keyword | #d0d0c8 | — |
| source.go entity.name.type | #d0d0c8 | bold |
| source.go entity.name.function | #de6a41 | — |
| source.java keyword | #d0d0c8 | — |
| source.java storage.type | #d0d0c8 | — |
| source.java entity.name.type | #d0d0c8 | bold |
| source.java entity.name.function | #de6a41 | — |
| source.rust keyword | #d0d0c8 | — |
| source.rust storage.type | #d0d0c8 | — |
| source.rust entity.name.type | #d0d0c8 | bold |
| source.rust entity.name.function | #de6a41 | — |
| source.rust variable.language | #d0d0c8 | italic |
| source.rust lifecycle | #a8a67b | italic |
| source.rust macro | #de6a41 | — |
| source.c keyword | #d0d0c8 | — |
| source.c storage.type | #d0d0c8 | — |
| source.cpp keyword | #d0d0c8 | — |
| source.cpp storage.type | #d0d0c8 | — |
| source.yaml entity.name.tag | #d0d0c8 | — |
| source.yaml string | #7a846a | — |
| source.yaml constant | #e88b5f | — |
| source.toml entity.name.tag | #d0d0c8 | — |
| source.json string | #7a846a | — |
| source.json support.type | #e88b5f | — |
| source.json constant | #e88b5f | — |
| text.html.markdown | #d0d0c8 | — |
| text.html.markdown markup.inline.raw | #a2a87c | — |
| text.html.markdown meta.directive.name | #de6a41 | — |
| text.html.markdown meta.link | #de6a41 | — |
| text.html.markdown string.other.link | #de6a41 | — |
| text.html.markdown markup.list | #de6a41 | — |
| text.html.markdown markup.quote | #888888 | italic |
| text.html.markdown markup.raw | #a2a87c | — |
| text.html.derivative entity.name.tag | #d0d0c8 | — |
| text.html.derivative entity.other.attribute-name | #de6a41 | — |
| diff | #d0d0c8 | — |
| diff.header | #de6a41 | — |
| diff.inserted | #7a846a | — |
| diff.deleted | #ef597a | — |
| diff.changed | #e88b5f | — |
| log.error | #ef597a | bold |
| log.warning | #a2a87c | bold |
| log.info | #d0d0c8 | — |
| log.verbose | #888888 | — |
| marker | #d0d0c8 | — |
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}!`;
}