Substrata
Publisher: austinhydeThemes in package: 1
A cold, dark color theme for VS Code, based on vim-substrata
A cold, dark color theme for VS Code, based on vim-substrata
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 | #5b5f71 | italic |
| variable, string constant.other.placeholder | #b5b4c9 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #a0b9d8 | italic |
| meta.function-call.arguments | — | |
| variable.language | #a18daf | italic |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, constant.other.color, constant.other.rune | #a18daf | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string, string.regexp | #659ea2 | — |
| constant.character.escape | #7dc2c7 | — |
| keyword, keyword.control, storage.modifier, storage.type | #8296b0 | — |
| storage.class, storage.type.core, entity.name.type, meta.type_params | #a18daf | — |
| meta.attribute | #6c6f82 | — |
| punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.operator | #6c6f82 | — |
| entity.name.import | #659ea2 | — |
| entity.other.attribute-name, meta.object-literal.key, support.type.property-name, support.type.vendored.property-name, entity.name.tag.yaml | #8296b0 | — |
| *url*, *link*, *uri* | — | underline |
| invalid, invalid.illegal | #cf8164 | — |
| support.orther.namespace.use.php, meta.use.php, support.other.namespace.php | #c6aed7 | — |
| entity.name.tag, meta.tag.sgml | #a18daf | — |
| source.css entity.other.attribute-name | #c6aed7 | — |
| source.css entity.other.attribute-name.pseudo-class | #659ea2 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | — | bold italic |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #6c6f82 | — |
| string.other.link.title.markdown, meta.link.inline punctuation.definition.string, markup.underline.link | #8296b0 | — |
| string.other.link.title.markdown | #8296b0 | underline |
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}!`;
}