Vintage theme
Publisher: The Pixel NinjaThemes in package: 1
A vintage color theme by Ed Fryer
A vintage color theme by Ed Fryer
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FAE6E9 | — |
| comment | #8F8F8F | — |
| string | #D1B8BB | — |
| constant.numeric | #F0E7AF | — |
| constant.language | #82BD89 | — |
| constant.character, constant.other | #82BD89 | — |
| variable | #78B3C2 | — |
| keyword | #F0E7AF | — |
| storage | #82BD89 | |
| storage.type | #F0E7AF | italic |
| entity.name.class | #42964D | — |
| entity.other.inherited-class | #42964D | italic |
| entity.name.function | #82BD89 | |
| variable.parameter | #F5A851 | italic |
| entity.name.tag | #F0E7AF | |
| entity.other.attribute-name | #78B3C2 | |
| support.function | #EB7889 | — |
| support.constant | #EB7889 | — |
| support.type, support.class | #F5C793 | — |
| support.other.variable | ||
| invalid | #EB7889 | |
| invalid.deprecated | #D94158 | — |
| markup.quote | #4B8D9C | — |
| markup.bold, markup.italic | #82BD89 | — |
| markup.inline.raw | #F0E7AF | |
| markup.heading.setext | #F5A851 |
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}!`;
}