Owokai Themes
Publisher: fluffyfenThemes in package: 3
:3c
:3c
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 |
|---|---|---|
| text, source, variable, meta.macro, keyword.symbol, keyword.operator, meta.property-name, constant.character, entity.name.variable, entity.name.function | #dddddd | |
| comment, string.comment | #af9661 | italic |
| string, string.template, punctuation.definition.string | #4bbb5a | — |
| constant.numeric | #6a95e6 | — |
| keyword, entity.name.function.macro.rules.rust | #d8b65a | bold |
| support, storage, entity.name, keyword.type, keyword.storage, constant.language, constant.other.placeholder, punctuation.definition.interpolation | #939799 | |
| entity.name.function.preprocessor, entity.name.other.preprocessor.macro.predefined | — | bold |
| invalid | #c00000 | bold |
| string.detected-link | — | underline |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #e06c75 | — |
| markup.inserted | #98c379 | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
| markup.bold | — | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.heading.markdown | — | bold |
| markup.block.raw, markup.inline.raw | #939799 | — |
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}!`;
}