Red & Yellow on Black
Publisher: jankucaThemes in package: 1
Spacegray with Red and Yellow highlights
Spacegray with Red and Yellow highlights
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 |
|---|---|---|
| — | #DDD | — |
| comment | #7b808b | |
| constant | #96DAFF | |
| constant.numeric | ||
| entity | #A5A5A5 | |
| keyword | #CFA | |
| storage | #96DAFF | |
| string, meta.verbatim | #EEA | |
| support | #DDD | |
| variable | #F57066 | |
| variable.language | #888 | |
| invalid.deprecated | #AB2A1D | italic |
| invalid.illegal | #F8F8F8 | — |
| keyword.operator | ||
| string constant.other.placeholder | #F8F8F8 | |
| meta.function-call.py | #BECDE6 | |
| meta.tag, meta.tag entity | #A5A5A5 | — |
| entity.name.section | #FFFFFF | |
| entity.name.function | #DDD | — |
| keyword.type.variant | #DDD | — |
| source.ocaml keyword.operator.symbol | #F8F8F8 | — |
| source.ocaml keyword.operator.symbol.infix | #8DA6CE | |
| source.ocaml keyword.operator.symbol.prefix | #8DA6CE | |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| source.ocaml constant.numeric.floating-point | — | underline |
| text.tex.latex meta.function.environment | — | — |
| text.tex.latex meta.function.environment meta.function.environment | — | — |
| text.tex.latex support.function | #FBDE2D | |
| source.plist string.unquoted, source.plist keyword.operator | #FFFFFF | — |
| sublimelinter.mark.warning | #FFDD55 | — |
| sublimelinter.mark.error | #FFFFFF | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.error | #D02000 | — |
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}!`;
}