Hacker Style Themes
Publisher: bin70Themes in package: 1
Best hacker style theme in VS code.
Best hacker style theme in VS code.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #A2E14E | — |
| comment | #74A39C | — |
| string | #2fc1f8 | — |
| constant.numeric | #E8EDDB | — |
| constant.language | #f280d0 | — |
| constant.character, constant.other | #f280d0 | — |
| variable | — | |
| keyword | #FFB512 | — |
| storage | #225588 | |
| storage.type | #9966b8 | italic |
| entity.name.class | #ffeebb | underline |
| entity.other.inherited-class | #ddbb88 | italic underline |
| entity.name.function | #ddbb88 | |
| variable.parameter | #2277ff | italic |
| entity.name.tag | #225588 | |
| entity.other.attribute-name | #ddbb88 | |
| support.function | #9966b8 | |
| support.constant | #9966b8 | |
| support.type, support.class | #9966b8 | italic |
| 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}!`;
}