sjsepan-gnome2ish
Publisher: sjsepanThemes in package: 1
Gnome2ish, but with more borders and panel contrasts. Based on GNOME2-like Theme by @pokutuna.
Gnome2ish, but with more borders and panel contrasts. Based on GNOME2-like Theme by @pokutuna.
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 | #ADD8E6 | — |
| comment.block.documentation, comment.documentation, string.quoted.docstring | #FFA07A | — |
| string, string.quoted, string.quoted.single, string.quoted.double | #FFA07A | — |
| string.template, punctuation.definition.string.template, string.quoted.template | #FFA07A | — |
| meta.template.expression, punctuation.definition.template-expression, meta.interpolation, punctuation.section.interpolation | #98FB98 | — |
| string.regexp, punctuation.definition.string.regexp | #FFA07A | — |
| constant.character.escape | #FFFFFF | — |
| storage.type.string.python, constant.character.format.placeholder, string.interpolated.python | #FFFFFF | — |
| constant.numeric | #FFA07A | — |
| constant.language, constant.character, constant.other, support.constant | #7FFFD4 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type | #9ACD32 | bold |
| entity.name.namespace, entity.name.module, entity.name.package | #98FB98 | — |
| variable, variable.parameter, variable.language, variable.name, support.variable | #7FFFD4 | — |
| variable.other.property, support.type.property-name, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass, entity.other.attribute-name.class | #7FFFD4 | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.color.css | #FFA07A | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #7FFFD4 | — |
| entity.other.attribute-name | #7FFFD4 | — |
| entity.name.function, variable.function, meta.function-call, meta.function | #F5DEB3 | — |
| entity.name.method, meta.method-call, meta.method | #7FFFD4 | — |
| support.function, support.function.builtin | #98FB98 | bold |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, variable.annotation, meta.decorator entity.name.function, meta.decorator variable.other, meta.decorator support.class, meta.decorator support.type, meta.decorator support.function | #7FFFD4 | bold |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier | #FA8072 | — |
| keyword.operator | #FA8072 | — |
| entity.name.function.preprocessor, meta.preprocessor, keyword.control.directive, keyword.control.import | #FA8072 | — |
| entity.name.tag, punctuation.definition.tag | #FA8072 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor | #F5DEB3 | — |
| invalid, invalid.illegal, invalid.deprecated | #FF0000 | bold |
| markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #7FFFD4 | bold |
| string.other.link.title.markdown, string.other.link.description.title.markdown, markup.underline.link | #FA8072 | — |
| markup.bold, markup.bold string | #F5DEB3 | bold |
| markup.italic | #F5DEB3 | italic |
| markup.inline.raw, markup.raw.block, markup.fenced_code, markup.fenced_code.block | #98FB98 | — |
| markup.inserted, meta.diff.header.to-file | #98FB98 | — |
| markup.deleted, meta.diff.header.from-file | #FA8072 | — |
| markup.changed | #FFA07A | — |
| meta.diff.header, meta.diff.range | #ADD8E6 | — |
| entity.name.tag.yaml, entity.other.attribute-name.yaml, support.type.property-name.json | #7FFFD4 | — |
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}!`;
}