Sakura Japan Cherry Blossom Theme 🌸
Publisher: Lakshit SomaniThemes in package: 1
A beautiful soft cherry-blossom syntax theme 🌸
A beautiful soft cherry-blossom syntax theme 🌸
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 | #7f8d78 | italic |
| keyword, storage, storage.modifier, storage.type | #98556c | bold |
| string, punctuation.definition.string, string.quoted | #875a9d | — |
| constant.numeric | #875a9d | — |
| constant.language.boolean, constant.language.null, constant.language, support.constant | #875a9d | bold |
| variable, variable.other, variable.language | #251b13 | — |
| variable.other.local, variable.other.readwrite.local | #618c71 | — |
| variable.other.global, variable.other.readwrite.global | #687788 | — |
| variable.parameter | #cb6b91 | — |
| variable.other.property, support.variable.property | #607fa9 | — |
| variable.other.property.static, entity.name.variable.static | #69a2bd | — |
| entity.name.function, support.function, meta.function-call | #607fa9 | — |
| entity.name.function.static | #69a2bd | — |
| entity.name.type, entity.name.class, support.type, support.class | #251b13 | bold |
| entity.name.type.annotation, meta.decorator, punctuation.definition.annotation | #b46e8d | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter | #7a6f75 | — |
| entity.name.tag, meta.tag.sgml | #b46e8d | bold |
| entity.other.attribute-name | #3a8e74 | — |
| keyword.other.documentation, comment.block.documentation keyword, storage.type.class.jsdoc | #7f8d78 | bold underline |
| comment.block.documentation variable, comment.block.documentation type | #7f8d78 | bold italic |
| invalid, invalid.illegal | #d56666 | underline |
| invalid.deprecated | #caa83f | strikethrough |
| markup.heading, markup.heading entity.name | #98556c | bold |
| keyword.todo, markup.todo | #708d63 | bold italic |
| keyword.control.custom2 | #74118c | — |
| keyword.control.custom3 | #008080 | — |
| keyword.control.custom4 | #800000 | — |
| entity.name.function.go | #286d73 | — |
| meta.function-call.go | #36666b | — |
| constant.other.go | #871094 | — |
| entity.name.package.go | #805900 | — |
| keyword.other.xpath | #174ad4 | — |
| entity.name.alias.yaml | #0000e6 | — |
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}!`;
}