shiina theme
Publisher: yamaimoThemes in package: 1
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 |
|---|---|---|
| meta.object-literal.key, variable.other.property, meta.definition.property | #8D8E00 | |
| meta.brace, keyword.operator.assignment, keyword.operator.relational, keyword.operator.type, punctuation, punctuation.definition.typeparameters, meta.objectliteral punctuation.definition.block | #7E939E | — |
| keyword.operator.relational | — | bold |
| meta.brace.round | — | — |
| punctuation.definition.typeparameters, punctuation.definition.parameters | #A1B0B8 | bold |
| comment, punctuation.definition.comment, string.comment | #7E939E | — |
| constant | #CC0F77 | — |
| meta.function-call support.function, meta.function-call entity.name.function | #21A4A7 | — |
| #E29C00 | — | |
| meta.property-name | — | — |
| variable.parameter | — | — |
| entity.name.type.module variable.parameter | — | |
| meta.parameters variable.parameter | — | bold |
| variable.other.readwrite, variable.other.constant.property | #434E55 | — |
| entity.name.constant, meta.definition.variable, variable.language | #434E55 | bold |
| entity.name.type, support.type | #20799E | — |
| entity.name.type.module | #20799E | bold |
| entity.name.tag | #22863a | — |
| storage, storage.type, keyword, keyword.operator.new | #E84174 | — |
| keyword.control | — | bold |
| keyword.operator.ternary, keyword.operator.expression, keyword.operator.logical, keyword.operator.optional, keyword.control.as, punctuation.accessor.optional | #E29C00 | bold |
| storage.type.function.arrow | — | bold |
| storage.modifier.package, storage.modifier.import, storage.type.java | #000000 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #99835B | — |
| string.unquoted.import.ada | — | — |
| invalid.broken | #b31d28 | bold italic underline |
| invalid.deprecated | #b31d28 | bold italic underline |
| invalid.illegal | #b31d28 | italic underline |
| carriage-return | #E84174 | italic underline |
| invalid.unimplemented | #b31d28 | bold italic underline |
| message.error | #b31d28 | — |
| string source | #000000 | — |
| string variable | #99835B | — |
| source.regexp, string.regexp | #032f62 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #032f62 | — |
| string.regexp constant.character.escape | #22863a | bold |
| support.constant | — | — |
| support.variable | — | — |
| meta.module-reference | #99835B | — |
| markup.list | #735c0f | — |
| markup.heading, markup.heading entity.name | #99835B | bold |
| markup.quote | #22863a | — |
| markup.italic | #000000 | italic |
| markup.bold | #000000 | bold |
| markup.raw | #99835B | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #b31d28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863a | — |
| markup.changed, punctuation.definition.changed | #E29C00 | — |
| markup.ignored, markup.untracked | #99835B | — |
| meta.diff.range | #6f42c1 | bold |
| meta.diff.header | #99835B | — |
| meta.separator | #99835B | bold |
| meta.output | #99835B | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #b31d28 | — |
| sublimelinter.mark.error | #b31d28 | — |
| sublimelinter.mark.warning | #E29C00 | — |
| sublimelinter.gutter-mark | #959da5 | — |
| constant.other.reference.link, string.other.link | #032f62 | underline |
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}!`;
}