Blackglass Deep Jewel
Publisher: JcoolerThemes in package: 1
A near-black VS Code theme with rich jewel-tone syntax and complete workbench coverage.
A near-black VS Code theme with rich jewel-tone syntax and complete workbench coverage.
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 | #58636D | italic |
| comment.block.documentation, comment.line.documentation | #697680 | italic |
| string, string.quoted, string.template | #3FA66B | — |
| punctuation.definition.string, punctuation.definition.template-expression | #338A58 | — |
| constant.character.escape, string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #C75B39 | — |
| constant.numeric, constant.language, constant.character, constant.other | #C75B39 | — |
| keyword, keyword.control, keyword.other, storage.modifier, storage.type | #8B5CF6 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical | #8F79B8 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #D99A2B | — |
| meta.function entity.name.function, meta.method.declaration entity.name.function | #E0A844 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class, storage.type.class | #258EAD | — |
| entity.name.type.interface, entity.name.type.enum, entity.name.type.parameter, support.type.primitive | #329DBC | — |
| variable.parameter, meta.parameters variable.other, meta.parameter variable.other | #A65A8C | — |
| variable, variable.other.readwrite, variable.other.constant | #CED4DA | — |
| variable.other.property, variable.other.object.property, variable.other.member, meta.object-literal.key | #B5A0C8 | — |
| variable.language.this, variable.language.self, variable.language.super | #8B5CF6 | italic |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #8B5CF6 | — |
| entity.other.attribute-name, support.type.property-name.css, meta.attribute | #A65A8C | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name.css | #258EAD | — |
| support.constant.property-value.css, support.constant.font-name.css, meta.property-value.css | #D99A2B | — |
| meta.decorator, punctuation.decorator, storage.type.annotation, entity.name.function.decorator | #A65A8C | — |
| keyword.control.import, keyword.control.export, entity.name.namespace, support.module | #8B5CF6 | — |
| support.type.property-name.json, string.json support.type.property-name, meta.structure.dictionary.json string.quoted.double.json | #B5A0C8 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #D99A2B | bold |
| markup.bold, punctuation.definition.bold.markdown | #CED4DA | bold |
| markup.italic, punctuation.definition.italic.markdown | #A65A8C | italic |
| markup.underline.link, string.other.link, meta.link.inline.markdown | #258EAD | underline |
| markup.inline.raw, markup.fenced_code.block.markdown | #3FA66B | — |
| markup.inserted, meta.diff.header.to-file | #3FA66B | — |
| markup.deleted, meta.diff.header.from-file | #D74755 | — |
| markup.changed | #258EAD | — |
| invalid, invalid.illegal, invalid.deprecated | #F0F3F5 | — |
| punctuation, meta.brace, meta.delimiter | #7D8994 | — |
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}!`;
}