Gotham Theme
Publisher: alireza94Themes in package: 1
A very dark color scheme based on the vim version
A very dark color scheme based on the vim version
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 |
|---|---|---|
| — | #98d1ceff | — |
| comment | #6e71aa | italic |
| string | #D26939 | — |
| constant.numeric | #888BA5 | — |
| constant.language | #888BA5 | — |
| constant.character, constant.other | #888BA5 | — |
| variable | #D3EBE9 | |
| keyword | #C33027 | — |
| storage | #C33027 | |
| storage.type | #33859D | — |
| entity.name.class, entity.name.type.class | #EDB54B | — |
| entity.other.inherited-class | #26A98B | underline |
| meta.type.annotation, entity.name.type | #26A98B | — |
| entity.name.function | #EDB54B | |
| variable.parameter | #98D1CE | italic |
| entity.name.tag | #EDB54B | |
| entity.other.attribute-name | #888BA5 | — |
| support.function | #26A98B | |
| support.constant | #26A98B | |
| support.type, support.class | #26A98B | — |
| support.other.variable | — | |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #C33027 | italic |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| unit.css, unit.scss, unit.less, unit.sass | #888BA5 | — |
| variable.css, variable.scss, variable.less, variable.sass | #EDB54B | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #D26939 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #D3EBE9 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #26A98B | — |
| markup.bold, punctuation.definition.bold | #EDB54B | — |
| strong md | #EDB54B | — |
| markup.italic, punctuation.definition.italic | #26A98B | — |
| emphasis md | #26A98B | — |
| markup.list.punctuation.definition | #C33027 | — |
| markup.heading | #D26939 | |
| markup.heading punctuation.definition.heading, entity.name.section | #D26939 | — |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown | #EDB54B | — |
| meta.separator | #D26939 | — |
| keyword md | #D3EBE9 | — |
| markdown.markup.quote | #33859D | — |
| variable md | #D26939 | — |
| markup.raw.inline, markup.raw | #C678DD | — |
| string.other.link | #D3EBE9 | — |
| meta.link | #888BA5 | — |
| text.html.laravel-blade, source.php.embedded.line.html, entity.name.tag.laravel-blade | #C678DD | — |
| text.html.laravel-blade, source.php.embedded.line.html, support.constant.laravel-blade | #C679DD | — |
| punctuation.section.embedded.metatag, variable.interpolation | #C679DD | — |
| string.detected-link | #C33027 | — |
| string.storage | #D26939 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
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}!`;
}