VS 2019 Total Black Theme
Publisher: odeyal0Themes in package: 1
A pure black dark theme inspired by Visual Studio 2019, optimized for reduced eye strain with true black backgrounds.
A pure black dark theme inspired by Visual Studio 2019, optimized for reduced eye strain with true black backgrounds.
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.line.double-slash.ts, comment.line.double-slash.tsx, comment.block.ts, comment.block.tsx | #628650 | — |
| invalid.deprecated, invalid.unnecessary | #AAAAAA | — |
| meta.embedded, source.groovy.embedded | #CCCCCC | — |
| emphasis | — | italic |
| strong | — | bold |
| comment | #628650 | — |
| punctuation.definition.comment | #628650 | — |
| comment.documentation | #5C824C | — |
| comment.documentation.attribute | #C0C0C0 | — |
| comment.documentation.cdata | #E0CC78 | — |
| comment.documentation.delimiter | #747474 | — |
| comment.documentation.name | #54A0D0 | — |
| constant.language | #54A0D0 | — |
| constant.numeric, entity.name.operator.custom-literal.number, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #AECCA0 | — |
| constant.regexp | #60608E | — |
| constant.character | #54A0D0 | — |
| constant.character.escape | #D0B474 | — |
| entity.name.tag | #54A0D0 | — |
| entity.name.tag.css | #D0B474 | — |
| entity.other.attribute-name | #96D4F4 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #D0B474 | — |
| invalid | #EA4242 | — |
| markup.underline | — | underline |
| markup.bold | #54A0D0 | bold |
| markup.heading | #54A0D0 | bold |
| markup.italic | — | italic |
| markup.inserted | #AECCA0 | — |
| markup.deleted | #C68870 | — |
| markup.changed | #54A0D0 | — |
| markup.inline.raw | #C68870 | — |
| punctuation.definition.tag | #707070 | — |
| meta.preprocessor, entity.name.function.preprocessor | #54A0D0 | — |
| meta.preprocessor.string | #C68870 | — |
| meta.preprocessor.numeric | #AECCA0 | — |
| meta.structure.dictionary.key.python | #96D4F4 | — |
| meta.diff.header | #54A0D0 | — |
| storage | #54A0D0 | — |
| storage.type | #54A0D0 | — |
| storage.modifier, keyword.operator.noexcept | #54A0D0 | — |
| string, entity.name.operator.custom-literal.string, meta.embedded.assembly | #C68870 | — |
| string.tag | #C68870 | — |
| string.value | #C68870 | — |
| string.regexp | #C86060 | — |
| punctuation.definition.string | #C68870 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #54A0D0 | — |
| meta.template.expression | #CCCCCC | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #96D4F4 | — |
| keyword | #54A0D0 | — |
| keyword.operator | #CCCCCC | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #BE80BA | — |
| keyword.other.unit | #AECCA0 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #54A0D0 | — |
| support.function.git-rebase | #96D4F4 | — |
| constant.sha.git-rebase | #AECCA0 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #CCCCCC | — |
| variable.language | #54A0D0 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal, entity.name.function.extension | #CECE96 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #46C0A8 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #46C0A8 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #BE80BA | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #96D4F4 | — |
| variable.other.constant, variable.other.enummember | #4CBECE | — |
| meta.object-literal.key | #96D4F4 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #C68870 | — |
| punctuation | #CCCCCC | — |
| entity.name.namespace, entity.name.type.namespace | #CCCCCC | — |
| entity.name.variable.field | #CCCCCC | — |
| variable.other.property | #CCCCCC | — |
| variable.other.constant | #CCCCCC | — |
| variable.other.enummember | #CCCCCC | — |
| entity.name.type.interface | #B4D49E | — |
| entity.name.type.enum | #B4D49E | — |
| entity.name.type.type-parameter | #B4D49E | — |
| entity.name.type.struct | #80BE8A | — |
| support.other.excluded | #747474 | — |
| keyword.preprocessor | #747474 | — |
| entity.name.label | #C0C0C0 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #C68870 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #C86060 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #CECE96 | — |
| keyword.operator.quantifier.regexp | #D0B474 | — |
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}!`;
}