Minecraft Theme
Publisher: Mateo RyhrThemes in package: 20
A VS Code theme inspired by Minecraft. Includes multiple color themes, Minecraft sound effects, pixel-art file icons, and more.
A VS Code theme inspired by Minecraft. Includes multiple color themes, Minecraft sound effects, pixel-art file icons, and more.
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 | #7A6A5A | italic |
| keyword, storage.type, storage.modifier | #C4693D | — |
| string, string.quoted, string.regexp | #C4A87C | — |
| constant.numeric, constant.language | #E8A85C | — |
| entity.name.function, meta.function-call, support.function | #E8A85C | — |
| entity.name.type, entity.name.class, support.type | #E8A85C | — |
| variable, variable.parameter | #E8DCC8 | — |
| variable.other.constant | #C4A87C | — |
| support.type.property-name.css | #E8A85C | italic |
| meta.tag, entity.name.tag | #C4693D | — |
| entity.other.attribute-name | #C4A87C | — |
| punctuation, meta.brace, meta.brace.round | #8A7A6A | — |
| markup.heading, markup.heading entity.name | #E8A85C | bold |
| markup.list | #C4A87C | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code.block | #C4A87C | — |
| constant.character.escape | #4AE0E0 | — |
| support.type.property-name.json | #E8A85C | — |
| constant.language.json | #C4693D | — |
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}!`;
}