GitHub 2019
Publisher: Emanuele BartolesiThemes in package: 1
Visual Studio Code theme inspired by GitHub, because everyone loves its colors.
Visual Studio Code theme inspired by GitHub, because everyone loves its colors.
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 |
|---|---|---|
| — | #000000 | — |
| source | — | — |
| comment | #999988 | italic |
| keyword, storage | #000000 | bold |
| keyword.operator.assignment | #000000 | |
| keyword.other.special-method | — | |
| entity.name.function, keyword.other.name-of-parameter.objc | #990000 | bold |
| entity.name | #445588 | bold |
| constant.numeric | #009999 | |
| variable.language, variable.other | #108888 | |
| constant.language | #000000 | bold |
| variable.other.constant.ruby | #0F8787 | — |
| constant.language | #000000 | bold |
| string | #DD1144 | — |
| entity.other.inherited-class | #0F8787 | |
| punctuation.separator.inheritance | #000000 | bold |
| punctuation.separator.variable | #000000 | bold |
| punctuation.section.array | #000000 | bold |
| punctuation.separator.key-value | #000000 | bold |
| punctuation.section.function | #000000 | |
| punctuation.section.scope | #000000 | |
| keyword.other.special-method.ruby | — | bold |
| constant.other.symbol | #AA2C8C | |
| support.class.ruby | #008080 | |
| string.regexp | #009926 | — |
| string.quoted source | #000000 | — |
| meta.tag.sgml.html | #999999 | bold |
| entity.name.tag.doctype | #999999 | bold |
| string.quoted.double.doctype | #999999 | bold |
| punctuation.definition.tag | #121289 | |
| entity.name.tag | #121289 | |
| entity.other.attribute-name | #0A8585 | |
| entity.other.attribute-name | #0A8585 | |
| punctuation.section.embedded.ruby | #999999 | bold |
| source.ruby.embedded.source punctuation.section.embedded.ruby | #CF1040 | — |
| punctuation.section.property-list.css | — | |
| support.type.property-name.css | — | bold |
| punctuation.separator.key-value.css | #000000 | |
| meta.property-value, constant.other.color | #009999 | |
| punctuation.terminator.rule.css | #000000 | |
| support.constant.font-name | #000000 | |
| keyword.other.unit | #009999 | |
| entity.other.attribute-name.pseudo-class | #000000 | |
| support.constant.property-value | #000000 | bold |
| entity.other.attribute-name.class | #445588 | bold |
| entity.other.attribute-name.id | #990000 | bold |
| meta.diff.header.from-file | #000000 | |
| meta.diff.header.to-file | #000000 | |
| markup.inserted.diff | — | |
| markup.deleted.diff | #000000 |
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}!`;
}