Hopscotch
Color scheme inspired by the Hopscotch learning platform for kids
Color scheme inspired by the Hopscotch learning platform for kids
Full workbench mockup using this variant's colors and tokenColors.
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}!`;
}
Hopscotch takes its colors from the Hopscotch learning platform. Hopscotch, Mono, and Classic share one editor. Proofreader variants only pop comments and strings.
Background is #322931. Text is #b9b5b8. Comments are #797379. Keywords are #c85e7c. Strings are #8fc13e. Functions are #1290bf. Types are #fdcc59. Variables are #dd464c. Numbers are #fd8b19.
Proofreader variants mark comments and strings as #b9b5b8.
Workbench UI color keys from the theme JSON colors map.
| key | HEX | RGB | RGBA |
|---|---|---|---|
activityBar.activeBackground | |||
activityBar.activeBorder | |||
activityBar.background | |||
activityBar.foreground | |||
activityBar.inactiveForeground | |||
activityBarBadge.background | |||
activityBarBadge.foreground | |||
badge.background | |||
button.background | |||
button.foreground | |||
button.hoverBackground | |||
editor.background | |||
editor.foreground | |||
editor.lineHighlightBackground | |||
editor.selectionBackground | |||
editor.selectionHighlightBackground | |||
editorGroupHeader.tabsBackground | |||
editorLineNumber.foreground | |||
editorLink.activeForeground | |||
editorWidget.background | |||
extensionButton.prominentBackground | |||
extensionButton.prominentHoverBackground | |||
focusBorder | |||
list.activeSelectionBackground | |||
list.focusBackground | |||
list.highlightForeground | |||
list.hoverBackground | |||
list.hoverForeground | |||
list.inactiveSelectionBackground | |||
minimap.background | |||
minimap.selectionHighlight | |||
notificationCenter.border | |||
notificationCenterHeader.background | |||
notificationCenterHeader.foreground | |||
notificationLink.foreground | |||
notifications.background | |||
notifications.foreground | |||
notificationsErrorIcon.foreground | |||
notificationsInfoIcon.foreground | |||
notificationsWarningIcon.foreground | |||
sideBar.background | |||
sideBar.debuggingBackground | |||
sideBar.foreground | |||
sideBarSectionHeader.background | |||
sideBarSectionHeader.foreground | |||
statusBar.background | |||
statusBar.debuggingBackground | |||
statusBar.foreground | |||
statusBar.noFolderBackground | |||
statusBarItem.remoteBackground | |||
tab.activeBackground | |||
tab.inactiveBackground | |||
terminal.ansiBlue | |||
terminal.ansiBrightBlue | |||
terminal.ansiBrightCyan | |||
terminal.ansiBrightGreen | |||
terminal.ansiBrightMagenta | |||
terminal.ansiBrightRed | |||
terminal.ansiBrightWhite | |||
terminal.ansiBrigthYellow | |||
terminal.ansiCyan | |||
terminal.ansiGreen | |||
terminal.ansiMagenta | |||
terminal.ansiRed | |||
terminal.ansiWhite | |||
terminal.ansiYellow | |||
terminal.foreground | |||
terminal.selectionBackground | |||
textLink.activeForeground | |||
textLink.foreground | |||
titleBar.activeBackground | |||
window.activeBorder | |||
window.inactiveBorder |
Foregrounds this theme assigns to the token scope catalog. A rule with only a font style is skipped, and a longer matching scope wins. Italic and bold rules are not listed — the preview above shows them in the code.
| scope | HEX | RGB | RGBA |
|---|---|---|---|
comment | |||
comment.block | |||
comment.block.documentation | |||
comment.line | |||
constant | |||
constant.character | |||
constant.character.escape | |||
entity | |||
entity.name | |||
entity.name.class | |||
entity.name.function | |||
entity.name.method | |||
entity.name.namespace | |||
entity.name.section | |||
entity.name.selector | |||
entity.name.tag | |||
entity.name.type | |||
entity.name.type.enum | |||
entity.name.type.interface | |||
entity.name.type.struct | |||
entity.other | |||
entity.other.attribute-name | |||
entity.other.inherited-class | |||
punctuation.definition.comment | |||
storage | |||
storage.modifier | |||
storage.type | |||
string | |||
string.interpolated | |||
string.other | |||
string.quoted | |||
string.quoted.double | |||
string.quoted.other | |||
string.quoted.single | |||
string.quoted.triple | |||
string.regexp | |||
string.template | |||
string.unquoted | |||
variable | |||
variable.function | |||
variable.language | |||
variable.name | |||
variable.other | |||
variable.other.constant | |||
variable.other.property | |||
variable.other.readwrite | |||
variable.parameter |