Shadow of github
Publisher: david-git-devThemes in package: 1
that's a fork of color scheme github dark but not my style is another dev but say is anonimous :(
that's a fork of color scheme github dark but not my style is another dev but say is anonimous :(
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 |
|---|---|---|
| source, support.type.property-name.css | #c9d1d9 | — |
| entity.name.type.class | #ff7b72 | — |
| entity.name.type.interface, entity.name.type | #ff7b72 | — |
| entity.name.type.struct | #ff7b72 | — |
| entity.name.type.enum | #ff7b72 | — |
| meta.object-literal.key | #c9d1d9 | — |
| entity.name.function.method, meta.function.method | #3fb950 | — |
| entity.name.function, support.function, meta.function-call.generic | #ff7b72 | — |
| variable, meta.variable, variable.other.object.property, variable.other.readwrite.alias | #c9d1d9 | — |
| variable.other.object | #3fb950 | — |
| variable.other.global, variable.language.this | #ffcc00 | — |
| variable.other.local | #c9d1d9 | — |
| variable.parameter, meta.parameter | #c9d1d9 | — |
| variable.other.property, meta.property | #c9d1d9 | — |
| string, string.other.link, markup.inline.raw.string.markdown | #ffcc00 | — |
| constant.character.escape, constant.other.placeholder | #c9d1d9 | — |
| keyword | #79b8ff | — |
| keyword.control.import, keyword.control.from, keywaord.import | #79b8ff | — |
| storage.modifier, keyword.modifier, storage.type | #79b8ff | — |
| comment, punctuation.definition.comment | #f78166 | — |
| comment.documentation, comment.line.documentation | #f78166 | — |
| constant.numeric | #f37272 | — |
| constant.language.boolean, constant.language.json | #f37272 | — |
| keyword.operator | #79b8ff | — |
| entity.name.function.preprocessor, meta.preprocessor | #3fb950 | — |
| meta.preprocessor | #ffcc00 | — |
| markup.underline.link | #3fb950 | — |
| entity.name.tag | #79b8ff | — |
| support.class.component | #3fb950 | — |
| entity.other.attribute-name, meta.attribute | #ff7b72 | — |
| support.type | #3fb950 | — |
| variable.other.constant, variable.readonly | #3fb950 | — |
| entity.name.label, punctuation.definition.label | #ffcc00 | — |
| entity.name.namespace, storage.modifier.namespace, markup.bold.markdown | #ff7b72 | — |
| entity.name.module, storage.modifier.module | #79b8ff | — |
| variable.type.parameter, variable.parameter.type | #ff7b72 | — |
| keyword.control.exception, keyword.control.trycatch | #79b8ff | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #ff7b72 | — |
| variable.function | #c9d1d9 | — |
| punctuation, punctuation.terminator, punctuation.definition.tag, punctuation.separator, punctuation.definition.string, punctuation.section.block | #c9d1d9 | — |
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}!`;
}