Jason1
Publisher: Jason WatkinsThemes in package: 1
A customized Dark Modern theme
A customized Dark Modern 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, string meta.image.inline.markdown, variable.legacy.builtin.python | #fbfbe7 | — |
| emphasis | — | italic |
| strong | — | bold |
| comment | #83B172 | — |
| string, meta.embedded.assembly, string.tag, string.value | #C0C340 | — |
| entity.name.user-defined-literal.string, string.unquoted.plain.out | #8E901D | — |
| markup.inline.raw | #C0C340 | — |
| meta.preprocessor.string | #C0C340 | — |
| constant.numeric, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #CE3C2B | — |
| constant.language, keyword.other.unit, support.constant.json, entity.name.user-defined-literal.number, entity.name.user-defined-literal, storage.type.number | #CE3C2B | — |
| meta.preprocessor.numeric | #CE3C2B | — |
| constant.sha.git-rebase | #CE3C2B | — |
| constant.other.placeholder, constant.character, constant.character.escape | #AF8421 | bold |
| invalid | #CE3C2B | — |
| keyword, keyword.control, keyword.operator, keyword.operator.cast, keyword.operator.delete, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.instanceof.java, keyword.operator.member, keyword.operator.new, keyword.operator.new.cpp, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.wordlike, keyword.operator.noexcept, keyword.operator.logical.python, keyword.other.directive.using, keyword.other.using, keyword.other.operator, entity.name.operator, entity.other.attribute.noreturn, storage, storage.type, storage.modifier, storage.type.cs, variable.language.this.cs | #EDB32D | — |
| entity.name.type, entity.name.class, entity.name.class.template, entity.name.class.reference, entity.name.class.value, entity.other.inherited-class, entity.other.attribute, meta.type.cast.expr, meta.type.new.expr, punctuation.separator.namespace.ruby, support.class, support.type, support.type.property-name, support.type.vendored.property-name, support.constant.math, support.constant.dom, 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.java, storage.type.primitive.array.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, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, entity.other.attribute-name.class.css, entity.name.tag.css, entity.name.tag.less | #A1C3C8 | — |
| entity.name.function, entity.name.function.template, entity.name.function.member, entity.name.function.member.static, entity.name.function.operator, entity.name.class.generic, entity.name.label, entity.name.namespace, entity.name.scope-resolution, entity.name.type.namespace, entity.name.operator.custom-literal, meta.object-literal.key, meta.structure.dictionary.key.python, meta.template.expression, source.powershell variable.other.member, support.function, support.constant.handlebars, support.function.git-rebase, variable, variable.language, variable.other.constant, variable.other.enummember, variable.other.event, variable.other.global, variable.other.local, variable.other.member, variable.other.member.static, variable.other.property, variable.parameter, variable.other.member.powershell, variable.css, meta.definition.variable.name, support.variable, entity.name.variable, storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java, source.css variable, source.coffee.embedded | #fbfbe7 | — |
| entity.name.function.preprocessor, meta.preprocessor | #AAA1B9 | — |
| entity.name.tag, entity.other.attribute-name, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #EDB32D | — |
| entity.name.tag.yaml | #fbfbe7 | — |
| 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 | #C0C340 | — |
| keyword.operator.negation.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, string.regexp, support.other.parenthesis.regexp, constant.regexp | #aaa1b9 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #CE3C2B | — |
| punctuation.definition.tag | #717169 | — |
| markup.underline | — | underline |
| markup.bold | #D6D6C5 | bold |
| markup.heading, header | #A1C3C8 | bold |
| markup.italic | #D6D6C5 | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #83B172 | — |
| markup.deleted | #CE3C2B | — |
| markup.changed | #A1C3C8 | — |
| punctuation.definition.quote.begin.markdown | #83B172 | — |
| punctuation.definition.list.begin.markdown | #A1C3C8 | — |
| meta.diff.header | #A1C3C8 | — |
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}!`;
}