Hakimi Deuteranopia Safe
Publisher: hakimiThemes in package: 2
A VSCode theme extension optimized specifically for deuteranopia (green-blindness) accessibility (Light and Dark versions)
A VSCode theme extension optimized specifically for deuteranopia (green-blindness) accessibility (Light and Dark versions)
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, unused | #9c9c9b | italic |
| string, punctuation.definition.string, string.template | #4387d7 | — |
| keyword, keyword.control, keyword.operator, punctuation.separator, punctuation.terminator | #869ec5 | bold |
| entity.name.function, support.function, variable.function, meta.function-call | #c2570a | — |
| constant.numeric, constant.language, constant.character, constant.other, variable.other.constant | #89461e | — |
| entity.name.type, entity.name.class, support.class, storage.type, storage.modifier | #89461e | — |
| support.class.builtin, support.class.js, support.class.ts | #869ec5 | — |
| variable, variable.parameter, variable.other, meta.block variable.other, variable.other.property, support.variable.property | #45494c | — |
| entity.name.tag, punctuation.definition.tag, meta.tag | #869ec5 | — |
| entity.other.attribute-name, meta.attribute | #4387d7 | — |
| invalid, invalid.illegal | #dc7c7e | bold underline |
| punctuation.definition.typeparameters | #89461e | — |
| support.type.primitive, keyword.type | #45494c | — |
| support.type.property-name.json, support.type.property-name.yaml, support.type.property-name.toml, entity.name.tag.yaml | #869ec5 | — |
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}!`;
}