Vague2k
Publisher: SensorEvolveThemes in package: 1
A VS Code port of the Vague2k Neovim theme — muted, dark, and refined.
A VS Code port of the Vague2k Neovim theme — muted, dark, and refined.
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 |
|---|---|---|
| Global settings | #cdcdcd | — |
| comment, punctuation.definition.comment | #606079 | italic |
| string, string.quoted, string.template | #e8b589 | — |
| constant.character.escape, string.regexp | #b4d4cf | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal | #e0a363 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #aeaed1 | italic |
| constant.other, constant.character | #aeaed1 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.in | #6e94b2 | italic |
| keyword.control.return, keyword.control.yield | #d8647e | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.spread, keyword.operator.rest, keyword.operator.ternary, keyword.operator.optional | #90a0b5 | — |
| storage, storage.type, storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.namespace, storage.type.module, storage.type.var, storage.type.let, storage.type.const, storage.type.async, storage.modifier | #6e94b2 | italic |
| entity.name.function, meta.function entity.name.function, support.function | #c48282 | — |
| meta.function-call entity.name.function, meta.function-call.generic, meta.method-call entity.name.function | #c48282 | — |
| entity.name.class, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.namespace, entity.name.type | #9bb4bc | — |
| entity.other.inherited-class | #e8b589 | italic |
| variable.parameter, meta.function.parameter | #bb9dbd | italic |
| variable, variable.other, variable.other.readwrite, variable.other.object | #cdcdcd | — |
| variable.language.this, variable.language.self, variable.language.super | #d8647e | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property.object | #c3c3d5 | — |
| meta.type.annotation, meta.type.parameters, entity.name.type.primitive, support.type.primitive, support.type.builtin | #9bb4bc | italic |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation | #bb9dbd | italic |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section | #90a0b5 | — |
| punctuation.definition.bracket, meta.brace, punctuation.definition.block, punctuation.definition.array, punctuation.definition.parameters, punctuation.definition.arguments | #90a0b5 | — |
| string.quoted.double.import, string.quoted.single.import, meta.import string | #e8b589 | — |
| meta.object-literal.key, meta.objectliteral entity.name.function, string.quoted.json support.type.property-name | #c3c3d5 | — |
| entity.name.tag, meta.tag entity.name.tag | #d8647e | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #aeaed1 | — |
| meta.attribute-with-value string, meta.tag.inline string, meta.attribute string.quoted | #e8b589 | — |
| support.type.property-name.css, meta.property-name, support.type.property-name | #b4d4cf | — |
| meta.property-value, support.constant.property-value, support.constant.color, support.constant.font-name, support.constant.media-type | #e8b589 | — |
| entity.name.tag.css, meta.selector, entity.other.pseudo-class.css, entity.other.pseudo-element.css | #e0a363 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #9bb4bc | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes, keyword.control.at-rule.import | #6e94b2 | italic |
| markup.heading, markup.heading.setext, entity.name.section.markdown, punctuation.definition.heading.markdown | #e8b589 | bold |
| markup.bold, punctuation.definition.bold | #e0a363 | bold |
| markup.italic, punctuation.definition.italic | #e8b589 | italic |
| markup.underline.link, markup.underline.link.image | #b4d4cf | underline |
| string.other.link.title.markdown, string.other.link.description.markdown | #9bb4bc | — |
| markup.raw.inline, markup.raw.block, markup.fenced_code.block | #b4d4cf | — |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #d8647e | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #606079 | italic |
| source.json support.type.property-name | #c3c3d5 | — |
| support.function.builtin.python, support.type.python | #b4d4cf | italic |
| support.function.magic.python | #c48282 | italic |
| entity.name.function.decorator.python, meta.function.decorator.python | #bb9dbd | italic |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #d8647e | italic |
| entity.name.function.macro.rust, meta.macro.rust | #b4d4cf | — |
| entity.name.package.go | #9bb4bc | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell | #e8b589 | — |
| invalid, invalid.illegal, invalid.deprecated | #d8647e | strikethrough |
| support.function, support.class, support.other.module | #b4d4cf | — |
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}!`;
}