vscode-jane
Publisher: Vitaly DomnikovThemes in package: 2
vscode theme
vscode theme
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 |
|---|---|---|
| Global settings | #dedeee | — |
| string | #99c794 | — |
| constant.language.boolean | #57b1c7 | — |
| constant.numeric | #ffba51 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #dedeee | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #d8a2d8 | — |
| entity.name.function, support.function | #57b1c7 | — |
| storage.type, storage.modifier | #ffba51 | — |
| support.module, support.node | #e8e651 | — |
| support.type | #367bea | — |
| entity.name.type, entity.other.inherited-class | #367bea | — |
| comment | #ffffff4d | — |
| entity.name.type.class | #99c794 | underline |
| variable.object.property | #99c794 | — |
| meta.definition.method entity.name.function | #99c794 | — |
| meta.function entity.name.function | #e77777 | — |
| template.expression.begin, template.expression.end | #57b1c7 | — |
| entity.name.tag.yaml | #e77777 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #f7f7f7 | — |
| constant.language.json | #e77777 | — |
| entity.other.attribute-name.class | #ffba51 | — |
| entity.other.attribute-name.id | #e77777 | — |
| source.css entity.name.tag | #e77777 | — |
| meta.tag, punctuation.definition.tag | #57b1c7 | — |
| entity.name.tag | #e77777 | — |
| entity.other.attribute-name | #ffba51 | — |
| markup.heading | #ffba51 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #e77777 | — |
| text.html.markdown beginning.punctuation.definition.list | #d8a2d8 | — |
| markup.italic | #e77777 | italic |
| markup.bold | #e77777 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #e77777 | italic bold |
| keyword.other.definition.ini | #e77777 | — |
| entity.name.section.group-title.ini | #57b1c7 | — |
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}!`;
}