Lupine Theme
Publisher: Juhana JauhiainenThemes 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 |
|---|---|---|
| comment, punctuation.definition.comment | #535758 | italic |
| variable | #aaa | — |
| meta.object-literal.key | #dfdfdf | — |
| support.class.builtin | #7fdbca | — |
| variable.other.readwrite | #dfdfdf | — |
| variable.other.object.ts | #dfdfdf | — |
| variable.other.class | #f07178 | — |
| variable.language.prototype | #cecacf | — |
| constant.language.boolean | #c792ea | |
| string.quoted, constant.other.object.key, string.template | #ffdd6d | — |
| support.type.primitive, meta.type.parameters entity.name.type, entity.name.type | #FFC26D | — |
| variable.other.object.property, variable.other.property | #cecacf | italic |
| variable.other.object | #cecacf | |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #dc322f | — |
| keyword, storage.type, storage.modifier | #c792ea | — |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.switch.js, keyword.control.switch.ts, keyword.control | #c792ea | italic |
| entity.name.tag, constant.numeric.js | #f07178 | — |
| entity.other.attribute-name | #ACD653 | — |
| entity.name.function | #82AAFF | italic |
| keyword.control | #c792ea | — |
| entity.name.type, entity.other.inherited-class, support.class | #82AAFF | — |
| variable.parameter | #dfdfdf | — |
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}!`;
}