Subway (dark)
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...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #8a8b8a | — |
| variable.parameter.function | #8a8b8a | — |
| comment, punctuation.definition.comment | #686b6b | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #8a8b8a | — |
| none | #8a8b8a | — |
| keyword.operator | #8a8b8a | — |
| keyword, keyword.control | #d574a1 | — |
| variable | #d93e3c | — |
| entity.name.function, meta.require, support.function.any-method | #0073aa | — |
| meta.class, support.class, entity.name.class, entity.name.type.class | #f3b63b | — |
| keyword.other.special-method | #0073aa | — |
| storage | #d574a1 | — |
| support.function | #00a4d8 | — |
| string, constant.other.symbol, entity.other.inherited-class | #33a958 | — |
| constant.numeric | #e88639 | — |
| none | #e88639 | — |
| none | #e88639 | — |
| constant | #e88639 | — |
| entity.name.tag | #d93e3c | — |
| entity.other.attribute-name | #e88639 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #0073aa | — |
| meta.selector | #d574a1 | — |
| none | #e88639 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #0073aa | |
| keyword.other.unit | #e88639 | — |
| markup.bold, punctuation.definition.bold | #f3b63b | bold |
| markup.italic, punctuation.definition.italic | #d574a1 | italic |
| markup.raw.inline | #33a958 | — |
| string.other.link | #d93e3c | — |
| meta.link | #e88639 | — |
| markup.list | #d93e3c | — |
| markup.quote | #e88639 | — |
| meta.separator | #8a8b8a | — |
| markup.inserted | #33a958 | — |
| markup.deleted | #d93e3c | — |
| markup.changed | #d574a1 | — |
| constant.other.color | #00a4d8 | — |
| string.regexp | #00a4d8 | — |
| constant.character.escape | #00a4d8 | — |
| punctuation.section.embedded, variable.interpolation | #9b592c | — |
| invalid.illegal | #1a1919 | — |
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}!`;
}