MacOS Modern Theme
Publisher: davidbwatersThemes in package: 11
MacOS Modern is a theme pack styled to match native MacOS as closely as possible. Use recommended settings in the README.md for best results.
MacOS Modern is a theme pack styled to match native MacOS as closely as possible. Use recommended settings in the README.md for best results.
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 | #008E00 | — |
| meta.preprocessor, keyword.control.import | #7D4726 | — |
| string | #DF0002 | — |
| constant.numeric | #3A00DC | — |
| constant.language | #C800A4 | — |
| constant.character, constant.other | #275A5E | — |
| variable.language, variable.other | #C800A4 | — |
| keyword | #C800A4 | — |
| storage | #C900A4 | — |
| entity.name.class | #438288 | — |
| markup.bold, markdown.bold | #438288 | |
| markup.heading, markdown.heading | #438288 | |
| markup.italic, markdown.italic | #C900A4 | |
| markup.quote, markdown.quote | #C900A4 | |
| entity.other.inherited-class | — | — |
| entity.name.function | — | — |
| variable.parameter | — | — |
| entity.name.tag | #790EAD | — |
| entity.other.attribute-name | #450084 | — |
| support.function | #450084 | — |
| support.constant | #450084 | — |
| support.type, support.class | #790EAD | — |
| support.other.variable | #790EAD | — |
| invalid | — | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}