The Better From GitHub Theme
Publisher: RE Dark ThemeThemes in package: 1
A modified theme only with the best of Github Theme.
A modified theme only with the best of Github Theme.
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 | #8B949E | — |
| meta.object-literal.key, punctuation.separator.comma, punctuation.terminator.statement | #afbbc8 | — |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #79C0FF | — |
| entity.name, meta.export.default, meta.definition.variable, punctuation.accessor | #FFA657 | — |
| entity.name.type | #FFA657 | italic |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #C9D1D9 | — |
| entity.name.function | #7EE787 | — |
| entity.name.tag, support.class.component | #7EE787 | — |
| keyword, variable.other.env | #FF7B72 | — |
| storage, storage.type, punctuation.definition.template-expression, support.function.json | #FF7B72 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java, punctuation.definition.typeparameters | #C9D1D9 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #d6d881 | — |
| support | #79C0FF | — |
| meta.property-name | #79C0FF | — |
| variable | #C9D1D9 | — |
| variable.other | #C9D1D9 | — |
| invalid.broken | #FFA198 | italic |
| constant.numeric | #FFA198 | — |
| invalid.deprecated | #FFA198 | italic |
| invalid.illegal | #FFA198 | italic |
| invalid.unimplemented | #FFA198 | italic |
| carriage-return | #0D1117 | italic underline |
| message.error | #FFA198 | — |
| string source | #C9D1D9 | — |
| string variable | #79C0FF | — |
| source.regexp, string.regexp | #7EE787 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #7EE787 | — |
| string.regexp constant.character.escape | #7EE787 | bold |
| support.constant | #79C0FF | — |
| support.variable | #79C0FF | — |
| meta.module-reference | #79C0FF | — |
| punctuation.definition.list.begin.markdown, constant.language.boolean | #FFA657 | — |
| markup.heading, markup.heading entity.name | #79C0FF | bold |
| markup.quote | #7EE787 | — |
| markup.italic | #C9D1D9 | italic |
| markup.bold | #C9D1D9 | bold |
| markup.raw | #79C0FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FFA198 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #7EE787 | — |
| markup.changed, punctuation.definition.changed | #FFA657 | — |
| markup.ignored, markup.untracked | #161B22 | — |
| meta.diff.range | #D2A8FF | bold |
| meta.diff.header | #79C0FF | — |
| meta.separator | #79C0FF | bold |
| meta.output | #79C0FF | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #8B949E | — |
| brackethighlighter.unmatched | #FFA198 | — |
| constant.other.reference.link, string.other.link | #7EE787 | underline |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}