Leafy Lake
Publisher: chatblanc-cielThemes in package: 1
ColorThema inspired from vision of leafy lake.
ColorThema inspired from vision of leafy lake.
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 | #89c3eb | italic |
| comment.line.double-slash | #a3a3a2 | italic |
| meta.brace.square | #000000 | — |
| constant.numeric | #f4b3c2 | — |
| string, punctuation.definition.string, punctuation.definition.string.end | #f8b500 | — |
| constant.character.escape, punctuation.definition.interpolation, meta.interpolation | #a15dc4 | — |
| storage | #d3381c | — |
| keyword | #d3381c | — |
| keyword.control | #a15dc4 | — |
| keyword.operator | #000000 | |
| entity.name.type | #007b43 | bold |
| entity.name.function, meta.require, support.function.any-method, variable.function | #2ca9e1 | — |
| meta.function.definition entity.name.function | #2ca9e1 | bold |
| meta.macro entity.name.function | #2ca9e1 | italic |
| meta.macro.definition entity.name.function, meta.macro.rules entity.name.function | #2ca9e1 | italic bold |
| variable | #000000 | — |
| entity.name.type.module | #007b43 | bold |
| variable.parameter.function, text | #000000 | — |
| markup.italic, punctuation.definition.italic | #f4b3c2 | italic |
| markup.bold, punctuation.definition.bold | #007b43 | bold |
| markup.quote | #89c3eb | — |
| entity.name.section.markdown | #000000 | — |
| punctuation.definition.heading.markdown, punctuation.definition.list.markdown, punctuation.definition.list.begin.markdown | #a15dc4 | bold |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown | #f8b500 | — |
| markup.underline.link.markdown | #007bbb | — |
| markup.underline.link.image.markdown | #007bbb | italic |
| string.other.link.title.markdown | #aacf53 | — |
| string.other.link.description.markdown | #aacf53 | italic |
| punctuation.definition.link.description.begin.markdown, punctuation.definition.link.description.end.markdown, punctuation.definition.metadata.markdown | #000000 | — |
| markup.fenced_code.block.markdown punctuation.definition.markdown, markup.fenced_code.block.markdown fenced_code.block.language.markdown | #a15dc4 | bold |
| #000000 | ||
| meta.attribute.rust | #a15dc4 | — |
| meta.attribute.rust punctuation.comma.rust, meta.attribute.rust punctuation.brackets.attribute.rust, meta.attribute.rust punctuation.brackets.round.rust, punctuation.definition.attribute.rust | #000000 | |
| constant.numeric entity.name.type.numeric.rust, keyword.operator.range.rust | #f4b3c2 | |
| support.function.std.rust | #2ca9e1 | — |
| entity.name.lifetime.rust, entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust | #ffd900 | italic bold |
| variable.language.super.rust | #a15dc4 | — |
| keyword.operator.sigil.rust, keyword.operator.dereference.rust | #d3381c | — |
| keyword.other.crate.rust, keyword.operator.borrow.and.rust | #a15dc4 | — |
| variable.language.self.rust, entity.name.type.primitive.rust, entity.name.type.numeric.rust | #007b43 | |
| storage.modifier.mut.rust, keyword.operator.question.rust | #ffd900 | — |
| keyword.operator.sizeof.c, keyword.operator.sizeof.cpp | #d3381c | — |
| keyword.other.unit.user-defined.c, keyword.other.unit.user-defined.cpp | #f4b3c2 | — |
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}!`;
}