MatteBlack
Publisher: Taha YVRThemes in package: 1
A low distraction dark theme.
A low distraction dark 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 |
| meta.import variable.other.readwrite, meta.import variable.other.readwrite.alias, meta.import variable.other, meta.import entity.name.namespace, meta.import support.class, entity.name.import | #EFBF04 | — |
| strong | — | bold |
| comment, comment.block, comment.line, punctuation.definition.comment | #8A8A8D | italic |
| string, string.quoted, string.unquoted | #eaeaea | — |
| string.regexp, string.regex | #D97706 | — |
| constant.character.escape, string.escape, string.special, string.special.symbol | #EFBF04 | — |
| constant.numeric, number, float | #EFBF04 | — |
| constant.language.boolean, constant.language.true, constant.language.false | #10B981 | — |
| variable, variable.other.readwrite | #D97706 | — |
| variable.language, variable.language.this, variable.builtin | #3B82F6 | — |
| variable.parameter | #bebebe | — |
| variable.other.member | #eaeaea | — |
| constant, constant.other | #D97706 | — |
| meta.preprocessor, entity.name.function.preprocessor | #FBBF24 | — |
| keyword, keyword.control, keyword.type, storage.type | #059669 | — |
| keyword.operator, operator | #bebebe | — |
| variable.other.property, support.type.property-name, meta.object-literal.key | #F59E0B | — |
| entity.name.function, entity.name.function.constructor | #DC2626 | — |
| meta.function-call, meta.method-call, support.function, entity.name.function.call, entity.name.function.method, variable.function | #F59E0B | — |
| entity.name.type, entity.name.class, support.class, support.type | #FBBF24 | — |
| support.type.builtin, storage.type.builtin | #F59E0B | italic |
| entity.name.namespace, support.module, namespace | #BF9903 | italic |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #D97706 | — |
| entity.name.tag, tag | #059669 | — |
| entity.other.attribute-name | #D97706 | italic |
| punctuation.definition.tag | #bebebe | — |
| punctuation, punctuation.separator, punctuation.accessor, punctuation.bracket | #8A8A8D | — |
| punctuation.special, punctuation.special.symbol | #3B82F6 | — |
| markup.inserted | #10B981 | — |
| markup.deleted | #DC2626 | — |
| markup.changed | #F59E0B | — |
| markup.heading | #D97706 | bold |
| markup.underline.link, string.other.link | #F59E0B | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}