mesaquen-hc-theme
Publisher: Mesaque FranciscoThemes in package: 1
A high contrast theme but with only 8 bit colors and 2 bit grayscale
A high contrast theme but with only 8 bit colors and 2 bit grayscale
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 |
|---|---|---|
| markup.heading | #00FF00 | bold |
| markup.list | #FF00FF | — |
| markup.bold | #0FF | bold |
| markup.italic | — | italic |
| markup.quote | #6B6B6B | italic |
| comment | #6b6b6b | — |
| string | #00FF00 | — |
| constant.numeric | #FF0000 | — |
| constant.language | #FF0000 | — |
| constant.character, constant.other | #FF0000 | — |
| variable | #FFFF00 | |
| keyword | #FF00FF | italic |
| storage | #FF00FF | — |
| storage.type | #00FFFF | — |
| entity.name.class | #FFFF00 | — |
| entity.other.inherited-class | #FFFF00 | — |
| entity.name.function | #FFFF00 | |
| variable.parameter | #FFFF00 | — |
| entity.name.tag | #FF0000 | |
| entity.other.attribute-name | #FF0000 | |
| support.function | #00FF00 | |
| support.constant | #00FF00 | |
| support.type, support.class | #00FFFF | — |
| support.other.variable | #FF0000 | |
| invalid | #FFFFFF | |
| invalid.deprecated | #FFFFFF | — |
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}!`;
}