dasLicht
Publisher: kazumasa57Themes 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 | #4D7A52 | italic |
| string, string.quoted, string.template | #ff821c | — |
| string, string.quoted, string.template, meta.image | #0b5614 | — |
| constant.numeric, constant.other.number | #00b3ff | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #FF4D4D | — |
| keyword, keyword.control, keyword.control.flow | #FF9F1C | bold |
| keyword.operator | #6FAE74 | — |
| storage.type, storage.modifier | #10fc1c | — |
| variable, variable.other.readwrite, variable.parameter | #55D65B | — |
| variable.other.constant, variable.other.property | #8CE38B | — |
| entity.name.function, support.function | #7EE787 | bold |
| entity.name.type, entity.name.class, support.class, entity.other.inherited-class | #E3B341 | — |
| entity.name.tag | #FF9F1C | — |
| entity.other.attribute-name | #8CE38B | — |
| punctuation, punctuation.definition.tag, meta.brace | #3E8E45 | — |
| support.type.property-name.json | #00fd37 | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json | #5f5df0 | bold |
| punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #eaff4d | bold |
| entity.name.tag.yaml | #00fc26 | — |
| string.unquoted.plain.out.yaml | #f8511a | — |
| invalid, invalid.illegal | #FF4D4D | bold underline |
| invalid.deprecated | #FF7A7A | strikethrough |
| markup.heading | #a6ffb5 | — |
| markup.list.unnumbered | #22d853 | — |
| punctuation.definition.list.begin, markup.list.numbered | #0195eb | — |
| markup.list.numbered | #48f0ce | — |
| markup.bold, punctuation.definition.bold.markdown | #ff45d7 | bold |
| markup.italic, punctuation.definition.italic.markdown | #fff01a | italic |
| markup.underline.link | #5c4dba | underline |
| markup.quote.markdown | #e45a5a | italic |
| punctuation.definition.quote.begin.markdown | #ff0051 | — |
| markup.inline.raw.string.markdown | #FF6EC7 | — |
| punctuation.definition.raw.markdown | #8A6E82 | — |
| string.other.link.title.markdown, meta.link.inline.markdown punctuation.definition.string.begin.markdown, meta.link.inline.markdown punctuation.definition.string.end.markdown | #0B72FF | — |
| meta.link.inline.markdown markup.underline.link.markdown, meta.link.inline.markdown punctuation.definition.metadata.markdown | #12291A | |
| markup.inserted, diff.inserted | #55D65B | — |
| markup.deleted, diff.deleted | #FF4D4D | — |
| markup.changed, diff.changed | #10fc1c | — |
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}!`;
}