Vyom Theme
Publisher: GuasamThemes in package: 1
A professional dark theme for Visual Studio Code
A professional dark theme for Visual Studio Code
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, punctuation.definition.generic, punctuation.definition.link.title, punctuation.definition.metadata.markdown, punctuation.definition.list, markup.heading, punctuation.definition.raw.markdown, meta.separator.markdown, markup.fenced_code.block | #7f8c98 | — |
| string.quoted, string.template, string.interpolated.single.dart | #fe8170 | — |
| keyword.operator, storage.type.function.arrow, keyword.operator.assignment, variable.other.readwrite, variable.other.object, entity.name.type.namespace, entity.name.namespace, support.other.namespace, storage.modifier.import.java, meta.export.default entity.name.type.module, entity.other.attribute-name.pseudo-class.css | #ffffffcb | — |
| punctuation.separator.inheritance, meta.class meta.function-call, keyword.other.array.phpdoc, bracket.round meta.function-call, comment.block.documentation punctuation.definition.bracket.curly, entity.name.variable.field.cs, variable.other.readwrite.cs, support.type.property-name.css, keyword.operator.ternary.dart, punctuation.definition.template-expression | #BBBBBB | — |
| constant.numeric, support.constant.property-value.css | #ff8c69 | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, storage.type, storage.modifier, variable.language.this, variable.language.this punctuation.definition.variable.php, variable.language.super, keyword.other.typedef, constant.language, constant.other, support.type.primitive, fenced_code.block.language, markup.fenced_code.block punctuation.definition | #fe7ab2 | — |
| keyword.other.phpdoc, comment.block.documentation storage.type.class, comment.block.documentation entity.name.tag, punctuation.section.embedded.begin.php, support.type.property-name | #DD9AC5 | — |
| entity.name.type.class, entity.other.attribute-name.class.css | #6bdfffed | — |
| support.class, entity.name.type.module, entity.other.inherited-class, entity.name.class, meta.return.type entity.name.type, comment.block.documentation entity.name.type.instance, entity.name.label, markup.inline.raw.string.markdown, entity.name.type.cpp, entity.name.type.cs, constant.other.color.rgb-value.hex.css, meta.tag.other.unrecognized.html entity.name.tag | #60c991 | — |
| entity.name.function, punctuation.definition.variable.php, meta.type.annotation entity.name.type, variable.css, variable.argument.css, string.interpolated.single.dart | #4DB1CB | — |
| entity.name, support.type, markup.changed.git_gutter, support.type.sys-types | #ffbf67e0 | — |
| support.function, variable.function, keyword.other.special-method, constant.other.php, variable.other.constant.object, entity.name.function.preprocessor | #DD9AC5 | — |
| variable.other, variable.parameter, text.html.vue-html variable.other.readwrite, string.other.link.title, variable.other.object.property.cs, entity.name.variable.parameter.cs, variable.parameter.dart, variable.parameter.java | #6cc1c1 | — |
| meta.link.inline | #8ac0f6c4 | — |
| entity.name.tag | #fe7ab2 | — |
| entity.other.attribute-name, meta.objectliteral, entity.name.type.class | #ffbf67e0 | — |
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}!`;
}