F
Publisher: k4y4kThemes in package: 1
A theme for Markdown editing!
A theme for Markdown editing!
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 |
|---|---|---|
| — | #EDEBEE | — |
| comment | #BD007E | — |
| string | #6b9fee | — |
| constant.numeric | #FF0077 | — |
| constant.language | #FFF6B0 | — |
| constant.character, constant.other | #FFF6B0 | — |
| variable | #6b9fee | — |
| keyword | #FFF6B0 | — |
| storage | #FFFFFF | — |
| storage.type | #FF0077 | italic |
| entity.name.class | #FFFFFF | underline |
| entity.other.inherited-class | #FFFFFF | italic underline |
| entity.name.function | #22D07F | — |
| variable.parameter | #22D07F | italic |
| entity.name.tag | #22D07F | — |
| entity.other.attribute-name | #6b9fee | — |
| support.function | #22D07F | — |
| support.constant | #22D07F | — |
| support.type, support.class | #22D07F | italic |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| heading.1.markdown | — | bold italic underline |
| heading.2.markdown | — | italic underline |
| heading.3.markdown | — | underline |
| markup.heading | #22d07f | — |
| markup.italic | #22d07f | italic |
| markup.bold | #22d07f | bold |
| punctuation.definition.list.begin.markdown | #6b9fee | — |
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}!`;
}