Kanagawa Neutral Light
Publisher: Dima BotezatuThemes in package: 1
A neutral light interpretation of Kanagawa with restrained warmth and readable contrast.
A neutral light interpretation of Kanagawa with restrained warmth and readable contrast.
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 | #777780 | italic |
| string, string.quoted, constant.other.symbol | #587539 | — |
| constant.numeric, constant.language, constant.character | #B05238 | — |
| keyword, storage.type, storage.modifier | #7851A9 | bold |
| entity.name.function, support.function, meta.function-call | #345E9D | — |
| entity.name.type, entity.name.class, support.type, support.class | #2A7081 | — |
| variable, identifier, meta.object-literal.key | #363646 | — |
| variable.parameter, meta.function.parameters | #8A6508 | — |
| entity.name.tag, support.class.component | #C84053 | — |
| entity.other.attribute-name | #8A6508 | — |
| keyword.operator, punctuation.accessor | #7851A9 | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown | #345E9D | bold |
| markup.bold, punctuation.definition.bold.markdown | #2A7081 | bold |
| markup.italic, punctuation.definition.italic.markdown | #8A6508 | italic |
| markup.quote, markup.quote.markdown, punctuation.definition.quote.begin.markdown | #777780 | italic |
| markup.list, punctuation.definition.list.begin.markdown | #7851A9 | — |
| markup.inline.raw, markup.fenced_code.block.markdown, markup.raw.block.markdown | #587539 | — |
| string.other.link.title.markdown, markup.underline.link.markdown | #345E9D | underline |
| markup.underline.link.image.markdown, string.other.link.description.markdown | #2A7081 | — |
| markup.underline.link.http.hyperlink.markdown, markup.underline.link.https.hyperlink.markdown | #B05238 | underline |
| invalid, invalid.illegal | #FFFFFF | — |
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}!`;
}