Neat Theme
Publisher: mrnzdevThemes in package: 1
A sleek black color theme.
A sleek black color theme.
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #ffffff | — |
| comment | #ffffff | — |
| constant.language | #ffffff | — |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #ffffff | — |
| constant.regexp | #ffffff | — |
| entity.name.tag | #ffffff | — |
| entity.name.tag.css | #ffffff | — |
| entity.other.attribute-name | #ffffff | — |
| source.css entity.other.attribute-name, source.css.less entity.other.attribute-name.id, source.scss entity.other.attribute-name | #ffffff | — |
| invalid | #ff0000 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #ffffff | — |
| markup.italic | — | italic |
| markup.inserted | #ffffff | — |
| markup.deleted | #ffffff | — |
| markup.changed | #ffffff | — |
| meta.selector | #ffffff | — |
| punctuation.definition.tag | #ffffff | — |
| meta.preprocessor | #ffffff | — |
| meta.preprocessor.string | #ffffff | — |
| meta.preprocessor.numeric | #ffffff | — |
| meta.structure.dictionary.key.python | #ffffff | — |
| storage | #ffffff | — |
| storage.type | #ffffff | — |
| storage.modifier | #ffffff | — |
| string | #ffffff | — |
| string.tag | #ffffff | — |
| string.value | #ffffff | — |
| string.regexp | #ffffff | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #ffffff | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #ffffff | — |
| keyword | #ffffff | — |
| keyword.control | #ffffff | — |
| keyword.operator | #ffffff | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #ffffff | — |
| keyword.other.unit | #ffffff | — |
| support.function.git-rebase | #ffffff | — |
| constant.sha.git-rebase | #ffffff | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #ffffff | — |
| variable.language.this | #ffffff | — |
| entity.name.function, support.function, support.constant.handlebars | #ffffff | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, source.cs storage.type | #ffffff | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #ffffff | — |
| keyword.control | #ffffff | — |
| variable, meta.definition.variable.name, support.variable | #ffffff7f | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #ffffff7f | — |
| 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 | #ffffff | — |
| string.quoted.double.json | #ffffff7f | — |
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}!`;
}