8bit Cave Theme
Publisher: Murat AlpaslanThemes in package: 3
A retro-inspired VS Code theme with 8-bit aesthetics
A retro-inspired VS Code theme with 8-bit aesthetics
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| keyword | #ff6b6b | — |
| storage.type | #ff6b6b | — |
| storage.modifier | #ff6b6b | — |
| storage.class | #ff6b6b | — |
| string | #ffd93d | — |
| comment | #4ec9b0 | — |
| entity.name.function | #4d79ff | — |
| variable | #98c379 | — |
| constant.numeric | #ffa94d | — |
| entity.name.type | #da77f2 | — |
| entity.name.class | #ffa94d | — |
| keyword.operator | #4dabf7 | — |
| entity.name.tag | #ff6b6b | — |
| entity.other.attribute-name | #4dabf7 | — |
| support.type.property-name | #98c379 | — |
| support.constant.property-value | #ffd93d | — |
| support.function | #4d79ff | — |
| support.type.object | #da77f2 | — |
| entity.name.tag.html | #ff6b6b | — |
| entity.other.attribute-name.class.html | #4dabf7 | — |
| entity.other.attribute-name.id.html | #ffd93d | — |
| text.plain | #ffffff | — |
| meta.tag.block.any.html | #ffffff | — |
| meta.tag.inline.any.html | #ffffff | — |
| meta.tag.other.html | #ffffff | — |
| text.xml | #ffffff | — |
| text.markdown | #ffffff | — |
| text | #ffffff | — |
| punctuation.definition.tag | #ff6b6b | — |
| punctuation.definition.tag.begin | #ff6b6b | — |
| punctuation.definition.tag.end | #ff6b6b | — |
| punctuation.definition.bracket | #ff6b6b | — |
| punctuation.definition.block | #ff6b6b | — |
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}!`;
}