Killer Dark
Publisher: Austin BillingsThemes in package: 1
A warm dark theme with coral reds, amber golds, and teal accents
A warm dark theme with coral reds, amber golds, and teal accents
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 | #656b61 | italic |
| comment.block.documentation, comment.block.javadoc | #97a38f | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.in, keyword.operator.of, storage.type, storage.modifier | #ff5c69 | — |
| keyword.operator, keyword.operator.assignment | #ed5e6a | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.logical, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest | #d98c93 | — |
| string, string.quoted, string.template | #f6f4f4 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ff5c69 | — |
| constant.numeric | #ffab66 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #d9d0D6 | — |
| variable, variable.other | #f6f4f4 | — |
| variable.parameter, meta.parameters | #c2a3a6 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name.json | #90dad9 | — |
| entity.name.function, meta.function-call entity.name.function | #47ebe8 | — |
| support.function, entity.name.function.member | #4cc2c0 | — |
| meta.method-call entity.name.function, entity.name.function.method | #3ebbb9 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.name.type.class | #30cde8 | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type.enum | #6ee3f7 | — |
| entity.name.type.parameter | #8ce3f2 | — |
| support.type.primitive, keyword.type, storage.type.primitive, storage.type.built-in | #8ce3f2 | — |
| entity.other.inherited-class | #90dad9 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #f9d086 | italic |
| entity.name.tag, punctuation.definition.tag, support.class.component | #ff6673 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #ffc966 | italic |
| support.class.component.tsx, support.class.component.jsx | #30cde8 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #90dad9 | — |
| support.constant.property-value.css, support.constant.color.css | #ffc966 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #47ebe8 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #3ebbb9 | — |
| keyword.other.unit.css | #ffab66 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #9ecc7b | — |
| constant.character.escape, constant.other.placeholder | #ffab66 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.separator.comma, punctuation.terminator.statement | #666b70 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #ff5c69 | — |
| variable.other.readwrite.alias, meta.import variable.other.readwrite | #90dad9 | — |
| entity.name.type.module, entity.name.type.namespace | #a3c2c1 | — |
| support.type.property-name.json, punctuation.support.type.property-name.json | #90dad9 | — |
| entity.name.tag.yaml | #90dad9 | — |
| markup.heading, heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name | #ff5c69 | bold |
| markup.bold | #ffab66 | bold |
| markup.italic | #f9d086 | italic |
| markup.underline.link, string.other.link | #30cde8 | — |
| markup.inline.raw, markup.fenced_code.block | #9ecc7b | — |
| punctuation.definition.list.begin.markdown | #ff5c69 | — |
| markup.quote.markdown | #97a38f | italic |
| markup.inserted | #9ecc7b | — |
| markup.deleted | #eb4755 | — |
| markup.changed | #30cde8 | — |
| variable.language.this, variable.language.self, variable.language.super | #f76e79 | italic |
| storage.type.function.arrow | #ed5e6a | — |
| meta.object-binding-pattern-variable variable.object.property, meta.array-binding-pattern-variable | #f6f4f4 | — |
| variable.other.enummember, constant.other.enum | #f9d086 | — |
| support.variable, support.class.builtin | #4cc2c0 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #90dad9 | — |
| support.function.builtin.shell | #47ebe8 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #ff5c69 | — |
| invalid.illegal | #f6f4f4 | — |
| invalid.deprecated | #f5a3aa | strikethrough |
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}!`;
}