Rose Prime v2
Publisher: AFLOThemes in package: 1
A extention of this theme https://marketplace.visualstudio.com/items?itemName=alphaQ1611.rose-prime-theme
A extention of this theme https://marketplace.visualstudio.com/items?itemName=alphaQ1611.rose-prime-theme
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 |
|---|---|---|
| variable.other.import.go | #92BEB8 | — |
| support.class.builtin.module.member, variable.other.object.member, variable.other.object.property.uppercase, variable.other.property.uppercase, variable.other.constant.uppercase, entity.name.type.enum.constant, entity.name.variable.enum-member, variable.other.readwrite.static.uppercase, variable.other.constant.access | #EF9DAA | — |
| entity.name.function, support.function | #EF9DAA | — |
| keyword, storage.type, storage.modifier | #817FB3 | — |
| variable, entity.name.variable | #ADADCF | — |
| string, string.quoted, string.template | #D9AD95 | — |
| comment | #ADADCF | — |
| entity.name.type, support.type | #92BEB8 | — |
| punctuation, meta.brace | #ADADCF | — |
| constant.language.undefined, constant.language.null, constant.language | #8EB2FF | — |
| variable.parameter.function, meta.parameter | #7EB2F2 | — |
| entity.name.namespace, variable.other.constant, entity.name.variable.field, entity.name.type.module, variable.other.property, variable.other.object.property | #EF9DAA | — |
| variable.parameter | #7EB2F2 | — |
| keyword.operator, meta.separator | #ADADCF | — |
| constant.numeric | #B5CEA8 | — |
| support.type, storage.type.string, storage.type.bool, storage.type.error | #D56982 | — |
| keyword.operator.logical, keyword.operator.comparison | #817FB3 | — |
| constant.other, support.constant, variable.other.enummember, entity.name.constant, meta.import variable, meta.object-literal.key, variable.other.readwrite.alias, variable.other.constant.object, variable.other.constant.property | #EF9DAA | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}