Invictus
Publisher: LarxxThemes in package: 1
A beautiful and calm dark theme for vscode.
A beautiful and calm dark theme for vscode.
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 | #656f79 | — |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #7DD3FC | — |
| entity.name.tag.css | #F2926F | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #A78BFA | — |
| entity.other.attribute-name.class.css | #FB7185 | — |
| keyword.control.at-rule.media.css, keyword.control.at-rule.media.scss, keyword.control.at-rule.font-face.css | #FFA95C | — |
| keyword.operator.logical.scss | #FFA95C | — |
| entity.other.attribute-name.js | #FB7185 | — |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #FB7185 | — |
| entity.other.attribute-name.pseudo-class.css | #d2a8ee | — |
| keyword.operator.ternary.js, keyword.operator.ternary.ts | #79C0FF | — |
| keyword.operator.assignment.jsx | #79C0FF | — |
| keyword.operator.arithmetic.tsx, keyword.operator.relational.tsx, keyword.operator.ternary.tsx | #79C0FF | — |
| punctuation.accessor.optional.tsx | #79C0FF | — |
| punctuation.separator.key-value.ts | #79C0FF | — |
| keyword.operator.comparison.ts | #79C0FF | — |
| keyword.operator.arithmetic.ts, keyword.operator.relational.ts | #79C0FF | — |
| keyword.operator.logical.ts | #79C0FF | — |
| storage.type.function.arrow.ts | #79C0FF | — |
| keyword.operator.increment.ts | #79C0FF | — |
| keyword.operator.assignment.ts | #79C0FF | — |
| keyword.operator.type.annotation.ts, keyword.operator.type.ts, keyword.operator.type.annotation.tsx, keyword.operator.type.tsx | #79C0FF | — |
| entity.name.type.interface | #FDBA74 | — |
| entity.name.type.class | #FDBA74 | — |
| entity.name.type, entity.name.type.alias.ts | #FDBA74 | — |
| support.type.graphql, meta.type.interface.graphql | #A78BFA | — |
| keyword.operator.spread.js | #C9D1D9 | — |
| keyword.operator.rest.js, meta.parameter.object-binding-pattern.js, keyword.operator.rest.ts | #C9D1D9 | — |
| variable.object.property.js, variable | #7DD3FC | — |
| variable.other.readwrite.alias.js | #C9D1D9 | — |
| variable.other.readwrite.alias.tsx | #C9D1D9 | — |
| entity.name, meta.export.default, meta.definition.variable | #C9D1D9 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #C9D1D9 | — |
| keyword.other.unit | #C9D1D9 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #C9D1D9 | — |
| 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 | #C9D1D9 | — |
| support.function.transform.css, support.function.url.css, support.function.misc.css, meta.function.variable.css | #FFA95C | — |
| support.constant.vendored.property-value.css | #FFA95C | — |
| support.function.gradient.css | #FFA95C | — |
| entity.name.function | #A78BFA | — |
| entity.name.function.tsx | #A78BFA | — |
| support.function.js | #A78BFA | — |
| support.function.ts | #A78BFA | — |
| support.function.tsx | #A78BFA | — |
| entity.name.tag | #A78BFA | — |
| support.class.component | #A78BFA | — |
| entity.other.attribute-name.html | #FB7185 | — |
| keyword | #FB7185 | — |
| storage, storage.type | #FB7185 | — |
| storage.type.js | #FB7185 | — |
| storage.type.ts | #FB7185 | — |
| support.type.object.module.js | #FDBA74 | — |
| storage.type.function.arrow.js | #79C0FF | — |
| storage.type.function.arrow.tsx | #79C0FF | — |
| keyword.operator.assignment.tsx | #79C0FF | — |
| keyword.operator.logical.tsx | #79C0FF | — |
| keyword.operator.logical.js, keyword.operator.relational.js, keyword.operator.relational.js.jsx | #79C0FF | — |
| variable.other.constant.object.tsx | #C9D1D9 | — |
| keyword.operator.spread.tsx, keyword.operator.spread.ts | #C9D1D9 | — |
| support.type.property-name.json | #FB7185 | — |
| constant.language.json | #A78BFA | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #C9D1D9 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #F2926F | — |
| string.template.js | #F2926F | — |
| support | #FDBA74 | — |
| support.class | #FDBA74 | — |
| meta.property-name | #79C0FF | — |
| variable | #C9D1D9 | — |
| variable.other | #C9D1D9 | — |
| variable.other.constant.object.js | #C9D1D9 | — |
| variable.other.constant.object.ts, variable.other.constant.ts | #C9D1D9 | — |
| constant.numeric.decimal.js, constant.numeric.decimal.ts, constant.numeric.decimal.tsx | #79C0FF | — |
| variable.other.property.js, variable.other.property.ts, variable.other.property.tsx | #7DD3FC | — |
| variable.other.object.property.js | #7DD3FC | — |
| keyword.operator.assignment.compound.js | #79C0FF | — |
| keyword.operator.assignment.js, meta.var.expr.js, keyword.operator.comparison.js, keyword.operator.arithmetic.js | #79C0FF | — |
| punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js, meta.brace.round.js | #C9D1D9 | — |
| support.variable.js, variable.other.object.js, support.variable.ts | #C9D1D9 | — |
| invalid.broken | #FFA198 | italic |
| invalid.deprecated | #FFA198 | italic |
| invalid.illegal | #FFA198 | italic |
| invalid.unimplemented | #FFA198 | italic |
| carriage-return | #0D1117 | italic underline |
| message.error | #FFA198 | — |
| string source | #C9D1D9 | — |
| string variable | #7DD3FC | — |
| source.regexp, string.regexp | #7DD3FC | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #7DD3FC | — |
| string.regexp constant.character.escape | #7EE787 | bold |
| support.constant | #7DD3FC | — |
| support.variable | #7DD3FC | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.begin.tsx, punctuation.definition.template-expression.end.tsx | #79C0FF | — |
| meta.module-reference | #79C0FF | — |
| punctuation.definition.list.begin.markdown | #F2926F | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #F472B6 | — |
| markup.heading, markup.heading entity.name | #818CF8 | 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 | — |
| brackethighlighter.unmatched | #FFA198 | — |
| constant.other.reference.link, string.other.link | #F472B6 | underline |
| constant.language.boolean.true.js, constant.language.boolean.false.js, constant.language.boolean.true.ts, constant.language.boolean.false.ts, constant.language.boolean.true.tsx, constant.language.boolean.false.tsx | #FB7185 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| 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}!`;
}