Dark Khan
Publisher: Farkhan AzmiThemes in package: 1
Yet Another Dark Theme VSCode
Yet Another Dark Theme VSCode
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 | #BBBBBB4D | italic |
| constant | #F09483E6 | — |
| constant.character.escape | #25B0BCE6 | — |
| entity.name | #FAC29AE6 | — |
| entity.name.function | #25B0BCE6 | — |
| entity.name.tag | #E95678E6 | italic |
| entity.name.type, storage.type.cs | #FAC29AE6 | — |
| entity.other.attribute-name | #F09483E6 | italic |
| entity.other.inherited-class | #FAB795E6 | — |
| entity.other.attribute-name.id | #25B0BCE6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #FAB795E6 | — |
| entity.name.variable, variable | #E95678E6 | — |
| keyword | #B877DBE6 | italic |
| keyword.operator | #BBBBBB | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete | #B877DBE6 | — |
| keyword.other.unit | #F09483E6 | — |
| markup.quote | #FAB795B3 | italic |
| markup.heading, entity.name.section | #E95678E6 | — |
| markup.bold | #B877DBE6 | bold |
| markup.italic | #25B0BCE6 | italic |
| markup.inline.raw, markup.fenced_code.block | #F09483E6 | — |
| markup.underline.link | #FAB795E6 | — |
| storage | #B877DBE6 | italic |
| string.quoted, string.template | #FAB795E6 | — |
| string.regexp | #F09483E6 | — |
| string.other.link | #F09483E6 | — |
| support | #FAC29AE6 | — |
| support.function | #25B0BCE6 | — |
| support.variable | #E95678E6 | — |
| support.type.property-name, meta.object-literal.key | #E95678E6 | — |
| support.type.property-name.css | #BBBBBB | — |
| variable.language | #FAC29AE6 | italic |
| variable.parameter | — | italic |
| string.template meta.embedded | #BBBBBB | — |
| punctuation.definition.tag | #E95678B3 | italic |
| punctuation.separator | #BBBBBB | — |
| punctuation.definition.template-expression | #B877DBE6 | — |
| punctuation.section.embedded | #B877DBE6 | — |
| punctuation.definition.list | #F09483E6 | — |
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}!`;
}