IDX Xcode - Xcode syntax and IDX Theme
Publisher: Jan KožnárekThemes in package: 3
Combination of IDX color theme from "Charmmono Theme" and Xcode Syntax Default Dark from "Xcode Syntax Themes".
Combination of IDX color theme from "Charmmono Theme" and Xcode Syntax Default Dark from "Xcode Syntax Themes".
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 | #6C7986 | — |
| string | #FC6A5D | — |
| constant.numeric | #9686F5 | — |
| constant.language | #9686F5 | — |
| constant.character, constant.other | #9686F5 | — |
| variable | #53A5FB | |
| keyword | #FC5FA3 | — |
| storage | #FC5FA3 | |
| storage.type | #91D462 | — |
| entity.name.class | #91D462 | — |
| entity.other.inherited-class | #91D462 | — |
| entity.name.function | #91D462 | |
| variable.parameter | #FD8F3F | — |
| entity.name.tag | #FC5FA3 | |
| entity.other.attribute-name | #75B492 | |
| support.function | #7AC8B6 | |
| support.constant | #7AC8B6 | |
| support.type, support.class | #7AC8B6 | — |
| support.other.variable | #746DB0 | |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #0059FFFF | — |
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}!`;
}