Github Dark Hopper
Publisher: Afuu97Themes in package: 1
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #6A737D | — |
| entity.name.tag | #8f8ef1 | — |
| punctuation.definition.tag | #BFBDC7 | — |
| entity.other.attribute-name | #79B8FF | — |
| string | #9addf1 | — |
| support | #79B8FF | — |
| constant.language.boolean | #f3ba70 | — |
| constant.numeric | #f3ba70 | — |
| entity.name.function | #79B8FF | — |
| variable | #eb8db9 | — |
| support.class.builtin | #d7a0fc | — |
| variable.other.constant | #79B8FF | — |
| variable.language.this | #d7a0fc | — |
| keyword.control.flow | #e4e1e8 | — |
| variable.other.object | #d7a0fc | — |
| keyword | #8f8ef1 | — |
| keyword.control.switch | #eb8db9 | — |
| meta.object-literal.key.js | #79B8FF | — |
| keyword.operator | #e4e1e8 | — |
| keyword.operator.type.annotation | #BFBDC7 | — |
| punctuation.separator.key-value | #BFBDC7 | — |
| storage, storage.type | #f3b181 | — |
| storage.type | #8f8ef1 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #d7a0fc | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #e4e1e8 | — |
| support.type.object.console | #e06c75 | — |
| entity.other.inherited-class | #8f8ef1 | italic underline |
| punctuation.definition.template-expression, punctuation.section.embedded | #64f0e9 | — |
| variable.parameter.function | #E1E4E8 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #E1E4E8 | — |
| meta.property-name | #79B8FF | — |
| invalid.broken | #FDAEB7 | italic |
| invalid.deprecated | #FDAEB7 | italic |
| invalid.illegal | #FDAEB7 | italic |
| invalid.unimplemented | #FDAEB7 | italic |
| carriage-return | #24292E | italic underline |
| message.error | #FDAEB7 | — |
| string source | #E1E4E8 | — |
| string variable | #79B8FF | — |
| source.regexp, string.regexp | #DBEDFF | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #DBEDFF | — |
| string.regexp constant.character.escape | #85E89D | bold |
| support.constant | #79B8FF | — |
| support.variable | #79B8FF | — |
| meta.module-reference | #79B8FF | — |
| punctuation.definition.list.begin.markdown | #FFAB70 | — |
| markup.heading, markup.heading entity.name | #79B8FF | bold |
| markup.quote | #85E89D | — |
| markup.italic | #E1E4E8 | italic |
| markup.bold | #E1E4E8 | bold |
| markup.raw | #79B8FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FDAEB7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85E89D | — |
| markup.changed, punctuation.definition.changed | #FFAB70 | — |
| markup.ignored, markup.untracked | #2F363D | — |
| meta.diff.range | #B392F0 | bold |
| meta.diff.header | #79B8FF | — |
| meta.separator | #79B8FF | bold |
| meta.output | #79B8FF | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #D1D5DA | — |
| brackethighlighter.unmatched | #FDAEB7 | — |
| constant.other.reference.link, string.other.link | #DBEDFF | underline |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| meta.structure.dictionary.json support.type.property-name.json | #B392F0 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #cdb7f7 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #79B8FF | — |
| meta.structure.dictionary.json string.quoted.double.json | #e4e1e8 | — |
| entity.other.attribute-name | #79B8FF | — |
| support.type.property-name | #eb8db9 | — |
| support.constant | #e4e1e8 | — |
| keyword.other.unit | #8F8EF1 | — |
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}!`;
}