VanDeFlame Theme
Publisher: VanDeFlameThemes in package: 2
Visual Studio Dark Theme
Visual Studio Dark Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| string constant.other.placeholder, constant.character.escape, keyword | #ff0000 | — |
| variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | — | italic |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss, constant.other.color, invalid.deprecated, invalid, invalid.illegal | #830f00 | — |
| constant.other.php | #ff6bce | — |
| Keyword, Storage | — | italic |
| keyword.control, source.scss keyword.control, constant.other.color, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #00ad3a | — |
| punctuation, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.terminator.rule.css, punctuation.definition, punctuation.section.embedded, entity.name.type.module.js, string.quoted.single.scss | #8c4cf3 | — |
| keyword.control.at-rule, keyword.control.operator, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js | #ffffff | — |
| keyword.control | — | bold |
| comment, comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html, variable.other.jsdoc, entity.name.type.instance.jsdoc, storage.type.class.jsdoc, comment.block.documentation | #2c8a63 | — |
| meta.tag.sgml, markup.deleted.git_gutter, entity.other.attribute-name, storage.modifier, support.function | #ecc410 | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css, support.type.property-name.json | #ffe600 | — |
| entity.name.tag, string.other.link.title.markdown, variable, variable.other.readwrite.js, support.other.variable, string.other.link, markup.table, variable.other.property.js, meta.object-literal.key.js | #2f99fd | |
| string.quoted.double.html, string.quoted.double.json, keyword.other.special-method, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, markup.bold, markup.bold.markdown, markup.italic.markdown, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, meta.class-method.js entity.name.function.js, source.sass keyword.control | #9ca5c2 | — |
| variable.other.constant.js, variable.other.object.property.js, variable.other.object.js, variable.function, variable.function.constructor | #b0c3ff | — |
| entity.name.function, entity.name.tag.other.html, entity.name.tag.block.any.html | #8dcdf8 | — |
| string, source.ignore, text.html.derivative, constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.definition.list_item.markdown, punctuation.separator.key-value.html, punctuation.definition.string.template.begin.js, punctuation.definition.string.template.end.js, text.html.markdown, constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js, string.quoted.single.js, string.template.js, variable.parameter.function.language.special, variable.parameter | #e7e7e7 | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name.html | #cf3ccf | — |
| 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, support.type, entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #00c3ff | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #bf7600 | italic |
| storage.type, entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, storage.type.function.js, storage.type.js, punctuation.definition.entity.css, meta.object-literal.key | #00ff95 | — |
| markup.inserted | #10c300 | — |
| markup.deleted | #444444 | — |
| markup.changed | #ffe75f | — |
| string.regexp | #8dac52 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #eabce9 | italic |
| text.html.markdown markup.inline.raw.markdown | #f053ee | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #ff4ec3 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #f39b28 | bold |
| markup.underline | #bf3abd | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #ff00fc | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #00ff00 | — |
| constant.other.reference.link.markdown | #8ff58f | — |
| markup.raw.block | #49b949 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #169405 | — |
| variable.language.fenced.markdown | #d3ffcd | — |
| meta.separator | #ee6f1a | bold |
| token.info-token | #ffd1b2 | — |
| token.warn-token | #a56336 | — |
| token.error-token | #ffaa71 | — |
| token.debug-token | #963800 | — |
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}!`;
}