São Paulo Night
Publisher: CarlosDanielDevThemes in package: 1
A muted cyberpunk theme inspired by São Paulo's urban landscape
A muted cyberpunk theme inspired by São Paulo's urban landscape
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 | #5c5f6d | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #d97c9e | — |
| entity.name.function, meta.function-call, support.function, meta.method.declaration entity.name.function | #7eb3c7 | — |
| string, string.quoted | #88b3a0 | — |
| constant.numeric | #d19a6f | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #c9b589 | — |
| variable.object.property, meta.object-literal.key, support.type.property-name, entity.name.tag.yaml | #6b8db3 | — |
| constant, constant.language, variable.other.constant, support.constant | #a188b8 | — |
| variable, variable.other.readwrite | #b4b8c4 | — |
| variable.parameter, meta.parameters | #858997 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison | #8b8f9c | — |
| punctuation, punctuation.separator, punctuation.terminator | #5c5f6d | — |
| string.regexp | #c17884 | — |
| constant.character.escape | #d19a6f | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #d97c9e | — |
| entity.other.attribute-name | #6b8db3 | — |
| markup.heading, entity.name.section | #d97c9e | bold |
| markup.bold | #6b8db3 | bold |
| markup.italic | #7eb3c7 | italic |
| markup.underline.link, string.other.link | #6b8db3 | — |
| markup.inline.raw, markup.fenced_code | #88b3a0 | — |
| support.type.property-name.json | #6b8db3 | — |
| support.type.property-name.css | #6b8db3 | — |
| entity.other.attribute-name.class.css | #c9b589 | — |
| entity.other.attribute-name.id.css | #a188b8 | — |
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}!`;
}