Ugg Theme
Publisher: Uggly MadlyThemes in package: 1
Theme made for C
Theme made for C
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, punctuation.definition.comment.begin, punctuation.definition.comment.end | #80bf6b | |
| entity.name.function.preprocessor | #d7adf7 | — |
| punctuation.definition.directive, keyword.control.directive | #a8a8a8 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #ffcd87 | — |
| string.quoted.double, string.quoted.single.c, string.quoted.other.lt-gt | #fcb583 | — |
| constant.character.escape | #fc8391 | — |
| constant.other.placeholder | #fcd483 | — |
| constant.numeric.decimal, variable.other.enummember, keyword.other.unit.hexadecimal.c, constant.numeric.hexadecimal.c | #B5CEA8 | — |
| entity.name.function | #dede9b | — |
| keyword.other, storage.modifier, storage.type, keyword.operator.sizeof.c | #569CD6 | — |
| entity.name.type | #56d6b8 | — |
| keyword.control | #ce7bd1 | — |
| punctuation, storage.modifier.array.bracket.square.c, storage.modifier.pointer.cpp, punctuation.separator.pointer-access.c | #D4D4D4 | — |
| variable | #d1d1d1 | — |
| variable.parameter | #bababa | — |
| variable.other.property | #fafafa | — |
| punctuation.separator.pointer-access.c | #eeffff | — |
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}!`;
}