25時、ナイトコードで。Blue
Publisher: renhartozThemes in package: 1
A dreamy dark VSCode theme inspired by 25-ji Nightcord.
A dreamy dark VSCode theme inspired by 25-ji Nightcord.
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 | #5F6A89 | — |
| keyword, storage.type, storage.modifier | #bd6a8b | bold |
| variable, meta.definition.variable.name, support.variable, source.python | #ceae8e | — |
| constant, constant.numeric, constant.language, constant.character | #ddaacc | — |
| entity.name.function, support.function, meta.function-call | #a2bbd9 | — |
| entity.name.class, entity.name.type.class, support.class, support.type | #8eaaff | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #8a8acd | — |
| string, constant.other.symbol, punctuation.definition.string | #bd6a8b | — |
| invalid, invalid.illegal | #FFFFFF | — |
| entity.name.tag, support.class.component.js, support.class.component.tsx | #9BB8FF | — |
| punctuation.definition.tag, punctuation.separator.key-value | #ceae8e | — |
| entity.other.attribute-name, meta.tag.attributes, support.attribute, meta.attribute, variable.parameter, meta.function-call.arguments | #86cecb | — |
| meta.annotation, markup.error | #884499 | — |
| keyword.operator, keyword.other.else, punctuation | #a6b4ef | — |
| entity.name.enum, support.constant | #ddaacc | — |
| meta.decorator, storage.type.annotation, meta.object-literal | #ddaacc | — |
| support.type.property-name.json | #ddaacc | — |
| markup.heading, markup.bold, markup.italic | #9BB8FF | — |
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}!`;
}