Regard
Publisher: nasmevkaThemes in package: 1
A high contrast theme focused on code comprehension and minimizing eyes tiredness.
A high contrast theme focused on code comprehension and minimizing eyes tiredness.
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| comment, punctuation.definition.comment, punctuation.end.definition.comment, punctuation.start.definition.comment | #5E5743 | — |
| constant.character, constant.character.escape, constant.character.entity | #9989A3 | — |
| constant.language | #9989A3 | — |
| constant.numeric | #9989A3 | — |
| constant.regexp | #FFBF6E | — |
| entity.name.class, entity.name.type | #6690B3 | — |
| entity.name.function | #4E945F | — |
| entity.name.tag | #4E945F | — |
| entity.other.attribute-name | #6690B3 | — |
| entity.other.inherited-class | #6690B3 | bold |
| invalid.deprecated | #F4ECF0 | — |
| invalid.illegal | #F4ECF0 | — |
| keyword | #C9303E | — |
| keyword.type | #6690B3 | — |
| keyword.struct | #DB784D | — |
| keyword.function | #DB784D | — |
| keyword.operator, keyword.control.ternary | #8ACB55 | — |
| keyword.other.typedef | #6690B3 | — |
| keyword.other.class | #DB784D | — |
| keyword.control.new, keyword.other.new | #9989A3 | — |
| markup.bold | — | bold |
| markup.changed | #FFBF6E | — |
| markup.deleted | #C9303E | — |
| markup.inserted | #4E945F | — |
| punctuation.definition.directive, meta.preprocessor | #C9303E | — |
| punctuation | #F4ECF0 | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters | #F4ECF0 | — |
| punctuation.definition.tag | #8ACB55 | — |
| punctuation.section | #F4ECF0 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #F4ECF0 | — |
| punctuation.terminator | #F4ECF0 | — |
| punctuation.definition.variable | #F4ECF0 | — |
| storage.type | #6690B3 | — |
| storage | #C9303E | — |
| storage.modifier | #DB784D | — |
| storage.type.struct | #DB784D | — |
| storage.type.class | #DB784D | — |
| storage.type.function | #DB784D | — |
| string, punctuation.definition.string, punctuation.definition.char | #FFBF6E | — |
| string.regexp, keyword.control.anchor.regexp, keyword.other.js | #FFBF6E | — |
| support.class | #6690B3 | — |
| support.constant | #DB784D | — |
| support.function | #4E945F | — |
| support.function.construct | #4E945F | — |
| support.type | #6690B3 | — |
| support.type.exception | #6690B3 | — |
| token.debug-token | #9989A3 | — |
| token.error-token | #C9303E | — |
| token.info-token | #6690B3 | — |
| token.warn-token | #FFBF6E | — |
| variable.other | #F4ECF0 | — |
| variable.language | #F4ECF0 | — |
| variable.parameter | #F4ECF0 | — |
| source.go entity.name.type | #F4ECF0 | — |
| entity.name.type.alias, entity.name.type.struct | #F4ECF0 | — |
| storage.modifier.pointer, storage.modifier.reference | #8ACB55 | — |
| storage.type.modifier.access.control | #DB744D | — |
| storage.modifier.import | #F4ECF0 | italic |
| entity.name.type.namespace | #F4ECF0 | italic |
| source.css meta.property-name, source.css support.type.property-name | #F4ECF0 | — |
| source.json support.type.property-name, source.json punctuation.support.type.property-name | #4E945F | — |
| text.html.markdown punctuation | #F4ECF0 | — |
| punctuation.definition.bold, punctuation.definition.strikethrough, punctuation.definition.italic | #C9303E | — |
| heading, punctuation.definition.heading | #DB744D | bold |
| markup.underline.link | #4E945F | — |
| markup.bold | #C9303E | bold |
| markup.italic | #C9303E | italic |
| markup.strikethrough | #C9303E | strikethrough |
| text.html.markdown string.other.link | #8ACB55 | italic |
| text.html.markdown constant.other.reference.link | #9989A3 | — |
| fenced_code.block.language, markup.fenced_code punctuation.definition.markdown | #5E5743 | — |
| meta.separator.markdown | #5E5743 | bold |
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}!`;
}