akbyrd-vsc-theme
Publisher: akbyrdThemes 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 |
|---|---|---|
| entity.name.function.preprocessor, meta.preprocessor.macro.cpp entity.name.other.preprocessor.macro, entity.name.variable.preprocessor.symbol.cs, keyword.control.at-rule | #7e57c2 | — |
| keyword.control, keyword.preprocessor, keyword.operator.ternary, keyword.operator.null-coalescing, keyword.operator.null-conditional, entity.other.attribute-name.pragma.preprocessor.cpp, keyword.operator.conditional.colon.cs, keyword.operator.conditional.question-mark.cs, entity.name.tag.custom.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, meta.at-rule keyword.operator.logical, meta.preprocessor.toml, keyword.operator.expression.in.ts, keyword.operator.expression.of.ts, meta.import keyword.control.as.ts | #e91e63 | — |
| entity.name.label | #607d8b | — |
| entity.name.tag, keyword, storage, entity.other.attribute, meta.head.function.definition keyword.control.throw.cpp, keyword.control.context, variable.other.value.cs, entity.other.namespace-prefix.css, meta.at-rule entity.other, markup.heading.setext, meta.separator.markdown, punctuation.definition.bold.markdown, punctuation.definition.constant.markdown, punctuation.definition.heading.markdown, punctuation.definition.italic.markdown, punctuation.definition.link.description.begin.markdown, punctuation.definition.link.description.end.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.markdown, punctuation.definition.metadata.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.raw.markdown, punctuation.definition.strikethrough.markdown, punctuation.definition.table.markdown, punctuation.separator.table.markdown, punctuation.definition.math.begin.markdown, punctuation.definition.math.end.markdown, keyword.control.as.ts, keyword.control.default.ts, keyword.control.export.ts | #2196f3 | — |
| entity.name.type, keyword.type, storage.type.var, support.class, support.type, entity.name.operator.type.cpp, source.cpp storage.type.integral, storage.type.built-in.cpp, storage.type.built-in.primitive.cpp, variable.language.base.cs, entity.name.function.namespace-prefix.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, meta.at-rule variable.parameter, entity.other.inherited-class.ts, keyword.operator.expression.void.ts, meta.import variable.other.readwrite.alias.ts, meta.import-equals variable.other.readwrite.alias.ts, support.variable.ts, variable.language.super.ts, variable.language.super.ts | #00897b | — |
| entity.name.function, support.function, entity.name.operator.cpp, entity.name.operator.custom-literal.cpp, entity.name.operator.custom-literal.string.cpp, keyword.operator.delete.array.cpp, keyword.operator.delete.cpp, keyword.operator.new.cpp, keyword.other.suffix.literal.user-defined.character.cpp | #64dd17 | — |
| entity.name.variable.parameter, variable.parameter, punctuation.vararg-ellipses.variable.parameter.preprocessor.cpp | #00bcd4 | italic |
| entity.name.variable, entity.other.attribute-name, string.key, support.type.property-name punctuation, support.type.property-name, support.variable, variable, storage.type.template.argument.variable_template.cpp, variable.language.this.cs, support.constant.property, variable.language.this.ts | #00bcd4 | — |
| constant, keyword.other.unit, string punctuation, string, support.constant, variable.other.enummember, keyword.operator.plus.exponent.decimal.cpp, keyword.operator.minus.exponent.decimal.cpp, entity.name.variable.enum-member.cs, meta.at-rule variable.parameter, meta.embedded.block.xml, text.xml | #ffc107 | |
| constant.character.escape, punctuation.line.separator.math.tex, constant.character.numeric.regexp, constant.other.character-class.regexp, keyword.control.anchor.regexp, keyword.operator.negation.regexp, keyword.operator.quantifier.regexp, punctuation.definition.character-class.regexp | #ff9800 | — |
| constant.other.placeholder, punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs, keyword.operator.or.regexp, keyword.other.back-reference.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.group.regexp, punctuation.definition.template-expression | #f44336 | — |
| comment punctuation, comment, comment storage.type.class.gtkdoc.cpp, comment meta.tag.cs punctuation | #33691e | — |
| storage.type.class.doxygen.cpp, comment keyword.other.parameter, entity.name.tag.localname.cs | #2196f377 | italic |
| comment.block.documentation variable.parameter.cpp, comment.line.double-slash.documentation variable.parameter.cpp, comment meta.tag.cs string | #00bcd499 | italic |
| entity.name.tag.namespace, keyword.operator.arithmetic, keyword.operator.arrow, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.conditional, keyword.operator.decrement, keyword.operator.increment, keyword.operator.logical, keyword.operator.minus, keyword.operator.plus, keyword.operator.relational, punctuation, keyword.operator.delete.array.bracket.cpp, storage.modifier.pointer.cpp, storage.modifier.reference.cpp, entity.name.type.namespace.cs, keyword.other.attribute-specifier.cs, keyword.operator.combinator.css, keyword.operator.pattern.css, constant.other.reference.link.markdown, string.other.link.description.markdown, string.other.link.title.markdown, string.other.reference.link.markdown, keyword.operator.other.powershell, keyword.other.array.begin.powershell, keyword.other.powershell, keyword.operator.string-format.powershell, keyword.operator.unary.powershell, entity.name.type.module.ts, keyword.generator.asterisk.ts, keyword.operator.optional.ts, keyword.operator.spread.ts, keyword.operator.type.annotation.ts, keyword.operator.type.ts, punctuation.accessor.ts, storage.type.function.arrow.ts, meta.tag.preprocessor.xml, meta.tag.xml, meta.tag.no-content.xml | #9e9e9e | — |
| invalid | #ff0000 | — |
| #ff0000 | — |
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}!`;
}