hauseyo-style
Publisher: hauseyoThemes in package: 1
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 | #726b5d | — |
| comment.rainbow4 | #c678DD | — |
| constant.numeric.rainbow7 | #4EC9B0 | — |
| entity.name.type.rainbow8 | — | — |
| markup.bold.rainbow9 | #2ECBE9 | None |
| invalid.rainbow10 | #f07178 | — |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #FFF | — |
| variable.parameter | #CBB2FA | — |
| variable.other.jsdoc | #CBB2FA | — |
| variable.other.property.js | #8ecae6 | — |
| variable.other.object.property | #8ecae6 | — |
| constant.numeric.decimal | #79C0FF | — |
| support.type.object.module | #e9d07d | — |
| constant.language.null, constant.language.undefined, constant.language.nan | #ffb2b2 | — |
| constant.language.boolean | #2ECBE9 | — |
| entity.name, meta.export.default, meta.definition.variable | #ffa657 | — |
| entity.name.type | #4EC9B0 | — |
| entity.name.type.attribute-name.cds | #82AAFF | — |
| entity.other.attribute-name | #e9d07d | — |
| identifier.cds | #c678DD | — |
| entity.name.constant, meta.block, meta.embedded.expression, meta.jsx.children, meta.object.member, meta.tag.attributes, variable.parameter.function | #82AAFF | — |
| entity.name.function | #82AAFF | — |
| entity.name.tag, support.class.component | #82AAFF | — |
| entity.name.tag.yaml | #e9d07d | — |
| source.yaml string | #FFF | — |
| constant.numeric.integer.yaml | #79C0FF | — |
| entity.name.tag.namespace, punctuation.separator.key-value.html | #e9d07d | — |
| punctuation | #e9d07d | — |
| entity.name.namespace | #e9d07d | — |
| meta.tag.xml | #e9d07d | — |
| keyword | #e9d07d | — |
| storage, storage.type | #e9d07d | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #CBB2FA | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #c9d1d9 | — |
| string, string punctuation.section.embedded source, punctuation.definition.string | #ffb45e | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #FFA657 | — |
| punctuation, punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end, punctuation.terminator.statement | — | — |
| support, entity.name.type.instance.jsdoc | #79c0ff | — |
| meta.property-name | #79c0ff | — |
| variable | #FFF | — |
| variable.other | #FFF | — |
| variable.language.this | #e9d07d | — |
| invalid.broken | #ffa198 | italic |
| invalid.deprecated | #ffa198 | italic |
| invalid.illegal | #ffa198 | italic |
| invalid.unimplemented | #ffa198 | italic |
| carriage-return | #0d1117 | italic underline |
| message.error | #ffa198 | — |
| string source | #c9d1d9 | — |
| string variable | #79c0ff | — |
| source.regexp, string.regexp | #a5d6ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #a5d6ff | — |
| string.regexp constant.character.escape | #7ee787 | bold |
| support.constant | #79c0ff | — |
| support.variable | #FC5185 | — |
| support.constant.property | #FFF | — |
| support.class | #FC5185 | — |
| meta.module-reference | #79c0ff | — |
| punctuation.definition.list.begin.markdown | #ffa657 | — |
| markup.heading, markup.heading entity.name | #79c0ff | bold |
| markup.quote | #7ee787 | — |
| markup.italic | #c9d1d9 | italic |
| markup.bold | #c9d1d9 | bold |
| markup.raw | #79c0ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ffa198 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #7ee787 | — |
| markup.changed, punctuation.definition.changed | #ffa657 | — |
| markup.ignored, markup.untracked | #161b22 | — |
| meta.diff.range | #d2a8ff | bold |
| meta.diff.header | #79c0ff | — |
| meta.separator | #79c0ff | bold |
| meta.output | #79c0ff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #8b949e | — |
| brackethighlighter.unmatched | #ffa198 | — |
| constant.other.reference.link, string.other.link | #a5d6ff | underline |
| constant.language.json.comments | #2ECBE9 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFCB6B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F78C6C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5370 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82AAFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C3E88D | — |
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}!`;
}