Custom Black White Teal
Publisher: ukpabikThemes in package: 1
A custom VS Code theme with black types, purple-blue functions, aquamarine variables, and more.
A custom VS Code theme with black types, purple-blue functions, aquamarine variables, and more.
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 |
|---|---|---|
| entity.name.type, support.type, storage.type, meta.return.type, storage.class, entity.name.class, entity.name.type.class, entity.name.type.interface, entity.name.type.struct, entity.name.type.enum, support.class, entity.other.inherited-class | #000000 | bold |
| entity.name.function, support.function, meta.function-call, meta.method-call, entity.name.method, meta.function-call.generic, support.function.builtin | #9ff2fd | — |
| keyword, storage.type, storage.modifier, keyword.control, keyword.declaration, keyword.operator.new, keyword.other, storage.type.function, storage.type.class, storage.type.var, storage.type.const, storage.type.let | #bee0ba | underline |
| variable, variable.parameter, meta.parameter, meta.definition.variable.name, meta.definition.parameter, variable.other.readwrite, variable.other.object, variable.other.property, variable.language.this, variable.language.self | #65caa0 | — |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #6e9ac5 | — |
| constant.numeric, number, constant.language.boolean, constant.language.null, constant.language.undefined | #c777b6 | — |
| comment, punctuation.definition.comment, comment.line, comment.block | #d69eb3 | italic |
| punctuation, meta.brace, punctuation.definition.block, punctuation.separator, punctuation.terminator | #bebebe | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison | #ffffff | — |
| entity.name.tag, meta.tag | #a10808 | — |
| entity.other.attribute-name | #e46969 | — |
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}!`;
}