McBurger
Publisher: MostuniqueThemes in package: 2
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, string.comment, constant.character.escape.python | #888888 | — |
| string.quoted.docstring.multi.python | #888888 | italic |
| constant, entity.name.constant, variable.other.constant, variable.language, entity, keyword.other.unit | #ffff80 | — |
| entity.name, meta.export.default, meta.definition.variable | #0000ff | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #e8ffff | — |
| entity.name.function, support.function.builtin.python, meta.function-call.generic.python | #00ccff | — |
| entity.name.tag, support.class.component | #00ffff | — |
| keyword | #ffff00 | — |
| keyword.control, keyword.operator.logical.python | #00ffff | — |
| keyword.control.directive, source.cpp keyword.operator.new, keyword.operator, keyword.other.using, keyword.other.operator, entity.name.operator | #00ffff | — |
| string.quoted.other.lt-gt.include.cpp, storage.type.namespace.directive.cpp | #ff90ff | — |
| meta.body.function.definition.cpp, keyword.operator.sizeof.cpp | #00ccff | — |
| entity.name.function.preprocessor.cpp | #eeee00 | italic |
| keyword.operator, entity.name.function.operator, storage.modifier.pointer.cpp | #eeeeee | — |
| punctuation.terminator.statement.cpp | #eeeeee | — |
| punctuation.section.block.begin.bracket.curly, punctuation.section.block.end.bracket.curly, punctuation.section.parameters, punctuation.section.arguments.begin.bracket.round.function.call.cpp, punctuation.section.arguments.end.bracket.round.function.call.cpp, punctuation.section.parens.begin.bracket.round.cpp, punctuation.section.parens.end.bracket.round.cpp | #eeeeee | — |
| storage, storage.type | #ff2020 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #ff00ff | bold underline |
| string, string punctuation.section.embedded source | #6aff6a | — |
| support | #00ccff | — |
| meta.property-name | #79c0ff | — |
| variable.other, source.python | #ff90ff | — |
| punctuation.definition.dict, keyword.operator.assignment.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, punctuation.separator, keyword.operator.arithmetic.python | #eeeeee | — |
| variable.parameter, variable.parameter.function.language.special.self.python | #ff8000 | — |
| invalid.broken | #ffa198 | italic |
| invalid.deprecated | #ff2020 | underline |
| invalid.illegal | #ffa198 | italic |
| invalid.unimplemented | #ffa198 | italic |
| carriage-return | #0d1117 | italic underline |
| message.error | #ffa198 | — |
| string source | #c9d1d9 | — |
| string variable | #79c0ff | — |
| source.regexp, string.regexp | #a5d6ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #a5d6ff | — |
| string.regexp constant.character.escape | #7ee787 | bold |
| support.constant | #79c0ff | — |
| support.variable | #79c0ff | — |
| meta.module-reference | #79c0ff | — |
| punctuation.definition.list.begin.markdown | #ffa657 | — |
| markup.heading, markup.heading entity.name | #79c0ff | bold |
| markup.quote | #7ee787 | — |
| markup.italic | #c9d1d9 | italic |
| markup.bold | #c9d1d9 | bold |
| markup.raw | #79c0ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ffa198 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #7ee787 | — |
| markup.changed, punctuation.definition.changed | #ffa657 | — |
| markup.ignored, markup.untracked | #161b22 | — |
| meta.diff.range | #d2a8ff | bold |
| meta.diff.header | #79c0ff | — |
| meta.separator | #79c0ff | bold |
| meta.output | #79c0ff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #8b949e | — |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.separator.arguments.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python | #c9d1d9 | — |
| brackethighlighter.unmatched | #ffa198 | — |
| constant.other.reference.link, string.other.link | #a5d6ff | underline |
| keyword.type.cs | #ff2020 | — |
| entity.name.variable.field.cs, entity.name.variable.local.cs | #ff90ff | — |
| entity.name.variable.parameter.cs, keyword.other.this.cs, variable.other.readwrite.cs | #ff8000 | italic |
| meta.return-type, support.class, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, 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, 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 | #00ccff | — |
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}!`;
}