An old Hope with italics
Publisher: codepunktThemes in package: 1
An old Hope theme, dark, with italics
An old Hope theme, dark, with italics
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #cbcdd2 | — |
| comment | #686B78 | italic |
| string | #4FB4D8 | — |
| constant.numeric | #EF7C2A | — |
| constant.language | #EF7C2A | — |
| constant.character, constant.other | #EF7C2A | — |
| variable.language | #78BD65 | italic |
| variable | #CBCDD2 | |
| keyword | #78BD65 | italic |
| storage | #EB3D54 | |
| storage.type | #EB3D54 | italic |
| entity.name.class | #E5CD52 | — |
| entity.other.inherited-class | #4FB4D8 | italic |
| entity.name.function | #E5CD52 | |
| variable.parameter | #E5CD52 | |
| entity.name.tag | #EB3D54 | |
| entity.other.attribute-name | #E5CD52 | italic |
| support.function | #E5CD52 | |
| support.constant | #EF7C2A | |
| support.type, support.class | #eb3d54 | — |
| support.other.variable | #CBCDD2 | — |
| invalid | #EB3D54 | italic bold underline |
| invalid.deprecated | #EB3D54 | bold italic underline |
| markup.list | #EB3D54 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #4FB4D8 | |
| text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown | #78bd65 | — |
| markup.quote | #78bd65 | — |
| markup.bold | #e5cd52 | bold |
| markup.italic, punctuation.definition.italic | #ef7c2a | italic |
| meta.link | #78BD65 | — |
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}!`;
}