Mac Classic VS Code Theme
Publisher: Andrea D.Themes in package: 1
A port of the Mac Classic Theme
A port of the Mac Classic Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| comment | #0066FF | italic |
| keyword, storage | #0000FF | bold |
| constant.numeric | #0000CD | |
| constant | #C5060B | bold |
| constant.language | #585CF6 | bold |
| variable.language, variable.other | #318495 | |
| string | #036A07 | |
| constant.character.escape, string source | #26B31A | |
| meta.preprocessor | #1A921C | |
| keyword.control.import | #0C450D | bold |
| entity.name.function, support.function.any-method | #0000A2 | bold |
| entity.name.type | — | underline |
| entity.other.inherited-class | — | italic |
| variable.parameter | — | italic |
| storage.type.method | #70727E | |
| meta.section entity.name.section, declaration.section entity.name.section | — | italic |
| support.function | #3C4C72 | bold |
| support.class, support.type | #6D79DE | bold |
| support.constant | #06960E | bold |
| support.variable | #21439C | bold |
| keyword.operator.js | #687687 | — |
| invalid | #FFFFFF | — |
| invalid.deprecated.trailing-whitespace | — | — |
| text source, string.unquoted | — | — |
| text source string.unquoted, text source text source | — | — |
| meta.tag.preprocessor.xml | #68685B | |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #888888 | |
| string.quoted.docinfo.doctype.DTD | — | italic |
| meta.tag, declaration.tag | #1C02FF | |
| entity.name.tag | — | bold |
| entity.other.attribute-name | — | italic |
| markup.heading | #0C07FF | bold |
| markup.quote | #000000 | italic |
| markup.list | #B90690 | — |
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}!`;
}