Blackamp Theme
Publisher: Kevin TerryThemes in package: 1
Dark theme inspired by vintage guitar amplifiers
Dark theme inspired by vintage guitar amplifiers
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 | #4a4a4a | italic |
| comment markup.link | #4a4a4a | — |
| comment storage.type, comment keyword | #9ba1a3 | — |
| constant, constant.numeric, constant.language, constant.character.escape | #458b96 | — |
| constant.other | #d4d4d4 | — |
| variable.other.constant | #458b96 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #d4d4d4 | — |
| meta.function-call.generic.python, support.function.builtin.python | #d4d4d4 | — |
| support.function | #d4d4d4 | — |
| support.class, entity.name.type.class, entity.name.class, variable.other.class.js, variable.other.class.ts | #458b96 | — |
| entity.name.type, entity.name.type.namespace | #458b96 | — |
| meta.function-call entity.name.type, meta.instance.constructor entity.name.type, variable.function entity.name.type, meta.function-call.constructor entity.name.type, entity.name.function.constructor | #c8a368 | — |
| keyword | #c8a368 | — |
| keyword.control | #c8a368 | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof, keyword.operator.misc.as.rust | #c8a368 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical | #d4d4d4 | — |
| keyword.operator.assignment | #d4d4d4 | — |
| keyword.operator.assignment.compound | #c8a368 | — |
| storage | #c8a368 | — |
| storage.type | #c8a368 | — |
| storage.modifier, storage.type.modifier | #c8a368 | — |
| string | #A5A5A5 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #c8a368 | — |
| keyword.other.template.begin, keyword.other.template.end | #A5A5A5 | — |
| meta.template.expression | #d4d4d4 | — |
| variable | #c8a368 | — |
| variable.parameter.function | #d4d4d4 | — |
| variable.language | #c8a368 | — |
| meta.object-literal.key, support.variable.property, variable.other.property, meta.attribute.python | #d36464 | — |
| variable.other.local.c, variable.other.local.cpp | #c8a368 | — |
| variable.other.global.c, variable.other.global.cpp, storage.modifier.static variable.other | #d36464 | — |
| variable.other.member.c, variable.other.member.cpp, variable.other.field.c, variable.other.field.cpp | #d36464 | — |
| punctuation.separator.delimiter | #d4d4d4 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #A5A5A5 | — |
| entity.name.tag | #d36464 | — |
| entity.other.attribute-name | #d4d4d4 | — |
| entity.other.attribute-name.id | #A5A5A5 | normal |
| markup.heading, entity.name.section.markdown | #d36464 | bold |
| punctuation.definition.heading.markdown | #d36464 | — |
| markup.bold | #d4d4d4 | bold |
| markup.italic | #c8a368 | italic |
| markup.strikethrough | #9ba1a3 | strikethrough |
| string.other.link.title.markdown, string.other.link.description.markdown | #458b96 | — |
| markup.underline.link, markup.underline.link.markdown, markup.underline.link.image.markdown | #4a4a4a | — |
| markup.inline.raw.string.markdown | #A5A5A5 | — |
| markup.fenced_code.block.markdown, markup.raw.block.markdown | #A5A5A5 | — |
| fenced_code.block.language.markdown | #9ba1a3 | — |
| markup.quote.markdown | #9ba1a3 | italic |
| punctuation.definition.quote.begin.markdown | #515050 | — |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown punctuation.definition.list.begin.markdown | #d36464 | — |
| meta.separator.markdown | #515050 | — |
| punctuation.definition.image.markdown | #c8a368 | — |
| support.type.property-name.json | #d36464 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json | #d4d4d4 | — |
| variable.parameter.function.language.special.self.python | #d36464 | — |
| variable.parameter.function.language.python | #d36464 | — |
| keyword.operator.logical.python | #c8a368 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #d36464 | — |
| support.type.python | #458b96 | — |
| support.function.magic.python | #A5A5A5 | — |
| string.quoted.docstring.multi.python | #515050 | italic |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx | #458b96 | — |
| variable.parameter.function.js | #d4d4d4 | — |
| storage.modifier.lifetime.rust | #d4d4d4 | — |
| entity.name.lifetime.rust | #458b96 | — |
| variable.language.self.rust | #d36464 | — |
| invalid.illegal | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, variable.parameter, variable.language.super, comment.line.double-slash, comment.block.documentation, keyword.control.import.python, keyword.control.flow.python, markup.italic.markdown | — | italic |
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}!`;
}