Dark Matter
Publisher: Hubert SikorskiThemes in package: 1
High contrast dark theme for Visual Studio Code
High contrast 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 | #ffffff80 | italic |
| string, punctuation.definition.string | #ffffff | bold italic |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #ffff33 | bold italic |
| constant.numeric | #0084ff | bold italic |
| constant.language, entity.other.attribute-name.pseudo-class | #bf00ff | bold italic |
| constant.language.json | #3f00ff | bold italic |
| constant.language.boolean.false | #ff0000 | — |
| constant.language.boolean.true | #00ff00 | — |
| constant.language.null, constant.language.undefined | #f700ff | bold italic |
| constant.character, constant.other | #bf00ff | — |
| variable | #18ffff | bold italic |
| keyword | #ff1476 | bold |
| storage | #ff1476 | bold |
| punctuation.accessor.optional | #ff1476 | bold |
| storage.type | #3f00ff | bold |
| entity.name.class | #18ffff | bold italic |
| entity.other.inherited-class | #0084ff | bold italic |
| entity.name.function, support.function, meta.at-rule.keyframes, meta.at-rule.keyframes.body, meta.at-rule.media.header, variable.parameter.keyframe-list | #6f00ff | bold italic |
| entity.name.type, support.type.primitive | #6f00ff | bold italic |
| variable.parameter | #18ffff | bold italic |
| entity.name.tag | #3f00ff | bold |
| entity.other.attribute-name | #6f00ff | italic bold |
| entity.other.attribute-name.class, entity.other.attribute-name.id.css | #bf00ff | italic bold |
| support.constant, constant.other | #3f00ff | bold italic |
| support.type, support.class, support.variable | #18ffff | bold italic |
| support.variable.property, support.other.variable | #3f00ff | bold italic |
| invalid | #f8f8f0 | bold |
| invalid.deprecated | #f8f8f0 | — |
| string.quoted.double.json | #ffffff | — |
| meta.structure.dictionary.json | #ffffff | bold |
| meta.diff, meta.diff.header | #75715e | — |
| markup.deleted | #ff1476 | — |
| markup.inserted | #3f00ff | — |
| markup.changed | #e6db74 | — |
| constant.numeric.line-number.find-in-files - match | #0084ff | — |
| entity.name.filename.find-in-files | #e6db74 | — |
| variable.language | #3f00ff | bold |
| heading.1.markdown | #3f00ff | bold |
| punctuation.definition.heading.markdown | #3f00ff | — |
| entity.name.section.markdown | #3f00ff | — |
| punctuation.definition.list.begin.markdown | #bf00ff | — |
| meta.image.inline.markdown | #e6db74 | — |
| markup.bold.markdown | #ffffff | bold |
| markup.italic.markdown | #ffffff | italic |
| markup.inline.raw.string.markdown | #66d9ef | — |
| meta.separator.markdown | #8f8f8f | — |
| punctuation.definition.template-expression | #3f00ff | italic bold |
| meta.brace.round, meta.brace.square, punctuation.section, punctuation.section.keyframes, punctuation.definition, punctuation.definition.string.template | #ffff33 | bold italic |
| punctuation.definition.tag | #ffffff | bold |
| variable.other.object, variable.other.readwrite, variable.parameter | #18ffff | bold italic |
| variable.other.object.property | #0084ff | bold italic |
| variable.other.property | #bf00ff | bold italic |
| meta.object-literal | #0057e9 | bold italic |
| punctuation.separator.comma, punctuation.separator.parameter, punctuation.accessor, punctuation.terminator, punctuation.separator.key-value, text.html, meta.object.member | #ffffff | bold |
| support.constant.mathematical-symbols, support.constant.mathematical-symbols, meta.property-value | #6f00ff | bold italic |
| punctuation.separator.delimiter, punctuation.separator.list.comma.css, punctuation.separator.list.comma.scss | #ffffff | bold italic |
| entity.name.tag.reference, meta.block | #ff1476 | bold |
| source.ignore, meta.scope.recipe.makefile, source.env, source.ini, source.shell | #ffffff | bold italic |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #ff1476 | bold |
| meta.var.expr | #3f00ff | bold italic |
| source.dockerfile | #3cb9fc | bold italic |
| punctuation.section.embedded.begin.php | #8892be | bold |
| meta.jsx.children | #ffffff | bold |
| meta.property-list | #ffffff | bold |
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}!`;
}