Hazy Forge Theme
Publisher: palehazyThemes 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 | #546E7A | italic |
| variable, string constant.other.placeholder | #EEFFFF | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF0004 | — |
| keyword, storage.type, storage.modifier | #C792EA | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89DDFF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f39698 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #82AAFF | — |
| meta.block variable.other | #f8f8f8 | — |
| support.other.variable, string.other.link | #ffffff | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #1BC043 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #C3E88D | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FFCB6B | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #B2CCD6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| 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 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #ffffff | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
| constant.language.undefined, constant.language.null | #87ff83 | — |
| punctuation.definition.string.begin.tsx, punctuation.definition.string.begin.ts, punctuation.definition.string.begin.js, punctuation.definition.string.begin.jsx, punctuation.definition.string.end.tsx, punctuation.definition.string.end.ts, punctuation.definition.string.end.js, punctuation.definition.string.end.jsx | #b1ff9e | |
| constant.language.boolean.true.tsx, constant.language.boolean.true.ts, constant.language.boolean.true.js, constant.language.boolean.true.jsx, constant.language.undefined.tsx, constant.language.undefined.ts, constant.language.undefined.js, constant.language.undefined.jsx, constant.language.null.tsx, constant.language.null.ts, constant.language.null.js, constant.language.null.jsx, constant.numeric.decimal.tsx, constant.numeric.decimal.ts, constant.numeric.decimal.js, constant.numeric.decimal.jsx | #0f9d58 | |
| string.quoted.single.tsx, string.quoted.double.tsx, string.quoted.single.ts, string.quoted.double.ts | #ffff81 | |
| string.template.tsx, string.template.ts, string.template.js, string.template.jsx | #d9b1aa | |
| variable.other.enummember.ts, variable.other.enummember.tsx | #98594b | |
| keyword.control.flow.tsx, keyword.control.flow.ts | #EDFF7A | |
| variable.object.property.tsx, meta.object-literal.key.tsx, variable.object.property.ts, meta.object-literal.key.ts | #00bfff | |
| entity.name.type.tsx, support.type.primitive.tsx, entity.name.type.ts, support.type.primitive.ts, support.type.builtin.ts, support.type.builtin.tsx | #5cc0eb | |
| variable.other.constant.tsx, variable.other.constant.ts | #678AE0 | |
| storage.type.interface.ts, storage.modifier.ts, storage.type.type.ts, storage.type.class.ts, storage.type.function.ts, storage.type.function.ts, keyword.operator.expression.in.ts, storage.type.interface.tsx, storage.modifier.tsx, storage.type.type.tsx, storage.type.class.tsx, storage.type.function.tsx, storage.type.function.tsx, keyword.operator.expression.in.tsx, storage.type.interface.jsx, storage.modifier.jsx, storage.type.type.jsx, storage.type.class.jsx, storage.type.function.jsx, storage.type.function.jsx, keyword.operator.expression.in.jsx, storage.type.ts, storage.type.tsx, keyword.operator.type.annotation.ts, keyword.operator.type.annotation.tsx, keyword.control.flow.tsx, keyword.control.flow.ts, keyword.operator.expression.typeof.tsx, keyword.operator.expression.typeof.ts | #b57ae6 | |
| entity.name.function.tsx, entity.name.function.ts | #f0c908 | |
| entity.name.type.class.ts, entity.other.inherited-class.ts, entity.name.type.interface.ts, entity.name.type.class.tsx, entity.other.inherited-class.tsx, entity.name.type.interface.tsx | #dba031 | |
| variable.other.readwrite.tsx, variable.other.readwrite.ts, variable.other.constant.tsx, variable.other.constant.ts, meta.function.tsx variable.other.readwrite.tsx, meta.function.tsx variable.other.readwrite.ts | #9bc0bb | |
| variable.other.object.tsx, variable.other.object.ts, variable.other.object.jsx, variable.other.object.js | #d24b4b | |
| variable.other.object.property.tsx, variable.other.object.property.ts, variable.other.object.property.jsx, variable.other.object.property.js | #7579B9 | |
| variable.other.property.tsx, variable.other.property.ts, variable.other.property.jsx, variable.other.property.js | #6d6ec0 | |
| meta.jsx.children.tsx | #65ff1e | bold |
| keyword.control.import.ts, keyword.control.import.tsx | #5c72d3 | bold |
| keyword.control.from.ts, keyword.control.from.tsx | #5c72d3 | bold |
| entity.other.attribute-name.tsx | #00bfff | |
| entity.name.tag.tsx | #F69273 | |
| support.class.component.tsx | #f0c908 | |
| string.quoted.single.js, string.quoted.double.js | #ceeaf7 | |
| variable.object.property.js, meta.object-literal.key.js | #42c0ff | |
| storage.type.js | #80ceda | |
| entity.name.type.js, support.type.primitive.js | #7AB8EB | |
| variable.other.constant.js | #678AE0 | |
| entity.name.function.js | #f0c808 | |
| variable.other.readwrite.js | #ff395a | bold |
| entity.name.tag.yaml | #edae49 | bold |
| string.unquoted.plain.out.yaml, string.unquoted.block.yaml | #95bbdb | bold |
| constant.language.boolean.yaml, constant.numeric.integer.yaml, constant.numeric.float.yaml, constant.language.null.yaml | #0adeff | bold |
| source.python | #80b6e9 | bold |
| support.type.python, meta.item-access.python | #00aeff | bold |
| meta.function-call.generic.python, meta.function.decorator.python support.type.python, entity.name.function.python | #ebce4e | bold |
| keyword.control.flow.python, keyword.control.import.python | #996dc2 | bold |
| variable.other.readwrite.python | #0adeff | 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}!`;
}