Gessetti-theme
Publisher: tkmfujiseThemes in package: 1
VSCode dark theme inspired by blackboards and colourful chalk.
VSCode dark theme inspired by blackboards and colourful chalk.
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 - (punctuation.definition.string | punctuation.definition.comment) | #FFFFFF | |
| constant | #DCF710 | |
| constant.language | #98E1FF | |
| entity | #FDFF9A | |
| entity.name.type | #FFB3E9 | underline bold |
| entity.name.function | #F9B7DC | |
| keyword | #F4B043 | |
| keyword.operator | #FDFF9A | |
| constant.numeric | #FFFFFF | |
| storage | #9580FF | |
| string | #46F009 | |
| comment | #5DA9EC | italic |
| support | #80FFBB | |
| variable | #ECD7A4 | |
| variable.language | #80FFBB | |
| variable.other | #7FF5F8 | |
| support.class | #FF6D6D | |
| meta.function-call, meta.function.call entity.name.function | #FFEE80 | — |
| meta.macro entity.name.function | #FF8080 | — |
| invalid | #F8F8F8 | — |
| text source, string.unquoted.heredoc, source source, meta.embedded | #FFFFFF | |
| entity.other.inherited-class | #FF5858 | italic |
| string.quoted source | #9EFF80 | |
| string constant | #80FF82 | — |
| string.regexp | #80FFC2 | — |
| string variable | #EDEF7D | — |
| support.function | #FFFFFF | |
| support.function.macro | #FF6767 | — |
| support.constant | #EB939A | |
| support.type.exception | #FF1E00 | — |
| meta.tag.metadata.doctype entity, meta.tag.metadata.doctype string, meta.tag.metadata.processing.xml, meta.tag.metadata.processing.xml entity, meta.tag.metadata.processing.xml string | #73817D | — |
| meta.tag, meta.tag entity | #9EFFFF | — |
| meta.selector.css entity.name.tag | #9EFFFF | — |
| meta.selector.css entity.other.attribute-name.id | #FFB454 | — |
| meta.selector.css entity.other.attribute-name.class | #5FE461 | — |
| support.type.property-name.css | #9DF39F | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #F6F080 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #F6AA11 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #EDF080 | — |
| meta.constructor.argument.css | #EB939A | — |
| meta.diff, meta.diff.header | #F8F8F8 | |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.raw | — | — |
| markup.quote | — | — |
| markup.list | #80FFBB | — |
| markup.bold | #C1AFFF | bold |
| markup.italic | #B8FFD9 | italic |
| markup.heading | #C8E4FD | bold |
| string.json support.type.property-name.json | #DCF710 | — |
| string.json support.type.property-name.json punctuation | #FFFFFF | — |
| text.html meta.attribute.data-x entity.other.attribute-name.html | #DCF710 | — |
| meta.directive.vue entity.other.attribute-name.html | #DCF710 | — |
| text.asciidoc markup.heading.heading-0, text.asciidoc markup.heading.heading-1, text.asciidoc markup.heading.heading-2, text.asciidoc markup.heading.heading-3, text.asciidoc markup.heading.heading-4, text.asciidoc markup.heading.heading-5 | #FDFF9A | — |
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}!`;
}