Hakimi Colorblind Theme
Publisher: hakimiThemes in package: 1
High-contrast light theme tuned for hybrid color-vision deficiency (green + blue-violet).
High-contrast light theme tuned for hybrid color-vision deficiency (green + blue-violet).
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 |
|---|---|---|
| source, meta, variable.other.readwrite, variable.other | #1F1F23 | — |
| comment, punctuation.definition.comment | #6A6A75 | italic |
| keyword, storage.type, storage.modifier, keyword.control | #8A4D00 | bold |
| support.type, entity.name.type, entity.name.class, entity.other.inherited-class | #0078A8 | bold |
| entity.name.type.interface, support.type.primitive | #006F7A | bold |
| entity.name.function, support.function, meta.function-call, variable.function | #8A217E | |
| variable.parameter | #6A3E7A | italic |
| string, punctuation.definition.string | #5C3E99 | italic |
| constant.numeric, constant.character.numeric | #A83232 | — |
| constant.language, variable.language, constant.other | #9C1F1F | bold |
| keyword.operator, punctuation.separator, punctuation.separator.key-value | #474752 | — |
| meta.object-literal.key, support.type.property-name, entity.name.tag.yaml | #7A4B00 | bold underline |
| entity.other.attribute-name, meta.tag.attribute | #8555B4 | — |
| entity.name.tag, meta.tag.sgml, meta.tag, support.class.component | #0066A2 | bold |
| entity.name.tag.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #0061A8 | bold |
| support.type.property-name.css | #7A4B00 | — |
| support.type.property-name.json, support.type.property-name | #7A4B00 | bold |
| punctuation.section, punctuation.definition.block, punctuation.definition.parameters, punctuation.section.block | #555560 | — |
| invalid, invalid.illegal | #C00000 | bold underline |
| invalid.deprecated | #8A4D00 | underline |
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}!`;
}