harricHe-theme
Publisher: harricHeThemes in package: 1
harricHe-theme
harricHe-theme
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 |
|---|---|---|
| storage.type | #000080 | bold |
| variable.other.enummember | #005959 | bold |
| keyword, keyword.operator.logical, keyword.operator.constructor | #000080 | bold |
| keyword.operator | #000000 | — |
| constant.numeric | #ff0000 | — |
| variable.other.global | #CC6600 | bold |
| variable.other.local | #008080 | italic |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #008080 | |
| entity.name.type | #9d004f | bold |
| string.quoted | #0000ff | — |
| string, string.regexp, string.interpolated, string.template, string.detected-link, string.template, string.other | #fcf838 | — |
| constant.character, constant.other | #0000ff | bold |
| comment, string.comment | #808080 | italic |
| entity.name.function, entity.name.function.templated, entity.name.function.member, entity.name.function-call | #008040 | bold |
| entity.name.function.member.static | #008040 | italic bold |
| entity.name.function.preprocessor | #ff0000 | — |
| entity.name.namespace | #18AADE | — |
| variable.other.property.static | #008080 | italic bold |
| variable.other.property | #008080 | bold |
| keyword.operator.new | #000080 | italic bold |
| support.type, support.variable | #525252 | — |
| punctuation.separator, punctuation.accessor | #000000 | — |
| #e5ff00 | — | |
| entity.name.tag, entity.name.tag.class.js | #e06c75 | — |
| entity.name.tag.class, entity.name.tag.id | #56b6c2 | — |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #c678dd | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, source.elixir.embedded, meta.brace | #abb2bf | — |
| constant.language | #56b6c2 | — |
| storage.modifier.import, storage.modifier.package | #61afef | — |
| function.support.builtin, function.support.core | #98c379 | — |
| entity.other.inherited-class | #98c379 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.sass | #56b6c2 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98c379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #e5c07b | — |
| unit.css, unit.scss, unit.less, unit.sass | #c678dd | — |
| function.css, function.scss, function.less, function.sass | #56b6c2 | — |
| entity.other.attribute-name | #98c379 | — |
| variable.language | #e06c75 | — |
| variable.other.property.cli, variable.other.event, entity.name.label, entity.name.type.class.value, entity.name.type.class.generic, entity.name.operator.custom-literal, entity.name.operator.custom-literal.number, entity.name.operator.custom-literal.string, entity.name.function.operator.member, entity.name.function.operator | #00ff00 | — |
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}!`;
}