Akihabara
Publisher: Justin LaviThemes in package: 1
Immerse yourself in the tranquil colors of Akihabara's night streets
Immerse yourself in the tranquil colors of Akihabara's night streets
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 |
|---|---|---|
| keyword.control.case, keyword.control.conditional, keyword.control.default, keyword.control.else, keyword.control.if.cpp, keyword.control.switch, keyword.other.using.directive.cpp | #7757BA | — |
| keyword.control.do, keyword.control.for, keyword.control.loop, keyword.control.while | #7757BA | — |
| keyword.control.break, keyword.control.continue, keyword.control.flow, keyword.control.return | #7757BA | — |
| keyword.control.exception, keyword.control.try, keyword.control.catch, keyword.control.throw | #7757BA | — |
| entity.name.label, keyword.control.goto | #7757BA | — |
| entity.other.attribute, punctuation.separator.scope-resolution, storage.type.class, storage.type.enum, storage.type.enum.enum-key.class.cpp, storage.type.interface, storage.type.modifier.access, storage.type.namespace, storage.type.struct, storage.type.template, storage.type.union, support.other.attribute, support.type.targetProperty.cmake, variable.other.unknown.public | #7757BA | — |
| constant.language.boolean, constant.language.false, constant.language.true | #CBBB52 | — |
| constant.character, constant.character.escape, entity.name.operator.custom-literal.string, keyword.other.unit.suffix, punctuation.definition.string.begin, punctuation.definition.string.end, string.quoted.double, string.quoted.double.include, string.quoted.double-slash.cmake, string.quoted.other, string.quoted.other.literal, string.quoted.raw, string.quoted.single, string.template | #70AF6B | — |
| keyword.other.default, keyword.other.typedef, storage.type.built-in.primitive, storage.type.primitive, support.type | #CBBB52 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.character.numeric, entity.name.operator.custom-literal.number, keyword.other.unit.hexadecimal | #70AF6B | — |
| constant.other.enum, variable.other.enummember | #70AF6B | — |
| entity.name.namespace, support.other.namespace | #15A284 | — |
| entity.name.type, entity.name.type.class, entity.name.type.class.generic, entity.name.type.class.reference, entity.name.type.class.templated, entity.name.type.enum, entity.name.type.interface, entity.name.type.struct, entity.name.type.union, entity.other.inherited-class, meta.class-identifier, string.quoted.other.lt-gt.include.cpp, support.class | #0EA3A5 | — |
| entity.name.function, entity.name.function.operator, entity.name.function.preprocessor, entity.name.function.templated, meta.function-call, meta.function-call.c, punctuation.definition.begin.bracket.square, punctuation.definition.end.bracket.square, punctuation.definition.function.cpp, punctuation.definition.parameters.begin.preprocessor, punctuation.definition.parameters.end.preprocessor, punctuation.section.angle-brackets.begin.template.call, punctuation.section.angle-brackets.begin.template.definition, punctuation.section.angle-brackets.end.template.call, punctuation.section.angle-brackets.end.template.definition, punctuation.section.arguments.begin.bracket.round.function.call.cpp, punctuation.section.arguments.begin.bracket.round.function.call.initializer, punctuation.section.arguments.begin.bracket.round.function.call.upper-case.cpp, punctuation.section.arguments.end.bracket.round.function.call.cpp, punctuation.section.arguments.end.bracket.round.function.call.initializer, punctuation.section.arguments.end.bracket.round.function.call.upper-case.cpp, punctuation.section.parameters.begin.bracket.round, punctuation.section.parameters.end.bracket.round, support.function, variable.function | #00A5E0 | — |
| entity.name.function.member, entity.name.function.member.static, entity.name.function.operator.member, meta.method-call, punctuation.section.arguments.begin.bracket.round.function.member.cpp, punctuation.section.arguments.end.bracket.round.function.member.cpp, punctuation.section.parameters.begin.bracket.round.special.constructor.cpp, punctuation.section.parameters.end.bracket.round.special.constructor.cpp, support.function.member, variable.function.member | #06A3C6 | — |
| entity.name.variable.parameter, meta.parameter, variable.parameter | #D77F43 | — |
| variable.language.this, variable.other, variable.other.global, variable.other.local | #D53D5C | — |
| support.type.property-name.json, variable.other.event, variable.other.field, variable.other.member, variable.other.property, variable.other.property.cli, variable.other.property.static | #A7447C | — |
| constant.language, constant.language.null, constant.language.nullptr, constant.other, entity.name.constant, support.constant, variable.other.constant, variable.other.constant.property, variable.other.member.readonly, variable.other.readonly, variable.readonly | #A8304B | — |
| comment, comment.block, comment.block.documentation, comment.line, comment.line.double-slash, punctuation.definition.comment, punctuation.definition.comment.cpp, punctuation.definition.comment.documentation | #514867 | — |
| storage.type.class.doxygen | #604E87 | — |
| keyword.control.directive, keyword.control.import, keyword.control.import.include, meta.preprocessor, meta.preprocessor.macro, punctuation.definition.directive | #5572C7 | — |
| entity.name.operator.custom-literal, keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.delete, keyword.operator.logical, keyword.operator.new, keyword.operator.wordlike | #7757BA | — |
| punctuation, punctuation.definition, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.section.block.begin, punctuation.section.block.end, punctuation.section.brackets.begin, punctuation.section.brackets.end, punctuation.section.parens.begin, punctuation.section.parens.end, punctuation.separator, punctuation.terminator | #7757BA | — |
| keyword.declaration, storage.modifier, storage.modifier.const, storage.modifier.explicit, storage.modifier.extern, storage.modifier.friend, storage.modifier.inline, storage.modifier.mutable, storage.modifier.override, storage.modifier.register, storage.modifier.static, storage.modifier.virtual, storage.modifier.volatile | #7757BA | — |
| invalid, invalid.deprecated, invalid.illegal | #FF0000 | — |
| meta.class, meta.enum, meta.function.definition, meta.namespace, meta.struct, meta.template | #7757BA | — |
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}!`;
}