Jack's Theme
Publisher: Jack ScottThemes in package: 3
A quiet VS Code theme collection with dark, bordered, and classic retro PC editor options.
A quiet VS Code theme collection with dark, bordered, and classic retro PC editor options.
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 |
|---|---|---|
| source, meta.embedded, text.html.markdown, meta.jsx.children | #d7d7d7 | — |
| comment, punctuation.definition.comment | #7d7d7d | — |
| comment.block.documentation, storage.type.class.jsdoc, entity.name.type.instance.jsdoc | #7d7d7d | — |
| keyword, keyword.control, keyword.operator.expression, storage.modifier | #ff8c71 | — |
| keyword.control.import, keyword.control.export, storage.modifier.async, keyword.control.from | #ff8c71 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface, storage.type.type | #d8b84d | — |
| keyword.operator, punctuation.accessor, punctuation.separator.key-value, keyword.operator.type | #9b9b9b | — |
| string, constant.other.symbol | #76c26e | — |
| string.template, punctuation.definition.template-expression | #76c26e | — |
| string.regexp, constant.character.escape | #76c26e | — |
| constant.numeric, constant.language, constant.character, constant.other.enum | #d8b84d | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #d8b84d | — |
| entity.name.function, support.function, variable.function, support.function.console | #67b9ff | — |
| entity.name.function.member, support.function.dom | #67b9ff | — |
| entity.name.type.class, entity.name.class, support.class, support.type | #d99deb | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type, entity.name.type.module, entity.name.type.namespace, support.type.primitive | #d99deb | — |
| meta.object-literal.key, support.type.property-name, variable.other.property, variable.other.member, meta.property.object, support.variable.property | #d7d7d7 | — |
| variable.parameter, entity.name.variable.parameter | #d7d7d7 | — |
| variable, variable.other.readwrite, variable.other.constant, entity.name.variable, variable.language.this | #d7d7d7 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #d99deb | — |
| entity.name.tag.tsx, support.class.component.tsx | #d99deb | — |
| entity.other.attribute-name | #d8b84d | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #9b9b9b | — |
| entity.name.tag | #67b9ff | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #76c26e | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #d7d7d7 | — |
| markup.heading, entity.name.section.markdown | #ff8c71 | — |
| markup.underline.link, string.other.link | #67b9ff | — |
| markup.italic | #d7d7d7 | — |
| markup.bold | #d7d7d7 | — |
| markup.inserted, meta.diff.header.to-file | #76c26e | — |
| markup.deleted, meta.diff.header.from-file | #de77ab | — |
| markup.changed | #d8b84d | — |
| invalid, invalid.illegal | #de77ab | — |
| punctuation, meta.brace, punctuation.definition.block | #9b9b9b | — |
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}!`;
}