Keiryu Theme
Publisher: 8mitsuboyThemes in package: 1
A dark color theme inspired by mountain streams
A dark color theme inspired by mountain streams
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 | #666152 | italic |
| keyword, keyword.control, keyword.operator.new, storage.type, storage.modifier | #c04848 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #587d86 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class | #736985 | — |
| entity.name.tag, meta.tag entity.name.tag, meta.tag.custom entity.name.tag, support.class.component | #a96b46 | — |
| punctuation.definition.tag, meta.tag punctuation, punctuation.bracket.angle | #454b3f | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, meta.tag.attributes entity.other.attribute-name, support.type.property-name | #736985 | — |
| markup.underline.link, markup.underline.link.markdown, markup.underline.link.mdx, string.other.link.title.markdown, string.other.link.title.mdx, markup.link | #587d86 | — |
| markup.inline.raw, markup.inline.raw.markdown, markup.inline.raw.mdx, markup.raw.code.mdx, markup.inline.raw.code.mdx, markup.fenced_code.block.markdown, markup.fenced_code.block.mdx, markup.raw.block.markdown, markup.raw.block.mdx | #517860 | — |
| markup.bold.markdown, markup.bold.mdx, markup.bold, string.other.strong.emphasis.asterisk.mdx, string.other.strong.emphasis.underscore.mdx, string.other.strong.asterisk.mdx, string.other.strong.underscore.mdx | #736985 | bold |
| markup.quote, markup.quote.markdown, markup.quote.mdx, punctuation.definition.quote.begin.markdown, punctuation.definition.quote.begin.mdx | #517860 | italic |
| string, string.quoted, string.template | #517860 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #9b927d | — |
| variable.other.property, variable.other.object.property, variable.parameter, meta.parameters variable.other | #517860 | — |
| entity.name.annotation, entity.name.type.annotation, meta.decorator, meta.decorator entity.name.function, meta.annotation, punctuation.decorator, punctuation.definition.annotation, storage.type.annotation, support.annotation, meta.annotation entity.name.type | #736985 | — |
| variable, variable.other | #b3a990 | — |
| keyword.operator | #9b927d | — |
| punctuation, meta.brace | #b3a990 | — |
| heading.1.markdown, heading.1.mdx, markup.heading.heading-1.markdown, markup.heading.heading-1.mdx, markup.heading.atx.1.mdx, markup.heading.setext.1.mdx | #c04848 | — |
| heading.2.markdown, heading.2.mdx, markup.heading.heading-2.markdown, markup.heading.heading-2.mdx, markup.heading.atx.2.mdx, markup.heading.setext.2.mdx | #a96b46 | — |
| heading.3.markdown, heading.3.mdx, markup.heading.heading-3.markdown, markup.heading.heading-3.mdx, markup.heading.atx.3.mdx | #a7884a | — |
| heading.4.markdown, heading.4.mdx, markup.heading.heading-4.markdown, markup.heading.heading-4.mdx, markup.heading.atx.4.mdx | #736985 | — |
| punctuation.definition.heading.markdown, punctuation.definition.heading.mdx | #454b3f | — |
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}!`;
}