Mind the Gap
Publisher: Daniel FryThemes in package: 1
A vibrant dark color theme inspired by the London Underground tube map
A vibrant dark color theme inspired by the London Underground tube map
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 | #587088 | italic |
| string, string.quoted, string.template | #00B850 | — |
| constant.numeric | #FFD300 | — |
| constant.language, constant.character | #EE7C0E | — |
| constant.other | #EE7C0E | — |
| variable, variable.other, variable.language | #d8dce8 | — |
| variable.parameter | #d8dce8 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #d8dce8 | — |
| keyword, keyword.control, storage.type, storage.modifier | #9B70D8 | italic |
| keyword.operator, keyword.control.conditional, keyword.control.loop, keyword.control.flow | #F3A9BB | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary | #F3A9BB | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #9B70D8 | italic |
| support.type.primitive | #9B70D8 | italic |
| entity.name.type, entity.name.class, support.type, support.class | #EE7C0E | — |
| entity.other.inherited-class | #EE7C0E | italic |
| entity.name.function, support.function | #0098D4 | — |
| entity.name.function.method, meta.function-call | #0098D4 | — |
| entity.name.tag | #00A4A7 | — |
| entity.other.attribute-name | #0098D4 | italic |
| punctuation, punctuation.definition.tag, punctuation.separator, punctuation.terminator, meta.brace | #708098 | — |
| string.regexp, constant.character.escape, constant.other.character-class.regexp | #00A4A7 | — |
| entity.name.function.preprocessor, meta.preprocessor, keyword.control.directive | #00A4A7 | — |
| entity.name.tag.css, support.type.property-name.css | #0098D4 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css | #EE7C0E | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFD300 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #00A4A7 | — |
| markup.heading, markup.heading.setext | #9B70D8 | bold |
| markup.bold | #EE7C0E | bold |
| markup.italic | #F3A9BB | italic |
| markup.inline.raw, markup.fenced_code.block | #00B850 | — |
| markup.underline.link | #0098D4 | — |
| markup.inserted | #00B850 | — |
| markup.deleted | #E32017 | — |
| markup.changed | #0098D4 | — |
| markup.list | #F3A9BB | — |
| markup.quote | #a8b0c0 | italic |
| meta.separator | #708098 | — |
| meta.diff.header | #0098D4 | bold |
| invalid | #E32017 | — |
| invalid.deprecated | #708098 | 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}!`;
}