Origin Theme
Publisher: Astr3xusThemes in package: 1
A multi-language dark theme for Python, TypeScript/JavaScript, C/C++, JSON, Markdown and more.
A multi-language dark theme for Python, TypeScript/JavaScript, C/C++, JSON, Markdown and more.
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 | #828D9E | italic |
| keyword, storage.type, storage.modifier | #BE83FF | — |
| keyword.control | #BE83FF | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, storage.type.function.arrow | #BE83FF | — |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator, punctuation.definition.parameters, punctuation.section, meta.tag punctuation.definition.tag | #8C97B2 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor | #36C6FF | — |
| string, constant.other.symbol, constant.other.key, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #86E05A | — |
| constant.numeric, constant.character | #FF9F40 | — |
| constant.language, support.constant | #FF6F8C | — |
| variable.other.constant, constant.other, variable.other.enummember, entity.name.constant | #FFC93D | — |
| entity.name.type, entity.name.class, entity.name, support.type, support.class, entity.other.inherited-class, support.type.sys-types, storage.type.cs, meta.use.php, support.other.namespace.use.php, support.other.namespace.php | #FFC777 | italic |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #B2CCD6 | — |
| variable, string constant.other.placeholder, meta.definition.variable, variable.other.readwrite | #C5CAD3 | — |
| variable.parameter, meta.function.parameters variable.other | #FF8FBE | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #B9C0CC | — |
| variable.language | #FF5C7A | italic |
| meta.decorator, entity.name.function.decorator, meta.decorator entity.name.function, meta.decorator variable.other, punctuation.decorator, punctuation.definition.decorator, meta.function.decorator, meta.function.decorator support.function, meta.function.decorator support.function.builtin, meta.function.decorator entity.name.function, meta.function.decorator variable.other, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #2FE0C8 | italic |
| keyword.control.directive, meta.preprocessor, punctuation.definition.directive, keyword.control.import, keyword.control.directive.include | #BE83FF | — |
| entity.name.function.preprocessor, entity.name.other.preprocessor.macro, variable.other.macro, meta.preprocessor.macro entity.name.function | #FF8FBE | — |
| constant.character.escape, constant.character.escape.regexp | #FFC93D | — |
| string.regexp, string.regexp keyword.other, keyword.control.anchor.regexp, punctuation.definition.group.regexp | #FF5C7A | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FF5C7A | — |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #BE83FF | italic |
| entity.other.attribute-name.class | #FFC93D | — |
| invalid, invalid.illegal | #FF5C7A | — |
| constant.other.color | #FFFFFF | — |
| *url*, *link*, *uri* | — | underline |
| markup.inserted, markup.inserted.git_gutter | #86E05A | — |
| markup.deleted | #FF5C7A | — |
| markup.changed, markup.changed.git_gutter | #BE83FF | — |
| support.type.property-name.json | #BE83FF | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #C5CAD3 | — |
| markup.heading, markup.heading entity.name, entity.name.section.markdown, markup.heading.markdown punctuation.definition.heading.markdown | #86E05A | bold |
| markup.bold, markup.bold string | #FF5C7A | bold |
| markup.italic, markup.italic string | #FF5C7A | italic |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #FF5C7A | bold italic |
| string.other.link.title.markdown, markup.underline.link | #82AAFF | underline |
| string.other.link.description.title.markdown | #BE83FF | — |
| constant.other.reference.link.markdown | #FFC93D | — |
| text.html.markdown markup.inline.raw.markdown, markup.inline.raw, markup.fenced_code.block.markdown | #BE83FF | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, punctuation.definition.markdown | #828D9E | — |
| punctuation.definition.list.begin.markdown, markup.list punctuation.definition.list_item | #2FE0C8 | — |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown | #828D9E | italic |
| meta.separator | #828D9E | bold |
| variable.language.fenced.markdown | #828D9E | — |
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}!`;
}