Subway
Publisher: idlebergThemes in package: 16
A collection of color schemes based on subway maps from around the world
A collection of color schemes based on subway maps from around the world
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 |
|---|---|---|
| variable.parameter.function | #303030 | — |
| comment, punctuation.definition.comment | #a0a0a0 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #303030 | — |
| none | #303030 | — |
| keyword.operator | #303030 | — |
| keyword, keyword.control | #9d3293 | — |
| variable | #f0523f | — |
| entity.name.function, meta.require, support.function.any-method | #0068b3 | — |
| meta.class, support.class, entity.name.class, entity.name.type.class | #f89829 | — |
| keyword.other.special-method | #0068b3 | — |
| storage | #9d3293 | — |
| support.function | #41c4dd | — |
| string, constant.other.symbol, entity.other.inherited-class | #8dc63f | — |
| constant.numeric | #f89829 | — |
| none | #f89829 | — |
| none | #f89829 | — |
| constant | #f89829 | — |
| entity.name.tag | #f0523f | — |
| entity.other.attribute-name | #f89829 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #0068b3 | — |
| meta.selector | #9d3293 | — |
| none | #f89829 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #0068b3 | |
| keyword.other.unit | #f89829 | — |
| markup.bold, punctuation.definition.bold | #f89829 | bold |
| markup.italic, punctuation.definition.italic | #9d3293 | italic |
| markup.raw.inline | #8dc63f | — |
| string.other.link | #f0523f | — |
| meta.link | #f89829 | — |
| markup.list | #f0523f | — |
| markup.quote | #f89829 | — |
| meta.separator | #303030 | — |
| markup.inserted | #8dc63f | — |
| markup.deleted | #f0523f | — |
| markup.changed | #9d3293 | — |
| constant.other.color | #41c4dd | — |
| string.regexp | #41c4dd | — |
| constant.character.escape | #41c4dd | — |
| punctuation.section.embedded, variable.interpolation | #cf7019 | — |
| invalid.illegal | #ffffff | — |
| string.variable | #f0523f | — |
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}!`;
}