Ghostty synthwave Theme
Publisher: closjiThemes 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 |
|---|---|---|
| — | #dad9c7 | — |
| comment, comment.block, comment.line, comment.block.documentation, punctuation.definition.comment | #dad9c780 | italic |
| string, string.quoted.single, string.quoted.double, string.quoted.triple, string.quoted.backtick, string.template, string.interpolated, string.regexp, constant.other.symbol | #1ebb2b | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.decimal, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.character.escape, constant.other.color | #f85a21 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.this, constant.language.super, variable.language | #f6188f | — |
| variable, variable.other, variable.parameter, variable.other.readwrite, variable.other.object, variable.other.property | #dad9c7 | — |
| keyword, keyword.control, keyword.operator, keyword.other, storage.type, storage.modifier, punctuation.definition.keyword | #f6188f | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.assignment, keyword.operator.comparison | #f6188f | — |
| entity.name.function, support.function, support.class, meta.function-call, variable.function, support.function.builtin | #2186ec | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, storage.type.class, storage.type.interface, storage.type.enum | #f8d146 | — |
| entity.name.namespace, entity.name.module, entity.name.package, storage.modifier.import, storage.modifier.package | #f6188f | — |
| entity.name.tag, punctuation.definition.tag, meta.tag | #f6188f | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #f85a21 | — |
| entity.name.decorator, punctuation.decorator, meta.decorator, storage.type.annotation, punctuation.definition.annotation | #f85a21 | — |
| string.regexp, constant.regexp, string.regexp.character-class, string.regexp.anchor | #12c3e2 | — |
| punctuation, punctuation.definition, punctuation.section, punctuation.separator, meta.brace | #dad9c7 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #dad9c7 | — |
| support.constant.property-value, support.constant.color, support.constant.font-name, support.constant.media | #1ebb2b | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #f85a21 | — |
| markup.heading, entity.name.section.markdown | #f6188f | bold |
| markup.bold | #f85a21 | bold |
| markup.italic | — | italic |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #2186ec | — |
| markup.list.unnumbered, markup.list.numbered | #dad9c7 | — |
| markup.quote | #1ebb2b | italic |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #12c3e2 | — |
| text.git-commit, text.git-rebase, text.git.gitignore, source.gitignore, source.ignore, source.dockerfile, source.yaml, source.toml, source.ini | #dad9c7 | — |
| comment.line.number-sign.gitignore, comment.line.number-sign.git-rebase, comment.line.yaml, comment.line.toml | #dad9c780 | italic |
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}!`;
}