Wye
Publisher: phyzessThemes in package: 10
wye change theme~
wye change 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 |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #a0ada0 | — |
| delimiter.bracket, delimiter, invalid.illegal.character-not-allowed-here.html, keyword.operator.rest, keyword.operator.spread, keyword.operator.type.annotation, keyword.operator.relational.ts, meta.brace, meta.tag.block.any.html, meta.tag.inline.any.html, meta.tag.structure.input.void.html, meta.type.annotation, storage.type.function.arrow, keyword.operator.type, meta.objectliteral.ts, punctuation | #999999 | — |
| constant, entity.name.constant, variable.language, meta.definition.variable | #a65e2b | — |
| entity, entity.name | #59873a | — |
| variable.parameter.function | #393a34 | — |
| entity.name.tag, tag.html | #1e754f | — |
| entity.name.function | #59873a | — |
| keyword, storage.type.class.jsdoc | #1e754f | italic |
| storage, storage.type, support.type.builtin, constant.language.undefined, constant.language.null | #ab5959 | italic |
| storage.modifier.package, storage.modifier.import, storage.type.java | #393a34 | — |
| string, string punctuation.section.embedded source, attribute.value | #b56959 | — |
| punctuation.definition.string, punctuation.support.type.property-name | #b56959aa | — |
| support | #998418 | — |
| property, meta.property-name, meta.object-literal.key, entity.name.tag.yaml, attribute.name | #998418 | — |
| entity.other.attribute-name, invalid.deprecated.entity.other.attribute-name.html | #b07d48 | — |
| variable, identifier | #b07d48 | — |
| support.type.primitive, entity.name.type | #2e808f | — |
| namespace | #b05a78 | — |
| keyword.operator, meta.var.expr.ts | #ab5959 | — |
| invalid.broken | #b31d28 | italic |
| invalid.deprecated | #b31d28 | italic |
| invalid.illegal | #b31d28 | italic |
| invalid.unimplemented | #b31d28 | italic |
| carriage-return | #fafbfc | italic underline |
| message.error | #b31d28 | — |
| string source | #393a34 | — |
| string variable | #b56959 | — |
| source.regexp, string.regexp | #ab5e3f | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #b56959 | — |
| string.regexp constant.character.escape | #bda437 | — |
| support.constant | #a65e2b | — |
| constant.numeric, number | #2f798a | — |
| keyword.other.unit | #ab5959 | — |
| constant.language.boolean, constant.language | #1e754f | italic |
| meta.module-reference | #1c6b48 | — |
| punctuation.definition.list.begin.markdown | #a65e2b | — |
| markup.heading, markup.heading entity.name | #1c6b48 | bold |
| markup.quote | #2e8f82 | — |
| markup.italic | #393a34 | italic |
| markup.bold | #393a34 | bold |
| markup.raw | #1c6b48 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #b31d28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863a | — |
| markup.changed, punctuation.definition.changed | #e36209 | — |
| markup.ignored, markup.untracked | #f6f8fa | — |
| meta.diff.range | #6f42c1 | bold |
| meta.diff.header | #005cc5 | — |
| meta.separator | #005cc5 | bold |
| meta.output | #005cc5 | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #b31d28 | — |
| constant.other.reference.link, string.other.link, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #b56959 | — |
| markup.underline.link.markdown | #393a3490 | underline |
| type.identifier | #5a6aa6 | — |
| entity.other.attribute-name.html.vue | #59873a | — |
| invalid.illegal.unrecognized-tag.html | — | normal |
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}!`;
}