Xcode Syntax Themes
Publisher: N4Themes in package: 6
Xcode Syntax Themes (VSCode Default UI)
Xcode Syntax Themes (VSCode Default UI)
Full workbench mockup using this variant's colors and tokenColors.
Loading...
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 | #b267e6 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}