busan-night-mono
Publisher: k010Themes in package: 1
inspired by beach
inspired by beach
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 | #7A818A | italic |
| keyword, storage.type, storage.modifier | #8395A6 | — |
| keyword.control | #8395A6 | italic |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.other, punctuation.section | #515358 | — |
| punctuation.definition.bracket, punctuation.definition.parameters, punctuation.section.braces, punctuation.section.brackets, punctuation.section.parens | #515358 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement, keyword.operator.ternary | #515358 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.section.embedded | #515358 | — |
| string, string.regexp, constant.other.symbol, constant.other.key, entity.other.inherited-class | #8EA086 | — |
| constant.numeric, constant.language, constant.character, constant.escape, constant.character.escape, support.constant, keyword.other.unit | #A2AFC1 | — |
| entity.name.function, support.function, meta.function-call, variable.function, keyword.other.special-method, entity.name.method.js, meta.class-method.js entity.name.function.js | #92A4B6 | — |
| entity.name.class, entity.name.type, support.type, support.class, entity.name.module.js, variable.other.class.js, support.type.sys-types | #A2AFC1 | — |
| variable, variable.other, string constant.other.placeholder | #989DA6 | — |
| variable.parameter, variable.language, variable.import.parameter.js | #989DA6 | italic |
| variable.other.instance, variable.other.member, variable.other.object, variable.object, support.variable, entity.name.variable.instance | #8395A6 | — |
| variable.other.property, variable.object.property, variable.other.object.property, variable.other.member.property, support.variable.property, entity.name.variable.property, support.type.property-name.css | #7C8CA0 | — |
| entity.other.attribute-name | #92A4B6 | — |
| entity.name.tag, meta.tag.sgml | #8395A6 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #7C8CA0 | italic |
| invalid, invalid.illegal | #B67676 | — |
| markup.inserted, markup.inserted.git_gutter | #8EA086 | — |
| markup.deleted, markup.deleted.git_gutter | #B67676 | — |
| markup.changed, markup.changed.git_gutter | #8395A6 | — |
| url, link, uri | #8395A6 | underline |
| source.json meta.structure.dictionary.json support.type.property-name.json | #8395A6 | italic |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #92A4B6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A2AFC1 | — |
| 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 | #6C7B8E | — |
| 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 | #7F858F | — |
| markup.heading, markup.heading.markdown punctuation.definition.heading.markdown | #8395A6 | italic |
| markup.italic | #B9BEC7 | italic |
| markup.underline | #92A4B6 | underline |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown | #53575E | italic |
| string.other.link.title.markdown | #8395A6 | — |
| string.other.link.description.title.markdown | #6C7B8E | — |
| constant.other.reference.link.markdown | #A2AFC1 | — |
| text.html.markdown markup.inline.raw.markdown | #92A4B6 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, variable.language.fenced.markdown | #515358 | — |
| meta.separator | #515358 | — |
| text.html.markdown, markup.table | #B9BEC7 | — |
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}!`;
}