banana pancake
Publisher: mikaelkristianssonThemes in package: 1
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 |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #766056 | — |
| string | #fd9a69 | — |
| meta.template.expression | #F8F8F2 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #60cce1 | — |
| keyword.control.flow | #ead2ff | — |
| constant.numeric | #F8F8F2 | — |
| constant.language | #EEEEEE | — |
| constant.character, constant.other | #EEEEEE | — |
| variable | — | |
| keyword | #60cce1 | — |
| storage | #60cce1 | |
| storage.type | #EEEEEE | italic |
| storage.type.function.arrow.js | #60cce1 | italic |
| entity.name.class | #2de5ba | underline |
| entity.other.inherited-class | #2de5ba | italic underline |
| entity.name.function | #2de5ba | |
| variable.parameter | #d681e7 | italic |
| entity.name.tag | #60cce1 | |
| entity.other.attribute-name | #2de5ba | |
| support.function | #60cce1 | |
| support.constant | #60cce1 | |
| support.type, support.class | #60cce1 | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
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}!`;
}