Hopscotch Theme
Publisher: geraneThemes in package: 1
Hopscotch Theme ported from the Hopscotch TextMate Theme
Hopscotch Theme ported from the Hopscotch TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #b9b5b8 | — |
| variable.parameter.function | #b9b5b8 | — |
| comment, punctuation.definition.comment | #797379 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #b9b5b8 | — |
| none | #b9b5b8 | — |
| keyword.operator | #b9b5b8 | — |
| keyword | #c85e7c | — |
| variable | #dd464c | — |
| entity.name.function, meta.require, support.function.any-method | #1290bf | — |
| support.class, entity.name.class, entity.name.type.class | #fdcc59 | — |
| meta.class | #ffffff | — |
| keyword.other.special-method | #1290bf | — |
| storage | #c85e7c | — |
| support.function | #149b93 | — |
| string, constant.other.symbol, entity.other.inherited-class | #8fc13e | — |
| constant.numeric | #fd8b19 | — |
| none | #fd8b19 | — |
| none | #fd8b19 | — |
| constant | #fd8b19 | — |
| entity.name.tag | #dd464c | — |
| entity.other.attribute-name | #fd8b19 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #1290bf | — |
| meta.selector | #c85e7c | — |
| none | #fd8b19 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #1290bf | |
| keyword.other.unit | #fd8b19 | — |
| markup.bold, punctuation.definition.bold | #fdcc59 | bold |
| markup.italic, punctuation.definition.italic | #c85e7c | italic |
| markup.raw.inline | #8fc13e | — |
| string.other.link, punctuation.definition.string.end.markdown | #dd464c | — |
| meta.link | #fd8b19 | — |
| markup.list | #dd464c | — |
| markup.quote | #fd8b19 | — |
| meta.separator | #b9b5b8 | — |
| markup.inserted | #8fc13e | — |
| markup.deleted | #dd464c | — |
| markup.changed | #c85e7c | — |
| constant.other.color | #149b93 | — |
| string.regexp | #149b93 | — |
| constant.character.escape | #149b93 | — |
| punctuation.section.embedded, variable.interpolation | #b33508 | — |
| invalid.illegal | #ffffff | — |
| invalid.broken | #322931 | — |
| invalid.deprecated | #ffffff | — |
| invalid.unimplemented | #ffffff | — |
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}!`;
}