Hashi-Kazu テーマ
Publisher: Hashi-KazuThemes in package: 4
A collection of VS Code color themes by hashi-kazu.
A collection of VS Code color themes by hashi-kazu.
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 | #3E3565 | italic |
| string, string.quoted, string.template | #A8CCE0 | — |
| constant.character.escape, string.regexp | #C0E0F0 | — |
| constant.numeric | #7AB8D8 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #7AB8D8 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage, storage.type, storage.modifier | #5A90C8 | — |
| entity.name.function, meta.function-call, support.function, variable.function | #2ABCCC | — |
| entity.name.type, entity.name.class, support.class, support.type | #38C8D8 | — |
| variable, variable.other, variable.other.readwrite | #E8F0F8 | — |
| variable.parameter | #C8DCE8 | — |
| variable.other.constant, constant.other | #A8CCE0 | bold |
| variable.other.property, support.variable.property, meta.object-literal.key | #C0D8E8 | — |
| keyword.operator, punctuation.separator, punctuation.accessor | #7A9CB8 | — |
| punctuation, meta.brace, meta.delimiter | #4A6880 | — |
| entity.name.tag.decorator, meta.decorator, punctuation.decorator | #7868C0 | italic |
| entity.name.module, string.quoted.import | #A8CCE0 | — |
| entity.name.tag, meta.tag.sgml | #5A90C8 | — |
| entity.other.attribute-name | #2ABCCC | — |
| support.type.property-name.css | #2ABCCC | — |
| support.constant.property-value.css | #A8CCE0 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #38C8D8 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #5A90C8 | bold |
| markup.bold | #E8F0F8 | bold |
| markup.italic | #C8DCE8 | italic |
| string.other.link.title.markdown, meta.link.inline.markdown | #C0D8E8 | — |
| markup.underline.link, meta.link.reference.markdown, string.other.link.description.markdown, punctuation.definition.link.markdown, markup.underline.link.markdown | #8AACC0 | — |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #5A90C8 | — |
| markup.inline.raw, markup.fenced_code.block, fenced_code.block.language | #38C8D8 | — |
| support.type.property-name.json | #2ABCCC | — |
| invalid, invalid.deprecated | #C05070 | underline |
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}!`;
}