V Dark
Publisher: Braian VayletThemes in package: 3
A Visual Studio Code theme based on my web braianvaylet.dev
A Visual Studio Code theme based on my web braianvaylet.dev
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 |
|---|---|---|
| variable, storage.type, storage.modifier, string constant.other.placeholder, string, string.quoted.double.html, string.quoted.double.json, punctuation.definition.string, keyword, keyword.control.at-rule, keyword.control.operator, keyword.operator.assignment.js, keyword.other.special-method, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, markup.bold, markup.bold.markdown, markup.italic.markdown, markup.underline, entity.name.function, entity.name.tag.other.html, entity.name.tag.block.any.html, entity.name.method.js, entity.name.function, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, meta.class-method.js entity.name.function.js, source.sass keyword.control, invalid.deprecated | #7385AB | — |
| punctuation.separator.key-value, invalid, invalid.illegal, constant.numeric, constant.language, constant.character, constant.escape, constant.other.symbol, constant.other.key, keyword.other.unit, keyword.other.unit, keyword.other, variable.parameter.function.language.special, variable.parameter, variable.import.parameter, variable.other.class, entity.other.inherited-class, entity.name.module.js, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, source.scss keyword.control | #36F213 | — |
| constant.other.php, constant.other.reference.link.markdown, punctuation.definition, string.quoted.single.scss, string.other.link.title.markdown, string.other.link.description.title.markdown, entity.name, support.type, support.class, support.type.sys-types, support.function, markup.changed.git_gutter, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.raw.block, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, text.html.markdown markup.inline.raw.markdown, markdown.heading, token.warn-token, keyword.control.export, storage.type.modifier, keyword.control.flow, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class | #D8FF00 | — |
| punctuation.separator.comma, punctuation.terminator.rule, constant.other.color, storage.type | #FFFFFF | — |
| constant.other.color, keyword.control, keyword.other.template, keyword.other.substitution, entity.other.attribute-name, text.html.derivative, meta.separator, support.type, support.other.variable, string.other.link, markup.table | #BFC8D9 | — |
| comment.line, comment.line.double-slash, comment.block, punctuation.definition.comment, punctuation.definition.raw, punctuation.definition.markdown, text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, markup.quote punctuation.definition.blockquote.markdown, variable.language.fenced.markdown, token.info-token, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.separator.key-value | #364259 | — |
| entity.name.tag, markup.deleted.git_gutter, markup.inserted | #A6FF00 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.sass, support.type.property-name.less, keyword.control.conditional, meta.object-literal.key, source.js constant.other.object.key.js string.unquoted.label.js, support.type.property-name.json, text.html.markdown, punctuation.definition.list_item.markdown | #dddfe9 | — |
| markup.deleted, token.error-token | #F56565 | — |
| markup.changed, string.regexp, constant.character.escape, token.debug-token | #F6E05E | — |
| variable, string constant.other.placeholder, entity.name.function, entity.name.method.js, entity.name.function, markup.quote, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, Keyword, Storage, source.js constant.other.object.key.js string.unquoted.label.js | — | italic |
| keyword.control, markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown, meta.separator | — | bold |
| markup.underline, *url*, *link*, *uri* | — | underline |
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}!`;
}