Tsunetsuki Theme
Publisher: mrnforThemes 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 |
|---|---|---|
| — | #373B41 | — |
| comment | #351B40 | italic |
| string | #008D5E | — |
| constant.numeric | #0630A7 | — |
| constant.language | #E77A13 | — |
| constant.character, constant.other | #DA421D | — |
| variable | #0630A7 | — |
| keyword | #F11F14 | bold |
| storage | #3B058D | |
| storage.type | #3B058D | bold |
| entity.name.class | #0630A7 | bold |
| entity.other.inherited-class | #0630A7 | — |
| entity.name.function | #0630A7 | — |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #3B058D | |
| entity.other.attribute-name | #0630A7 | |
| support.function | #DA421D | |
| support.constant | #DA421D | |
| support.type, support.class | #DA421D | bold |
| 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}!`;
}