Short Giraffe Theme
Publisher: kumamakiThemes in package: 3
A dark theme with carefully picked colors
A dark theme with carefully picked colors
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 |
|---|---|---|
| punctuation, meta.brace | #7581A0 | — |
| meta.class storage.type, storage.modifier, storage.type.type, support.type.primitive, new.expr entity.name.function, meta.var.expr storage, variable.language.this, keyword, meta.function storage.type.function, constant.language.boolean, constant.language.null, storage.type.primitive, support.type.object.module | #F5DA7A | italic |
| support.class.builtin | #FFB46A | bold |
| keyword.operator | #FFE074 | normal |
| entity.name.type | #9be7ff | — |
| entity.name.function | #45CAC2 | — |
| variable | #BBD2EE | normal |
| variable.parameter | #9BC9FF | italic |
| meta.class support.class, meta.class entity.name.type.class, entity.other.inherited-class | #9BC9FF | bold |
| variable.language.super | #45CAC2 | bold |
| meta.object-literal.key | #FCFCCE | — |
| meta.object.member function, meta.object.member meta.function-call, meta.brace.round meta.object.member | #45CAC2 | — |
| meta.object.member variable | #FCFCCE | — |
| string | #F6ABA8 | — |
| constant.numeric | #F7C0A5 | — |
| meta.import variable.other.readwrite | #9BC9FF | — |
| comment | #414B5D | — |
| source.vue support.class | #BAB4FF | — |
| entity.name.tag, meta.tag, entity.name.tag.pug | #FFCC6A | — |
| text.html.derivative, meta.jsx.children | #F7F7E5 | — |
| entity.other.attribute-name, meta.directive | #45CAC2 | — |
| meta.tag.other entity.name.tag, support.class.component | #BAB4FF | — |
| meta.tag variable | #9BC9FF | — |
| source.css entity.other.attribute-name.class, source.postcss entity.other.attribute-name.class, source.scss entity.other.attribute-name.class, source.less entity.other.attribute-name.class, source.css meta.property-list, source.postcss meta.property-list, source.scss meta.property-list, source.less meta.property-list | — | — |
| source.css meta.property-list, source.postcss meta.property-list, source.scss meta.property-list, source.less meta.property-list | #f7f7e5 | — |
| source.css punctuation.function, source.postcss punctuation.function, source.scss punctuation.function, source.less punctuation.function | #fef8f5 | normal |
| source.css variable, source.postcss variable, source.scss variable, source.less variable, source.css punctuation.definition.variable, source.postcss punctuation.definition.variable, source.scss punctuation.definition.variable, source.less punctuation.definition.variable | #9BC9FF | — |
| source.css meta.function.misc.css, source.postcss meta.function.misc.css, source.scss meta.function.misc.css, source.less meta.function.misc.css | #45CAC2 | bold |
| source.css support.constant, source.postcss support.constant, source.scss support.constant, source.less support.constant, source.css constant.numeric, source.postcss constant.numeric, source.scss constant.numeric, source.less constant.numeric | #FFB480 | — |
| constant.other, support.constant.color | #FFE074 | italic |
| meta.structure.dictionary support.type.property-name | #FFE074 | — |
| meta.structure.dictionary.value, string.quoted.double.json | #F6ABA8 | — |
| meta.structure.dictionary.value constant.language | — | italic |
| markup.heading | #F6ABA8 | — |
| markup.heading.setext | #7E8694 | — |
| markup.quote | #DA95EF | — |
| meta.image.inline | #FFE074 | — |
| meta.link.inline | #FFCC6A | — |
| markup.bold | — | bold |
| markup.italic.markdown | — | italic |
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}!`;
}