jtVSCode
Publisher: javiert.devThemes in package: 2
Dark and light colours with green accents and neutral grey surfaces, inspired by my styles
Dark and light colours with green accents and neutral grey surfaces, inspired by my styles
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 | #6a9955 | italic |
| comment.block.documentation | #6a9955 | italic |
| string, string.quoted.single, string.quoted.double, string.template | #ce9178 | — |
| string.regexp, constant.regexp | #d16969 | — |
| constant.character.escape | #d7ba7d | — |
| constant.numeric | #b5cea8 | — |
| constant.language | #4fc1ff | — |
| keyword, storage, storage.type, storage.modifier | #569cd6 | — |
| keyword.control, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #c586c0 | — |
| keyword.operator.new | #569cd6 | — |
| keyword.operator.expression | #569cd6 | — |
| keyword.other.unit | #b5cea8 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #dcdcaa | — |
| variable, variable.parameter, variable.other.readwrite | #9cdcfe | — |
| variable.language | #569cd6 | italic |
| variable.other.constant | #4fc1ff | — |
| variable.other.property, support.variable.property, variable.other.object.property | #9cdcfe | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.other.inherited-class | #4ec9b0 | — |
| entity.name.type.parameter | #4ec9b0 | italic |
| entity.name.tag, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #569cd6 | — |
| entity.other.attribute-name | #9cdcfe | — |
| keyword.operator, keyword.operator.assignment | #d4d4d4 | — |
| punctuation, punctuation.separator, punctuation.terminator, meta.brace | #808080 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #c586c0 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #dcdcaa | italic |
| support.type.property-name.css | #9cdcfe | — |
| support.constant.property-value.css | #4fc1ff | — |
| entity.other.attribute-name.class.css | #4ec9b0 | — |
| entity.other.attribute-name.id.css | #dcdcaa | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #c586c0 | — |
| variable.css | #9cdcfe | — |
| support.type.property-name.json | #9cdcfe | — |
| markup.heading, entity.name.section | #569cd6 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw | #ce9178 | — |
| markup.underline.link, string.other.link | #4ec9b0 | — |
| markup.quote | #6a9955 | italic |
| markup.inserted | #6fcf50 | — |
| markup.deleted | #f44747 | — |
| markup.changed | #e8a830 | — |
| invalid | #f44747 | — |
| invalid.deprecated | #e8a830 | strikethrough |
| meta.embedded, source.groovy.embedded | #d4d4d4 | — |
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}!`;
}