Beacon Themes
Publisher: Alan RomanThemes in package: 6
High-contrast themes solved for WCAG AAA, with red-green and blue-yellow safe variants for colour vision deficiency.
High-contrast themes solved for WCAG AAA, with red-green and blue-yellow safe variants for colour vision deficiency.
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 | #95A2A9 | italic |
| keyword, storage, storage.type, storage.modifier, keyword.control | #FFBEDE | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter | #A3AEBD | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python | #FFBEDE | — |
| string, string.quoted, string.template, punctuation.definition.string | #59B55F | — |
| string.regexp, constant.character.escape, constant.other.placeholder | #75F0F0 | — |
| constant.numeric, constant.language, constant.other, support.constant, variable.other.constant, variable.other.enummember | #FFB37E | — |
| entity.name.function, support.function, meta.function-call, variable.function | #9DC5FF | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.other.inherited-class, support.type, support.class, storage.type.primitive, storage.type.builtin | #FFE7B4 | — |
| entity.name.namespace, entity.name.module, entity.name.type.module | #B7D4FF | — |
| variable, meta.definition.variable | #D8DFE8 | — |
| variable.parameter, meta.parameter | #EDF1F6 | — |
| variable.language, variable.language.this, variable.language.self | #FF968F | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, entity.name.variable.field | #75F0F0 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, storage.type.annotation | #7FFEFF | — |
| entity.name.function.macro, keyword.control.directive, keyword.control.import, keyword.control.export | #FFD3E8 | — |
| entity.name.tag, punctuation.definition.tag | #FF968F | — |
| entity.other.attribute-name | #FFB37E | — |
| support.type.property-name.json, support.type.property-name | #9DC5FF | — |
| markup.heading, entity.name.section | #9DC5FF | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #D8DFE8 | italic |
| markup.underline.link, string.other.link | #75F0F0 | underline |
| markup.inline.raw, markup.fenced_code, markup.raw | #FFB37E | — |
| markup.quote | #95A2A9 | italic |
| markup.list, punctuation.definition.list | #FFBEDE | — |
| markup.inserted, meta.diff.header.to-file | #59B55F | — |
| markup.deleted, meta.diff.header.from-file | #FF968F | — |
| markup.changed | #FFE7B4 | — |
| invalid, invalid.illegal | #FF968F | underline |
| invalid.deprecated | #FFE7B4 | strikethrough |
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}!`;
}