Golden Eye
Publisher: ProphezAIThemes in package: 1
A very eye-friendly theme for VS Code / Codium
A very eye-friendly theme for VS Code / Codium
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 |
|---|---|---|
| support.type.property-name.json | #ffa500 | — |
| string.quoted.double.json | #ffff00 | — |
| entity.name.tag.html, punctuation.definition.tag, punctuation.separator.key-value.html | #ffd700 | — |
| entity.other.attribute-name | #ffa500 | — |
| text.html | #ffff00 | — |
| storage, keyword, meta.var.expr.js, meta.template.expression.js | #ff6347 | — |
| string.quoted.double.js, string.quoted.single.js, string.template.js | #ffff00 | — |
| variable | #ffd700 | — |
| meta.function, meta.function-call | #9acd32 | — |
| punctuation.terminator.statement.js, punctuation.separator.parameter.js | #ffd700 | — |
| constant | #ffa500 | — |
| markup.heading.markdown | #ffa500 | bold |
| meta.paragraph.markdown | #ffd700 | — |
| markup.bold.markdown | #ffd700 | bold |
| markup.fenced_code.block.markdown | #ffff00 | — |
| string.other.link.description.markdown | #8fbc8f | — |
| comment | #888888 | italic |
| invalid | #FF4500 | — |
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}!`;
}