Construct
Publisher: Jordan EgstadThemes in package: 1
A dark, high-contrast, colorful theme.
A dark, high-contrast, colorful 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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #7E9BB7 | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| comment | #395066 | italic |
| constant.language | #8A88E2 | — |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #EBBD65 | — |
| constant.regexp | #B46695 | — |
| constant.character | #8A88E2 | — |
| entity.name.tag | #8A88E2 | — |
| entity.name.tag.css | #42A893 | — |
| entity.other.attribute-name | #9ACCE8 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #42A893 | — |
| support.constant.property-value.css | #8A88E2 | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #6796E6 | bold |
| markup.italic | — | italic |
| markup.inserted | #EBBD65 | — |
| markup.deleted | #817E77 | — |
| markup.changed | #8A88E2 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #8A88E2 | — |
| meta.preprocessor.string | #817E77 | — |
| meta.preprocessor.numeric | #EBBD65 | — |
| meta.structure.dictionary.key.python | #9ACCE8 | — |
| storage | #8A88E2 | — |
| storage.type | #7E9BB7 | — |
| storage.modifier | #8A88E2 | — |
| string.tag | #817E77 | — |
| string.value | #817E77 | — |
| string.regexp | #D16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #8A88E2 | — |
| meta.template.expression | #7E9BB7 | — |
| support.type.vendored.property-name, support.type.property-name, entity.name.tag.yaml, entity.name.tag, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #D4D4D4 | — |
| keyword | #8A88E2 | — |
| keyword.control | #8A88E2 | — |
| keyword.operator | #dd6860 | — |
| variable.other.property.js | #42A893 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #8A88E2 | — |
| keyword.other.unit | #EBBD65 | — |
| support.function.git-rebase | #D4D4D4 | — |
| constant.sha.git-rebase | #EBBD65 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #D4D4D4 | — |
| variable.language.this | #8A88E2 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, constant.other.symbol.ruby | #2088ff | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.name.scope-resolution, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #42A893 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #42A893 | — |
| keyword.control, source.cpp keyword.operator.new, source.cpp keyword.operator.delete, keyword.other.using, keyword.other.operator | #dd6860 | — |
| variable, meta.definition.variable.name, support.variable | #D4D4D4 | — |
| meta.object-literal.key | #9ACCE8 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #817E77 | — |
| meta.resultLinePrefix.contextLinePrefix.search | #CBEDCB | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #008000 | — |
| token.error-token | #1E3144 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}