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 |
|---|---|---|
| comment, string.comment | #7b785a | italic |
| comment.block.documentation, comment.line.double-slash.documentation | #ad9556 | italic |
| string, string.template, punctuation.definition.string | #64b358 | — |
| constant.numeric | #80a9f5 | — |
| punctuation.separator.pointer-access, entity.name.function.operator, meta.template.expression, storage.modifier.import, constant.character, variable.language, support.constant, keyword.operator, constant.other, source, text | #ebe9d7 | |
| keyword, keyword.operator.expression, keyword.operator.logical, keyword.operator.cast, punctuation.accessor.optional | #dbad49 | bold |
| constant.language | #8f9396 | — |
| meta.attribute, keyword.storage, storage.modifier, storage.type.class, storage.type.modifier.access | #8f9396 | — |
| keyword.type, storage.type, entity.other, entity.name.tag, entity.name.type, support.function, constant.other.placeholder, entity.name.scope-resolution, punctuation.definition.interpolation, punctuation.definition.template-expression | #8f9396 | |
| support, storage.identifier, entity.name.tag.class | #8f9396 | — |
| meta.property-name, variable.readwrite, entity.other.attribute-name, entity.other.inherited-class, variable.readwrite.other.block | #ebe9d7 | — |
| entity.name.function.preprocessor, entity.name.other.preprocessor.macro.predefined | #ebe9d7 | bold |
| support.function, entity.name.function, entity.name.function-call, meta.function-call.generic, entity.name.function.definition | #e694b9 | — |
| 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 | — |
| punctuation.accessor, punctuation.separator, punctuation.terminator | #ebe9d7 | — |
| markup.bold | — | bold |
| markup.heading.markdown | — | bold |
| markup.block.raw, markup.inline.raw | #8f9396 | — |
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}!`;
}