RoRvsWild dark
Publisher: Base SecrèteThemes in package: 1
An accessible dark theme based on rorvswild colors.
An accessible dark theme based on rorvswild colors.
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 | #7E8CA4B0 | italic |
| string | #63BC60 | — |
| constant.numeric | #E189E2 | — |
| constant.language | #E79199 | — |
| constant.character, constant.other | #67B6B2 | — |
| variable | #BFA661 | — |
| keyword | #80ABE3 | — |
| storage | #E79199 | — |
| storage.type | #E79199 | italic |
| entity.name.class | #E79199 | — |
| entity.other.inherited-class | #E79199 | — |
| entity.name.function | #B39DE2 | — |
| variable.parameter | #BFA661 | — |
| entity.name.tag | #E79199 | — |
| entity.other.attribute-name | #B39DE2 | — |
| support.function | #B39DE2 | — |
| support.constant | #67B6B2 | — |
| support.type, support.class | #E79199 | — |
| source.css, meta.property-list.css, meta.property-name.css, support.type.property-name.css | #9FA9BB | — |
| support.other.variable | — | |
| invalid | #E79199 | bold |
| invalid.deprecated | #B39DE2 | bold |
| meta.structure.dictionary.json string.quoted.double.json | #9FA9BB | — |
| meta.diff, meta.diff.header | #7E8CA4 | — |
| markup.deleted | #E79199 | — |
| markup.inserted | #63BC60 | — |
| markup.changed | #e39762 | — |
| punctuation.definition.variable, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.constant, | #9FA9BB | — |
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}!`;
}