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, punctuation.definition.comment | #7f8c98 | — |
| string.quoted | #fe8170 | — |
| storage.type.function.arrow | #ffffffd8 | — |
| storage.type, storage.modifier, keyword, variable.language.this, variable.language.super, keyword.other.typedef, constant.language | #fe7ab2 | — |
| entity.name.type.class | #6bdfff | — |
| variable.other.property, variable.other.object.property | #b181ec | — |
| entity.name.function, entity.name.function.method | #4db1cb | — |
| entity.name.type.module, entity.other.inherited-class, entity.name.class | #d9baff | — |
| meta.type.annotation | #6bdfff | — |
| punctuation.definition.tag, entity.name.tag, punctuation.separator.key-value | #fe7ab2 | — |
| punctuation.separator.key-value.js | #ffffffd9 | — |
| meta.attribute, entity.other.attribute-name | #cc9767 | — |
| constant.numeric | #d8c87c | — |
| variable.other.property | #abf2e4 | — |
| keyword.operator | #ffffffd9 | — |
| variable.parameter | #ffffffd9 | — |
| support.type | #d9baff | — |
| keyword.operator.assignment | #ffffffd9 | — |
| entity.name.fragment.graphql, variable.fragment.graphql | #6bdfff | — |
| punctuation.quasi.element | #ffffffd9 | — |
| variable.other.readwrite | #ffffffd9 | — |
| meta.brace | #ffffffd9 | — |
| keyword.operator.arithmetic | #b281eb | — |
| 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}!`;
}